/* =========================================================
   Histoire de la France — style.css (design enrichi)
   Thème : bordeaux / or / parchemin — lisibilité & mobile
   ========================================================= */

:root {
  --bordeaux: #3a1c1c;
  --bordeaux-deep: #2a1010;
  --or: #b8860b;
  --or-light: #d4af37;
  --or-soft: rgba(212, 175, 55, 0.35);
  --parchemin: #faf7f2;
  --parchemin-dark: #f3eee6;
  --texte: #2c2420;
  --texte-muted: #5c534c;
  --bordure: #e5ddd0;
  --blanc: #ffffff;
  --ombre: 0 4px 14px rgba(58, 28, 28, 0.08);
  --ombre-hover: 0 10px 28px rgba(58, 28, 28, 0.14);
  --radius: 10px;
  --font-titre: "Cinzel", Georgia, serif;
  --font-corps: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-corps);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texte);
  background: linear-gradient(180deg, #f7f3ec 0%, var(--parchemin) 120px, #f5f1ea 100%);
  min-height: 100vh;
}

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

a {
  color: #6b4f1d;
  text-decoration-color: var(--or-soft);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--bordeaux);
  text-decoration-color: var(--or);
}

.banner {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(40, 5, 5, 0.88) 100%
    ),
    url("images/bandeau_site.png") center/cover no-repeat;
  color: var(--blanc);
  text-align: center;
  padding: 56px 18px 52px;
  position: relative;
  border-bottom: 3px solid var(--or);
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.55);
}

.banner h1 {
  font-family: var(--font-titre);
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0;
  color: var(--blanc);
  text-shadow:
    0 0 12px rgba(184, 134, 11, 0.35),
    2px 2px 6px rgba(0, 0, 0, 0.85);
}

.navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--bordure);
  box-shadow: 0 2px 10px rgba(58, 28, 28, 0.06);
  position: sticky;
  top: 0;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.nav-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 13px 12px;
  color: var(--texte);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--bordeaux);
  background: linear-gradient(180deg, #fff 0%, var(--parchemin-dark) 100%);
  box-shadow: inset 0 -2px 0 var(--or);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanc);
  min-width: 230px;
  box-shadow: var(--ombre-hover);
  border: 1px solid var(--bordure);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  padding: 6px 0;
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  padding: 10px 16px;
  border-bottom: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--texte);
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--parchemin-dark);
  color: var(--bordeaux);
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--blanc);
  min-width: 220px;
  box-shadow: var(--ombre-hover);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  z-index: 1001;
  padding: 6px 0;
  list-style: none;
  margin: 0;
}

.dropdown-submenu:hover > .submenu {
  display: block;
}

.submenu.align-left {
  left: auto;
  right: 100%;
}

.breadcrumb-nav {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0 18px;
  font-size: 0.88rem;
}

.breadcrumb-nav ol {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  box-shadow: var(--ombre);
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
  color: var(--texte-muted);
}

.breadcrumb-nav li:not(:last-child)::after {
  content: "›";
  margin: 0 10px;
  color: var(--or);
  font-weight: 700;
}

.breadcrumb-nav a {
  color: #6b4f1d;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  color: var(--bordeaux);
  text-decoration: underline;
}

.breadcrumb-nav li[aria-current="page"] {
  color: var(--bordeaux);
  font-weight: 600;
}

.container {
  display: block;
  width: 100%;
  max-width: var(--max);
  margin: 22px auto 40px;
  padding: 0 18px;
}

.content {
  width: 100%;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 28px 28px 36px;
  box-shadow: var(--ombre);
}

.hero-welcome {
  text-align: center;
  margin-bottom: 28px;
}

.hero-welcome h2,
.section-title {
  font-family: var(--font-titre);
  color: var(--bordeaux);
  font-size: 1.55rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.hero-welcome p,
.eras-summary {
  color: var(--texte-muted);
  max-width: 42rem;
  margin: 0 auto 8px;
  font-size: 1.05rem;
}

.eras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 12px;
}

.era-card {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.era-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-hover);
  border-color: var(--or-light);
}

.era-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 8px;
}

.era-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.era-card h3,
.era-card h4 {
  font-family: var(--font-titre);
  margin: 0;
  color: var(--bordeaux);
  font-size: 1.1rem;
}

.era-card p {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--texte-muted);
  font-size: 0.95rem;
}

.era-btn {
  display: inline-block;
  margin: 0 18px 18px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #5a3030 0%, var(--bordeaux) 100%);
  color: var(--blanc) !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.era-btn:hover {
  background: linear-gradient(180deg, #6e3c3c 0%, #4a2424 100%);
  transform: translateY(-1px);
}

.visual-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blanc);
  box-shadow: var(--ombre);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-hover);
}

.feature-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--parchemin-dark);
  padding: 12px;
}

.card-caption {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--bordure);
}

.card-caption h3 {
  margin: 0 0 6px;
  font-family: var(--font-titre);
  color: var(--bordeaux);
  font-size: 1.15rem;
}

.card-caption p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--texte-muted);
}

.article-page h2 {
  font-family: var(--font-titre);
  color: var(--bordeaux);
  border-bottom: 2px solid var(--or);
  padding-bottom: 10px;
  margin: 0 0 22px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: 0.03em;
}

.article-page h3 {
  font-family: var(--font-titre);
  color: #4a2c2c;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
  padding-left: 12px;
  border-left: 3px solid var(--or-light);
}

.article-page h4 {
  font-family: var(--font-titre);
  color: var(--bordeaux);
  margin: 1.2rem 0 0.5rem;
}

.article-body {
  line-height: 1.75;
  margin-bottom: 28px;
  color: var(--texte);
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul {
  margin: 0.5rem 0 1.2rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body figure {
  margin: 1.5rem auto;
  text-align: center;
}

.article-body figcaption {
  font-size: 0.9rem;
  color: var(--texte-muted);
  margin-top: 8px;
  font-style: italic;
}

.article-body img {
  border-radius: 8px;
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
}

a.internal-link {
  color: #8a6d3b;
  text-decoration: underline;
  text-decoration-color: var(--or-soft);
  text-underline-offset: 2px;
  font-weight: 500;
}

a.internal-link:hover {
  color: #5c4a28;
  text-decoration-color: var(--or);
}

.article-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--parchemin);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 25px;
}

.article-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.quick-facts {
  flex: 1;
  min-width: 260px;
}

.timeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--parchemin-dark);
  border-radius: 6px;
  padding: 8px 14px;
  margin: 15px 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bordeaux);
}

.bar-fill {
  flex: 1;
  height: 8px;
  background: linear-gradient(90deg, var(--bordeaux), var(--or));
  margin: 0 12px;
  border-radius: 4px;
}

.key-points {
  padding-left: 20px;
  margin: 10px 0 0;
}

.key-points li {
  margin-bottom: 6px;
}

.sites-section {
  margin-bottom: 25px;
}

.sites-section h3 {
  font-family: var(--font-titre);
  color: var(--bordeaux);
  border-bottom: 1px solid var(--bordure);
  padding-bottom: 6px;
}

.data-list {
  list-style-type: square;
  padding-left: 20px;
  line-height: 1.55;
}

.data-list li {
  margin-bottom: 12px;
}

.summary-box {
  background: var(--parchemin);
  border-left: 4px solid var(--or);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  line-height: 1.65;
  margin: 1.25rem 0;
}

.conclusion-text {
  font-weight: 700;
  color: var(--bordeaux);
  margin-top: 10px;
}

.king-card,
.profile-card {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--ombre);
}

.king-name,
.profile-title {
  font-family: var(--font-titre);
  color: var(--bordeaux);
  margin: 0 0 4px;
}

.king-dates,
.profile-dates {
  color: var(--or);
  font-size: 0.9rem;
  font-weight: 600;
}

.king-title,
.king-spouse {
  color: var(--texte-muted);
  font-size: 0.92rem;
}

.profile-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--bordure);
  margin-bottom: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card img:hover {
  transform: scale(1.04);
  box-shadow: var(--ombre-hover);
}

.section-block {
  margin: 1.5rem 0;
}

.highlight {
  background: linear-gradient(120deg, transparent 0%, rgba(212, 175, 55, 0.12) 100%);
}

.related-section {
  margin: 36px 0 12px;
  padding: 22px 22px 20px;
  background: linear-gradient(165deg, #fffefb 0%, var(--parchemin) 100%);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

.related-section h2 {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  color: var(--bordeaux);
  margin: 0 0 14px;
  border-bottom: 2px solid var(--or-light);
  padding-bottom: 8px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.related-links a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  text-decoration: none;
  color: var(--texte);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  border-color: var(--or);
  background: #fff8e7;
  color: var(--bordeaux);
}

.related-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-quiz,
.cta-jeux {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-quiz {
  background: linear-gradient(180deg, #5a3030, var(--bordeaux));
  color: var(--blanc) !important;
}

.cta-jeux {
  background: linear-gradient(180deg, #c9a227, var(--or));
  color: var(--blanc) !important;
}

.cta-quiz:hover,
.cta-jeux:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(58, 28, 28, 0.2);
}

.main-footer {
  text-align: center;
  padding: 48px 18px 32px;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(40, 5, 5, 0.9) 100%
    ),
    url("images/bandeau_site.png") center bottom/cover no-repeat;
  color: var(--blanc);
  margin-top: 48px;
  border-top: 3px solid var(--or);
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.footer-links a {
  color: #f5e6c8 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.92;
}

.footer-links a:hover {
  color: var(--or-light) !important;
  text-decoration: underline !important;
}

.main-footer p,
.footer-copy {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  font-family: var(--font-titre);
  color: var(--blanc);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
}

.adsense-container {
  max-width: var(--max);
  margin: 36px auto 16px;
  padding: 14px;
  background: #fafafa;
  border: 1px dashed #d0d0d0;
  border-radius: 6px;
  text-align: center;
}

.adsense-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .nav-menu > li > a {
    padding: 10px 9px;
    font-size: 0.8rem;
  }

  .content {
    padding: 20px 16px 28px;
  }
}

@media (max-width: 768px) {
  .visual-features {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 40px 14px 36px;
  }

  .banner h1 {
    letter-spacing: 0.12em;
  }

  .related-cta {
    flex-direction: column;
  }

  .cta-quiz,
  .cta-jeux {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .breadcrumb-nav ol {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .article-page h3 {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
