/* ============================================
   JULEPA - Système de Design
   Couleurs: Bleu Nuit (#2C3E50), Vert Sapin (#2ECC71), 
            Or Pâle (#F1C40F), Gris Anthracite Clair (#BDC3C7)
   ============================================ */

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

html, body {
  height: 100%;
  background-color: #F9F9F9;
}

:root {
  --primary: #2C3E50;
  --secondary: #BDC3C7;
  --accent-green: #2ECC71;
  --accent-gold: #F1C40F;
  --neutral-light: #F9F9F9;
  --neutral-dark: #1A1A1A;
  --max-width: 1400px;
  --spacing-base: 16px;
}

body {
  font-family: 'Merriweather', 'Georgia', serif;
  color: #2C3E50;
  line-height: 1.6;
  background-color: var(--neutral-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Raleway', sans-serif;
  color: var(--primary);
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #3D5566;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--primary);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

nav a:hover,
nav a.active {
  color: var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--primary);
  color: #F9F9F9;
  padding: 4rem 2rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #BDC3C7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  border-top: 1px solid rgba(189, 195, 199, 0.3);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #BDC3C7;
}

/* ============================================
   MAIN CONTAINER & SECTIONS
   ============================================ */

main {
  min-height: calc(100vh - 200px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--secondary);
}

.section:last-child {
  border-bottom: none;
}

.full-width-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 5rem 2rem;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 62, 80, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 800px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 4rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  font-weight: 300;
}

/* ============================================
   PANEL SYSTEM
   ============================================ */

.panel {
  background-color: #FFFFFF;
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid var(--secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.panel-wide {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.panel-wide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--secondary);
}

.panel-reverse {
  grid-template-columns: 1fr 1.5fr;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background-color: #FFFFFF;
  padding: 2rem;
  border: 1px solid var(--secondary);
  border-radius: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.1);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  color: #555;
}

/* ============================================
   IMAGES & TYPOGRAPHY
   ============================================ */

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

.image-full {
  width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--secondary);
}

.caption {
  font-size: 0.95rem;
  color: #999;
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================
   LISTS & TYPOGRAPHY
   ============================================ */

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

li::marker {
  color: var(--accent-gold);
}

/* ============================================
   BUTTONS
   ============================================ */

button, .btn {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}

button:hover, .btn:hover {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* ============================================
   LINKS & INTERACTIVE
   ============================================ */

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   QUOTE & EMPHASIS
   ============================================ */

blockquote {
  border-left: 4px solid var(--accent-green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
}

.highlight {
  background-color: var(--accent-gold);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--secondary);
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .panel-wide,
  .panel-reverse {
    grid-template-columns: 1fr;
  }

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

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  main {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .panel {
    padding: 1.5rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.mt-large {
  margin-top: 3rem;
}

.mb-large {
  margin-bottom: 3rem;
}

.spacing-section {
  padding: 5rem 0;
}

.color-accent-green {
  color: var(--accent-green);
}

.color-accent-gold {
  color: var(--accent-gold);
}

.bg-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.bg-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}
