/* ============================================
   Eguisheim Alsace - Styles personnalises
   ============================================ */

/* --- Variables --- */
:root {
  --bordeaux: #7F1D1D;
  --bordeaux-light: #991B1B;
  --vert-sapin: #166534;
  --vert-sapin-light: #15803D;
  --or: #CA8A04;
  --or-light: #EAB308;
  --blanc-casse: #FEFCE8;
  --brun-bois: #78350F;
  --brun-bois-light: #92400E;
  --texte-sombre: #1C1917;
  --gris-chaud: #44403C;
  --beige: #FEF3C7;
  --beige-clair: #FFFBEB;
}

/* --- Typographie --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--texte-sombre);
  background-color: var(--blanc-casse);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--bordeaux);
}

h1, .title.is-1 { font-weight: 800; }
h2, .title.is-2 { font-weight: 700; }
h3, .title.is-3 { font-weight: 600; }

p, li, td, th, label, input, textarea, select {
  font-family: 'Source Sans 3', sans-serif;
}

/* --- Navbar --- */
.navbar {
  background-color: rgba(254, 252, 232, 0.97);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.08);
  padding: 0.25rem 0;
  border-bottom: 3px solid var(--bordeaux);
  transition: all 0.3s ease;
}

.navbar.is-scrolled {
  padding: 0;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.12);
}

.navbar-brand .navbar-item img {
  max-height: 3rem;
}

.navbar-item {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texte-sombre);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.navbar-item:hover,
.navbar-item.is-active {
  color: var(--bordeaux) !important;
  background-color: transparent !important;
}

.navbar-item.is-active {
  border-bottom: 2px solid var(--bordeaux);
}

.navbar-dropdown {
  background-color: var(--blanc-casse);
  border-top: 2px solid var(--bordeaux);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
}

.navbar-dropdown .navbar-item {
  text-transform: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.navbar-dropdown .navbar-item:hover {
  background-color: var(--beige) !important;
}

.navbar-burger span {
  background-color: var(--bordeaux);
  height: 2px;
}

/* --- Hero --- */
.hero-accueil {
  background-size: cover;
  background-position: center 40%;
  position: relative;
}

.hero-accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 25, 23, 0.3) 0%,
    rgba(127, 29, 29, 0.5) 100%);
}

.hero-accueil .hero-body {
  position: relative;
  z-index: 1;
}

.hero-page {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 350px;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 25, 23, 0.45) 0%,
    rgba(127, 29, 29, 0.55) 100%);
}

.hero-page .hero-body {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  text-shadow: 2px 3px 8px rgba(0,0,0,0.4);
  font-weight: 800;
}

.hero-subtitle {
  color: var(--beige);
  text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
}

/* --- Sections --- */
.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background-color: var(--beige-clair);
}

.section-bordeaux {
  background-color: var(--bordeaux);
  color: var(--blanc-casse);
}

.section-bordeaux .title,
.section-bordeaux .subtitle,
.section-bordeaux h2,
.section-bordeaux h3 {
  color: var(--blanc-casse);
}

.section-vert {
  background-color: var(--vert-sapin);
  color: var(--blanc-casse);
}

.section-vert .title,
.section-vert .subtitle {
  color: var(--blanc-casse);
}

/* --- Cards --- */
.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.14);
}

.card .card-image img {
  object-fit: cover;
  height: 240px;
  width: 100%;
}

.card .card-content {
  padding: 1.8rem;
}

.card .card-content .title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* --- Boutons --- */
.btn-bordeaux {
  background-color: var(--bordeaux);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-bordeaux:hover {
  background-color: var(--bordeaux-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 29, 29, 0.3);
}

.btn-vert {
  background-color: var(--vert-sapin);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-vert:hover {
  background-color: var(--vert-sapin-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.btn-or {
  background-color: var(--or);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-or:hover {
  background-color: var(--or-light);
  color: #fff;
}

/* --- Decorations --- */
.ornament {
  text-align: center;
  margin: 1.5rem 0;
}

.ornament::before {
  content: '';
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--or);
  vertical-align: middle;
  margin-right: 1rem;
}

.ornament::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--or);
  vertical-align: middle;
  margin-left: 1rem;
}

.ornament-icon {
  color: var(--or);
  font-size: 1.2rem;
}

.separator {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 3rem auto;
  max-width: 200px;
}

/* --- Images --- */
.img-rounded {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.12);
}

.img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame {
  border: 4px solid var(--brun-bois);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--or);
  padding: 1.2rem 1.5rem;
  background-color: var(--beige);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  color: var(--brun-bois);
}

/* --- Timeline --- */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2rem;
  border-left: 3px solid var(--or);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bordeaux);
  border: 3px solid var(--or);
}

.timeline-item:last-child {
  border-left: 3px solid transparent;
}

.timeline-date {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--bordeaux);
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer-main {
  background-color: var(--texte-sombre);
  color: var(--beige);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-main .title {
  color: var(--or);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-main a {
  color: var(--beige);
  transition: color 0.2s ease;
}

.footer-main a:hover {
  color: var(--or);
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-main ul li {
  padding: 0.3rem 0;
}

.footer-bottom {
  background-color: #0C0A09;
  color: #78716C;
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #A8A29E;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--or);
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--bordeaux);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--beige);
}

/* --- Contact Form --- */
.field .label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  color: var(--texte-sombre);
}

.input, .textarea, .select select {
  border-color: #D6D3D1;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.1);
}

/* --- Infos pratiques --- */
.info-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
  border-left: 4px solid var(--or);
}

.info-box .info-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--bordeaux);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: var(--vert-sapin);
}

.breadcrumb li.is-active a {
  color: var(--bordeaux);
}

/* --- Animations reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Mentions legales --- */
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--or);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.2rem;
}

.legal-content p {
  margin-bottom: 0.8rem;
}

/* --- 404 --- */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 .error-code {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 800;
  color: var(--bordeaux);
  line-height: 1;
  opacity: 0.2;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .card .card-image img {
    height: 200px;
  }

  .columns.is-reversed-mobile {
    flex-direction: column-reverse;
    display: flex;
  }

  .footer-main .columns {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--blanc-casse);
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
    padding: 0.5rem 0;
  }

  .navbar-item {
    padding: 0.75rem 1.5rem;
  }
}

/* --- Utilitaires --- */
.has-text-or { color: var(--or) !important; }
.has-text-bordeaux { color: var(--bordeaux) !important; }
.has-text-vert { color: var(--vert-sapin) !important; }
.has-text-brun { color: var(--brun-bois) !important; }
.has-bg-beige { background-color: var(--beige) !important; }
.has-bg-blanc-casse { background-color: var(--blanc-casse) !important; }

.mt-6 { margin-top: 3rem !important; }
.mb-6 { margin-bottom: 3rem !important; }

/* Lien texte bordeaux */
.content a,
main a {
  color: var(--bordeaux);
  text-decoration: underline;
  text-decoration-color: var(--or);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

main a:hover,
.content a:hover {
  color: var(--bordeaux-light);
}
