/* ==========================================================================
   CHARTE GRAPHIQUE OFFICIELLE - CONSEIL DÉPARTEMENTAL DES ARDENNES (CD08)
   ========================================================================== */

:root {
  /* Palette de couleurs officielle cd08.fr */
  --primary: #00312f;
  --primary-light: #003e37;
  --primary-lighter: #deefe6;
  --secondary: #b18800;
  --secondary-dark: #8b6c00;
  --secondary-light: #daa507;
  --secondary-lighter: #fef5e6;
  --secondary-lightest: #fbf9f4;

  --text-dark: #00312f;
  --text-muted: #556b69;
  --white: #ffffff;

  /* Typographies */
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Rayons et ombres */
  --radius-full: 9999px;
  --radius-card: 18px;
  --shadow-subtle: 0 4px 20px rgba(0, 49, 47, 0.06);
  --shadow-card: 0 12px 36px rgba(0, 49, 47, 0.08);

  /* Transitions */
  --transition-default: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--primary-light);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--primary-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HERO / BANNIÈRE PRINCIPALE (DISPOSITION LOGO À GAUCHE DU TEXTE)
   ========================================================================== */

.hero-section {
  position: relative;
  z-index: 10;
  background-color: var(--primary-light);
  color: var(--white);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

/* Filigrane officiel "A" Ardennes */
.hero-watermark {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2%;
  height: 100%;
  width: auto;
  color: var(--primary);
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-watermark {
    right: -30%;
    opacity: 0.45;
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 4rem));
  margin: 0 auto;
}

/* Conteneur flex alignant le logo à gauche du texte */
.hero-layout {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-logo-col {
  flex-shrink: 0;
}

.hero-logo-link {
  display: block;
  outline: none;
  transition: transform var(--transition-default), opacity var(--transition-default);
}

.hero-logo-link:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.hero-logo-link:focus-visible {
  outline: 2px solid var(--secondary-light);
  outline-offset: 6px;
  border-radius: 8px;
}

.hero-logo-img {
  display: block;
  width: 234px;
  height: 130px;
  aspect-ratio: 360 / 200;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}

.hero-text-col {
  flex: 1;
}

/* Titre principal Hero (police Serif officielle CD08) */
.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.22;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobiles et tablettes)
   ========================================================================== */

@media (max-width: 860px) {
  .hero-section {
    padding: 40px 0;
    min-height: 100vh;
  }

  .hero-container {
    width: calc(100% - 3rem);
  }

  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .hero-logo-img {
    width: 180px;
    height: auto;
    aspect-ratio: 360 / 200;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
  }
}
