/* 🦴 PREHISTOIRE GABRYEL — Styles du site */
/* Gabryel, si tu lis ça, sache que le CSS c'est ce qui rend le site joli */
/* Mais le HTML c'est ce qui fait marcher. Les deux c'est bien. */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5efe6;
  color: #2c1810;
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== EN-TÊTE ===== */
header {
  background: linear-gradient(135deg, #2c1810 0%, #5c3a28 100%);
  color: #f5efe6;
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 6px solid #d4a574;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #1a0f0a;
}

header p {
  font-size: 1.1rem;
  margin-top: 0.6rem;
  opacity: 0.85;
  font-style: italic;
}

/* ===== NAVIGATION ===== */
nav {
  background: #3d2619;
  padding: 0.8rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

nav a {
  color: #f5efe6;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  margin: 0 0.2rem;
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: #d4a574;
  color: #1a0f0a;
}

/* ===== CONTENU PRINCIPAL ===== */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ===== SECTION ===== */
section {
  background: white;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-left: 6px solid #d4a574;
}

section h2 {
  font-size: 1.8rem;
  color: #3d2619;
  margin-bottom: 1rem;
  border-bottom: 3px solid #e8d5c4;
  padding-bottom: 0.5rem;
}

section h3 {
  font-size: 1.3rem;
  color: #5c3a28;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

section p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

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

section li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ===== IMAGES ===== */
.img-container {
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  background: #e8d5c4;
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.img-container:hover img {
  transform: scale(1.03);
}

.img-container + .img-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #8b5e3c;
  font-style: italic;
  margin-top: 0.4rem;
}

.img-hero {
  max-height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.img-inline {
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.img-banner {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* Grille d'images */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.img-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.img-grid img:hover {
  transform: scale(1.03);
}

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

/* ===== FRIRE CHRONOLOGIQUE ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #d4a574, #8b5e3c, #3d2619);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.8rem;
  background: #faf6f0;
  border-radius: 12px;
  border: 2px solid #e8d5c4;
}

.timeline-item::before {
  content: '🦴';
  position: absolute;
  left: -2.2rem;
  top: 1rem;
  font-size: 1.5rem;
}

.timeline-item .date {
  font-weight: 900;
  color: #8b5e3c;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline-item .title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c1810;
}

.timeline-item .desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #5a4a40;
}

/* ===== QUESTIONS ===== */
.question-box {
  background: #e8f0e8;
  border-left: 6px solid #7a9a7a;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.question-box strong {
  color: #3d6a3d;
  font-size: 1.1rem;
}

/* ===== ENCADRÉS ===== */
.fun-fact {
  background: #fff8e1;
  border: 2px dashed #d4a574;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.fun-fact strong {
  color: #8b5e3c;
}

/* ===== ACCUEIL ===== */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #2c1810 0%, #5c3a28 100%);
  color: #f5efe6;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero svg {
  border-radius: 20px;
}

.hero h2 {
  font-size: 2.2rem;
  border: none;
  color: #f5efe6;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero .big {
  font-size: 4rem;
  display: block;
  margin-top: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-top: 6px solid #d4a574;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #3d2619;
}

.card p {
  font-size: 0.95rem;
  color: #5a4a40;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #3d2619;
  color: #f5efe6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.card a:hover {
  background: #5c3a28;
}

/* ===== PIED DE PAGE ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: #2c1810;
  color: #a08070;
  font-size: 0.9rem;
  margin-top: 4rem;
}

footer strong {
  color: #d4a574;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
  nav a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  main { padding: 0 1rem; }
  section { padding: 1.5rem; }
  .hero h2 { font-size: 1.6rem; }
  .cards { grid-template-columns: 1fr; }
}
