/*
Theme Name: Haras du Vieux Château
Theme URI: https://harasduvieuxchateau.fr
Description: Thème personnalisé pour le Haras du Vieux Château
Version: 1.0
Author: Claude
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;600&family=Lato:wght@300;400;700&display=swap');

:root {
  --green:  #3E5E45;
  --cream:  #F4EFE6;
  --stone:  #8A8070;
  --wood:   #6B4F3A;
  --white:  #FFFFFF;
  --dark:   #2C2C2C;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.85;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  background: rgba(20,36,24,0.88);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
nav .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--cream);
  text-decoration: none;
}
nav .logo span { color: var(--stone); font-weight: 300; }
nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
nav ul a {
  color: rgba(244,239,230,.85);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s;
}
nav ul a:hover { color: var(--cream); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,36,24,.55), rgba(20,36,24,.35));
}
/* ── PHONE FRAME IN HERO ── */
.hero-phone {
  display: flex;
  justify-content: center;
  margin: 28px 0 32px;
}
.phone-frame {
  position: relative;
  width: 160px;
  height: 285px;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,.7);
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.15);
  background: #000;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 4px;
  z-index: 2;
}
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(42px, 6vw, 72px);
  color: var(--white);
  letter-spacing: 5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-content .subtitle {
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  font-weight: 300;
  margin-bottom: 44px;
}
.btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.7);
  color: var(--white);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--cream); color: var(--dark); }
.btn-green {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: #2d4532; border-color: #2d4532; }

/* ── SECTIONS ── */
section { width: 100%; }

.section-pad { padding: 90px 120px; }
.section-pad-sm { padding: 60px 120px; }

@media(max-width:900px) {
  .section-pad, .section-pad-sm { padding: 60px 30px; }
  nav { padding: 0 24px; }
  nav ul { gap: 16px; }
}

/* ── INTRO TEXT ── */
.text-center-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.text-center-block h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 36px;
  color: var(--green);
  margin-bottom: 28px;
}
.text-center-block .ornement {
  width: 50px;
  height: 1px;
  background: var(--green);
  margin: 0 auto 28px;
}
.text-center-block p { color: var(--dark); }

/* ── CARDS 3 COL ── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.card {
  position: relative;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.card:hover .card-img { transform: scale(1.04); }
.card-body {
  padding: 32px 28px;
  background: var(--cream);
}
.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 12px;
}
.card-body p { font-size: 15px; color: #555; line-height: 1.75; }
.bg-cream .card-body { background: var(--cream); }

/* ── 2 COL IMAGE + TEXT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img {
  overflow: hidden;
}
.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.two-col:hover .two-col-img img { transform: scale(1.03); }
.two-col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
}
.two-col-text h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--green);
  margin-bottom: 16px;
}
.two-col-text .ornement {
  width: 40px;
  height: 1px;
  background: var(--stone);
  margin-bottom: 24px;
}
.two-col-text p { color: var(--dark); font-size: 16px; line-height: 1.9; }

@media(max-width:900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col-text { padding: 40px 30px; }
  .cards-3 { grid-template-columns: 1fr; }
}

/* ── SEPARATOR PARALLAX ── */
.parallax-sep {
  position: relative;
  height: 300px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.parallax-sep::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,36,24,.58);
}
.parallax-sep-text {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(20px,3vw,30px);
  color: var(--white);
  letter-spacing: 4px;
  font-style: italic;
}

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: opacity .3s, transform .4s;
  cursor: pointer;
}
.gallery-grid img:hover { opacity: .9; transform: scale(1.02); }

@media(max-width:700px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── CONTACT FORM ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}
@media(max-width:900px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 34px;
  color: var(--green);
  margin-bottom: 16px;
}
.contact-info .ornement {
  width: 40px; height: 1px;
  background: var(--stone);
  margin-bottom: 24px;
}
.contact-info p { font-size: 16px; line-height: 1.9; color: #555; }
.contact-info .info-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--dark);
}
.contact-info .info-line strong { color: var(--green); min-width: 90px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8d2c9;
  background: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── FOOTER ── */
footer {
  background: #1a2a1e;
  color: rgba(244,239,230,.65);
  text-align: center;
  padding: 48px 40px;
}
footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
footer p { font-size: 13px; letter-spacing: 1px; }
footer a { color: var(--stone); text-decoration: none; }

/* ── BG COLORS ── */
.bg-cream { background: var(--cream); }
.bg-white  { background: var(--cream); }
.bg-green  { background: var(--green); }
.bg-green * { color: var(--cream) !important; }
.bg-green h2 { color: var(--white) !important; }

/* ── PAGE HERO (sous-pages) ── */
.page-hero {
  height: 55vh;
  min-height: 380px;
}
.page-hero .hero-content h1 { font-size: clamp(32px,5vw,56px); }

/* ── TARIF BADGE ── */
.tarif-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 18px;
  margin-bottom: 16px;
}

/* ── NOTICE ALERT ── */
.notice {
  background: #f0f5f1;
  border-left: 4px solid var(--green);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--dark);
  margin-top: 20px;
}

/* Success/error form feedback */
.form-msg { padding: 14px 18px; font-size: 14px; margin-top: 12px; display: none; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-msg.error   { background: #fdecea; color: #c62828; display: block; }

/* ── ACTIVITÉS ── */
.activites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.activite-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44,44,44,.12);
  transition: transform .3s, box-shadow .3s;
}

.activite-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(44,44,44,.2);
}

.activite-img-link {
  display: block;
  line-height: 0;
}

.activite-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s;
}

.activite-card:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .activites-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}
