/* ================================================
   CHEVAUX EN PÂTURE — Feuille de style principale
   Design : Nature & Élégant
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --vert-foret: #2E5A3C;
  --vert-prairie: #5A8F5C;
  --vert-clair: #A8D5A2;
  --brun-terre: #6B4226;
  --brun-clair: #A67C52;
  --creme: #FDF8F0;
  --creme-fonce: #F5EDE0;
  --blanc: #FFFFFF;
  --noir: #1A1A1A;
  --gris: #6B7280;
  --gris-clair: #E5E7EB;
  --orange-cta: #D97706;
  --orange-cta-hover: #B45309;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--creme);
  color: var(--noir);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-foret); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-cta); }

/* --- Typographie --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--vert-foret); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .8rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: .6rem; }
p { margin-bottom: 1rem; color: var(--noir); }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--creme-fonce); }

/* --- Header / Navigation --- */
.site-header {
  background: var(--blanc);
  border-bottom: 3px solid var(--vert-prairie);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vert-foret);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo span { color: var(--brun-terre); }

/* Navigation desktop */
.nav-links { display: flex; list-style: none; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-family: 'Lora', Georgia, serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--noir);
  position: relative;
  padding: .3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vert-prairie);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--vert-foret); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: .3rem; }
.dropdown-toggle::after { content: '▾'; font-size: .7rem; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--blanc);
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 50;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .9rem;
  color: var(--noir);
}
.dropdown-menu a:hover {
  background: var(--creme);
  color: var(--vert-foret);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--vert-foret);
  border-radius: 3px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, rgba(46,90,60,.85), rgba(90,143,92,.7)),
              url('../images/hero-pasture.jpg') center/cover no-repeat;
  color: var(--blanc);
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 { color: var(--blanc); font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .8rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 650px; margin: 0 auto 2rem; }

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--orange-cta);
  color: var(--blanc);
}
.btn-primary:hover {
  background: var(--orange-cta-hover);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--blanc);
  border: 2px solid var(--blanc);
}
.btn-secondary:hover {
  background: var(--blanc);
  color: var(--vert-foret);
}
.btn-outline {
  background: transparent;
  color: var(--vert-foret);
  border: 2px solid var(--vert-foret);
}
.btn-outline:hover {
  background: var(--vert-foret);
  color: var(--blanc);
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  height: 200px;
  background: var(--creme-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--vert-prairie);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { font-size: .95rem; color: var(--gris); margin-bottom: 1rem; }
.card-body .btn { font-size: .9rem; padding: .6rem 1.5rem; }

/* --- Produit / Affiliation --- */
.product-highlight {
  background: var(--blanc);
  border: 2px solid var(--vert-clair);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.product-highlight .product-img {
  flex: 0 0 200px;
  height: 200px;
  background: var(--creme-fonce);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-highlight .product-info { flex: 1; }
.product-highlight .product-info h3 { color: var(--brun-terre); }
.product-highlight .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-cta);
  margin: .5rem 0;
}
.product-highlight .btn-amazon {
  background: #FF9900;
  color: var(--noir);
  font-weight: 700;
}
.product-highlight .btn-amazon:hover {
  background: #E88B00;
  transform: translateY(-2px);
}
.affiliate-note {
  font-size: .8rem;
  color: var(--gris);
  font-style: italic;
  margin-top: .5rem;
}

/* --- Product comparison table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th {
  background: var(--vert-foret);
  color: var(--blanc);
  padding: 1rem;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
}
.comparison-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--gris-clair);
  font-size: .9rem;
}
.comparison-table tr:nth-child(even) { background: var(--creme); }
.comparison-table tr:hover { background: var(--creme-fonce); }
.comparison-table .check { color: var(--vert-prairie); font-weight: bold; }
.comparison-table .cross { color: #dc2626; }

/* --- Checklist --- */
.checklist { list-style: none; margin: 1.5rem 0; }
.checklist li {
  padding: .6rem 0 .6rem 2rem;
  position: relative;
  font-size: 1rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--vert-prairie);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Info Box --- */
.info-box {
  background: linear-gradient(135deg, var(--vert-clair), #c8e6c0);
  border-left: 4px solid var(--vert-foret);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}
.info-box h4 { color: var(--vert-foret); margin-bottom: .5rem; }
.info-box p { margin-bottom: 0; }

.warning-box {
  background: #FEF3C7;
  border-left: 4px solid var(--orange-cta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}
.warning-box h4 { color: var(--orange-cta); margin-bottom: .5rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: .85rem;
  color: var(--gris);
}
.breadcrumb a { color: var(--vert-prairie); }
.breadcrumb span { margin: 0 .4rem; }

/* --- Table of Contents (article pages) --- */
.toc {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc h4 { color: var(--brun-terre); margin-bottom: .8rem; font-family: 'Lora', serif; }
.toc ol { padding-left: 1.2rem; }
.toc li { margin-bottom: .4rem; font-size: .95rem; }
.toc a { color: var(--vert-foret); }
.toc a:hover { color: var(--orange-cta); text-decoration: underline; }

/* --- Footer --- */
.site-footer {
  background: var(--vert-foret);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--blanc);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-col a:hover { color: var(--blanc); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* --- FAQ / Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--gris-clair);
  padding: 1rem 0;
}
.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  color: var(--vert-foret);
}
.faq-question::after { content: '+'; font-size: 1.3rem; transition: var(--transition); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding-top: .8rem; color: var(--gris); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .6rem 0; border-bottom: 1px solid var(--gris-clair); }
  .nav-links li:last-child { border: none; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }

  .product-highlight { flex-direction: column; text-align: center; }
  .product-highlight .product-img { flex: none; width: 150px; height: 150px; }

  .hero { padding: 4rem 1.5rem; min-height: 50vh; }
  .section { padding: 3rem 0; }
}

/* --- Schema / SEO helpers --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease forwards; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { font-size: 12pt; background: white; }
}
