/* spitz-allemand.fr — Global CSS */
/* Phase initiale : structure propre, typographie lisible, responsive */

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

:root {
  --color-primary: #2c5f2d;
  --color-primary-light: #4a8c4b;
  --color-accent: #d4a843;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-border: #e0ddd5;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-heading: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --header-height: 64px;
}

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

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

.image-text img,
.page-hero img,
.full-width-image img,
.gallery__item img,
.hero-fullwidth__bg {
  object-fit: cover;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  padding-top: var(--header-height);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  text-decoration: none;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-primary);
  color: #fff;
}

/* --- Hero Full-Width (homepage) --- */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-fullwidth__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fullwidth__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(44,95,45,0.75) 0%, rgba(26,46,26,0.6) 50%, rgba(44,95,45,0.7) 100%);
}

.hero-fullwidth__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 850px;
}

.hero-fullwidth__content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-sub {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-top: 0.3rem;
}

.hero-fullwidth__content .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: #f0f7f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.hero-trust {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  margin: 0;
}

/* --- Main content --- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content ul, .page-content ol {
  margin: 0.5rem 0 1.2rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--color-primary-light);
}

/* --- Lead / intro --- */
.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* --- Info box --- */
.info-box {
  background: linear-gradient(135deg, #f0f7f0 0%, #f5f7ee 100%);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(44,95,45,0.05);
}

.info-box h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* --- Data table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #f5f4f0, #eeede8);
  font-weight: 600;
  color: var(--color-primary);
}

.data-table tr:hover td {
  background: #faf9f5;
}

/* --- Variete cards (homepage) --- */
.varietes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.variete-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.variete-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.25s;
}

.variete-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(44,95,45,0.12);
  transform: translateY(-2px);
}

.variete-card:hover::before {
  opacity: 1;
}

.variete-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.variete-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* --- CTA links --- */
.cta-section {
  background: linear-gradient(135deg, #f0f7f0 0%, #faf5e8 100%);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(44,95,45,0.06);
}

.cta-section p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.cta-section a,
.page-content .btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.4rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(44,95,45,0.12);
}

.cta-section a:hover,
.page-content .btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 4px 16px rgba(44,95,45,0.18);
  transform: translateY(-1px);
}

.page-content .btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-content .btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* --- Page Hero (bannière full-width) --- */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero--green .page-hero__overlay {
  background: linear-gradient(135deg, rgba(44,95,45,0.72) 0%, rgba(26,46,26,0.65) 100%);
}

.page-hero--dark .page-hero__overlay {
  background: linear-gradient(135deg, rgba(26,26,26,0.75) 0%, rgba(40,40,40,0.6) 100%);
}

.page-hero--warm .page-hero__overlay {
  background: linear-gradient(135deg, rgba(90,60,20,0.7) 0%, rgba(44,95,45,0.55) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 800px;
}

.page-hero__content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.page-hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* --- Image + Text (2 colonnes) --- */
.image-text {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.image-text--reverse {
  grid-template-columns: 55% 45%;
}

.image-text--reverse .image-text__visual {
  order: 2;
}

.image-text--reverse .image-text__content {
  order: 1;
}

.image-text__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(26,26,26,0.15);
  transition: transform 0.3s ease;
}

.image-text__visual img:hover {
  transform: scale(1.02);
}

.image-text__content h2 {
  margin-top: 0;
}

.image-text__content h3 {
  margin-top: 0;
}

/* --- Gallery (grille images) --- */
.gallery {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.gallery--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26,26,26,0.1);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* --- Full-Width Image (séparateur) --- */
.full-width-image {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.full-width-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.full-width-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  background: #1a2e1a;
  color: #d4d0c8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #b0c4a8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2d4a2d;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8a9a82;
}

.footer-bottom a {
  color: #8a9a82;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  .site-header {
    position: sticky;
    height: auto;
  }

  body {
    padding-top: 0;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .hero-fullwidth {
    min-height: 380px;
  }

  .hero-fullwidth__content h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  .page-content h1 {
    font-size: 1.7rem;
  }

  .page-content h2 {
    font-size: 1.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .varietes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.6rem;
  }

  .page-hero {
    min-height: 260px;
  }

  .page-hero__content h1 {
    font-size: 1.9rem;
  }

  .page-hero__subtitle {
    font-size: 1rem;
  }

  .image-text {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-text--reverse .image-text__visual {
    order: 0;
  }

  .image-text--reverse .image-text__content {
    order: 0;
  }

  .gallery--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .full-width-image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .varietes-grid {
    grid-template-columns: 1fr;
  }

  .hero-fullwidth {
    min-height: 320px;
  }

  .hero-fullwidth__content h1 {
    font-size: 1.7rem;
  }
}
