/* ==========================================================================
   GLOBAL.CSS — Styles généraux du thème Sunshine Solar
   ========================================================================== */


/* =====================================================
   RESET LÉGER & BASE TYPO
   ----------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background: #ffffff;
}

/* =====================================================
   CONTAINER GLOBAL
   ----------------------------------------------------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* =====================================================
   TITRES & TEXTES
   ----------------------------------------------------- */

h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}


/* =====================================================
   SECTIONS GLOBAL (mise en page générique)
   ----------------------------------------------------- */

.page-hero {
  padding: 6rem 0 2rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 72px; /* pour compenser le header sticky */
}

.page-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
  color: #111827;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280;
  max-width: 640px;
}

.page-section {
  padding: 3rem 0;
  background: #ffffff;
}

.page-section-alt {
  background: #f9fafb;
}


/* =====================================================
   GRID GLOBAL POUR ASIDE + CONTENU
   ----------------------------------------------------- */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
}

.page-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #111827;
}


/* =====================================================
   ASIDE-CARD (utilisé sur plusieurs pages)
   ----------------------------------------------------- */

.aside-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}


/* =====================================================
   BOUTONS (boutons communs)
   ----------------------------------------------------- */

.btn-primary {
  display: inline-block;
  background: linear-gradient(to right, #ff7a00, #ffb700);
  padding: 14px 32px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  margin-top: 15px;
  transition: background .2s ease;
}

.btn-primary:hover {
  background: #ea580c;
}


/* =====================================================
   TABLEAUX GÉNÉRIQUES
   ----------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th, table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
}

table th {
  background: #f3f4f6;
  font-weight: 600;
}


/* =====================================================
   LISTES ICONES GLOBALES
   ----------------------------------------------------- */

.icon-list {
  padding-left: 1rem;
}

.icon-list li {
  margin-bottom: 0.7rem;
}


/* =====================================================
   ANIMATIONS GÉNÉRALES
   ----------------------------------------------------- */

.fadeIn {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
