/*
Theme Name: GeneratePress CMH
Template: generatepress
Description: Thème enfant GeneratePress — C'est Mon Histoire
Version: 1.0
*/

/* ── VARIABLES ── */
:root {
  --bleu: #3B8EA5;
  --bleu-nuit: #0F2035;
  --bleu-profond: #1A3A5C;
  --bleu-doux: #A8D4E0;
  --dore: #D4A84B;
  --dore-clair: #F0CC7A;
  --rose: #F2C4B0;
  --ivoire: #FDFAF5;
  --creme: #F7F2EA;
  --texte: #1A2535;
  --texte-doux: #5A6A7E;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --script: 'Pacifico', cursive;
}

/* ── RESET BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivoire);
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
.cmh-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(253, 250, 245, .92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 75, .12);
}
.admin-bar .cmh-nav { top: 32px; }
.cmh-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--script);
  font-size: 18px;
  color: var(--bleu);
  text-decoration: none;
}
.cmh-nav-logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.cmh-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
}
.cmh-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--texte-doux);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}
.cmh-nav-links a:hover,
.cmh-nav-links a.active { color: var(--bleu); }
.cmh-nav-cta {
  background: var(--bleu-nuit);
  color: white;
  padding: 11px 26px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(15, 32, 53, .25);
  transition: transform .2s, background .2s;
}
.cmh-nav-cta:hover { transform: translateY(-2px); background: var(--bleu); color: white; }

/* ── CONTENU ── */
.cmh-page-wrap {
  padding-top: 72px;
  min-height: 60vh;
}
.cmh-content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px);
}
.cmh-content h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  color: var(--bleu-nuit);
  margin-bottom: 24px;
}
.cmh-content h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--bleu-nuit);
  margin: 48px 0 16px;
}
.cmh-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--bleu-nuit);
  margin: 32px 0 12px;
}
.cmh-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--texte-doux);
  margin-bottom: 20px;
}
.cmh-content ul, .cmh-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.cmh-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--texte-doux);
  line-height: 1.75;
  margin-bottom: 8px;
}
.cmh-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}
.cmh-content a { color: var(--bleu); }
.cmh-content a:hover { color: var(--bleu-profond); }
.cmh-content strong { color: var(--texte); font-weight: 600; }

/* Section tag */
.cmh-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 12px;
}


/* ── FOOTER ── */
.cmh-footer {
  background: var(--bleu-nuit);
  padding: 80px clamp(20px, 5vw, 80px) 32px;
  margin-top: 80px;
}
.cmh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cmh-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--script);
  font-size: 18px;
  color: var(--bleu);
  text-decoration: none;
  margin-bottom: 14px;
}
.cmh-footer-logo img { width: 36px; height: 36px; border-radius: 50%; }
.cmh-footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, .32);
  line-height: 1.7;
}
.cmh-footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 20px;
}
.cmh-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cmh-footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: color .2s;
}
.cmh-footer-col a:hover { color: white; }
.cmh-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, .18);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cmh-nav-links { display: none; }
  .cmh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cmh-footer-bottom { flex-direction: column; gap: 8px; }
}
