/* =========================================================
   STYLE COMMUN - La Ferme de Sainte Isabelle
   A charger sur toutes les pages AVANT le CSS spécifique.
   ========================================================= */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-v31-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-v31-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f8f5f0;
  color: #3e3e3e;
}

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

a { -webkit-tap-highlight-color: transparent; }

.header-right h1,
nav a {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

header {
  background: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1em 2em;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
}

.header-left {
  border-right: 3px solid #6a8f72;
  padding-right: 25px;
  flex-shrink: 0;
}

.header-left img {
  width: 80px;
  height: auto;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.header-right-top {
  width: 100%;
  position: relative;
}

.header-right h1 {
  margin: 0 0 0.3em;
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: 0.3s ease;
}

nav {
  display: flex;
  gap: 25px;
  margin-top: 0.5em;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  letter-spacing: 2px;
}

.page-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 100px;
}

.btn-outline,
.btn-dark,
.reserve-btn,
.tourism-button,
.plus-code-btn,
.form-actions button,
.btn {
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover,
.btn-dark:hover,
.reserve-btn:hover,
.tourism-button:hover,
.plus-code-btn:hover,
.form-actions button:hover,
.btn:hover {
  opacity: 0.82;
}

/* Pied de page commun */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.5em 0.5em 1.5em;
  margin-top: 4em;
}

.footer-logo img {
  width: 80px;
  height: auto;
  margin: 0 auto 1.5em;
}

.footer-separator {
  width: 50%;
  max-width: 1150px;
  height: 1px;
  background: #fff;
  margin: 0 auto 1em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-links a:hover { opacity: 0.75; }

.footer-copyright {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 1.1em 1em;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

@media (max-width: 1200px) {
  .page-wrapper { padding: 0 50px; }
}

@media (max-width: 900px) {
  .page-wrapper { padding: 0 28px; }
}

@media (max-width: 768px) {
  header { padding: 1em 1.1em; }

  .header-container {
    align-items: flex-start;
    gap: 14px;
  }

  .header-left {
    border-right: none;
    padding-right: 0;
  }

  .header-left img { width: 64px; }

  .header-right { width: 100%; }

  .header-right h1 {
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 0;
    padding-right: 44px;
    line-height: 1.3;
  }

  .nav-toggle { display: block; }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  nav.open { display: flex; }

  nav a { font-size: 0.95rem; }
  nav a::after { display: none; }

  .page-wrapper { padding: 0 18px; }

  .footer {
    padding: 2.5em 1.2em 2em;
  }

  .footer-logo img {
    width: 90px;
    margin-bottom: 2em;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .footer-links a { font-size: 1.15rem; }

  .footer-copyright {
    font-size: 1rem;
    line-height: 1.5;
  }
}
