/* ═══════════════════════════════════════════════
   CMH PAGES — Design System partagé
   Hybride : épuré + enfantin & coloré
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  /* Couleurs principales */
  --teal:        #6BBDCA;
  --teal-fonce:  #2D7A8A;
  --teal-nuit:   #1A4F5C;
  --teal-doux:   #B8E2EA;
  --teal-pale:   #EAF7FA;

  /* Corail — accent chaud, CTAs */
  --corail:      #E8693A;
  --corail-clair:#F0855A;
  --corail-pale: #FDF0EB;

  /* Jaune — décoratif */
  --jaune:       #F5C842;
  --jaune-pale:  #FEF5D4;

  /* Rose/saumon — doux */
  --rose:        #F2B8A0;
  --rose-pale:   #FEF0E8;

  /* Neutres */
  --blanc:       #FFFFFF;
  --ivoire:      #FDFAF5;
  --creme:       #FFF8F3;
  --texte:       #1A4F5C;
  --texte-doux:  #5A8A95;
  --texte-leger: #8AABB5;

  /* Typos */
  --serif:   'Cormorant Garamond', Georgia, serif;
  --display: 'Fredoka One', cursive;
  --sans:    'DM Sans', sans-serif;
  --script:  'Pacifico', cursive;
}

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

/* ── 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(255, 255, 255, .95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(107, 189, 202, .15);
}
.admin-bar .cmh-nav { top: 32px; }

.cmh-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  color: red;
  text-decoration: none;
}
.cmh-nav-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.cmh-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.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(--teal); }

.cmh-nav-cta {
  background: var(--corail);
  color: white;
  padding: 11px 26px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(232, 105, 58, .3);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.cmh-nav-cta:hover {
  transform: translateY(-2px);
  background: var(--corail-clair);
  box-shadow: 0 8px 28px rgba(232, 105, 58, .4);
  color: white;
}

/* ── HERO ── */
.cmh-hero {
  padding: 140px clamp(20px, 5vw, 80px) 96px;
  text-align: center;
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

/* Étoiles CSS */
.cmh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.7) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.4) 1px,   transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.5) 2px,   transparent 2px);
  background-size: 140px 140px, 90px 90px, 220px 220px;
  background-position: 10px 20px, 60px 50px, 120px 10px;
  pointer-events: none;
}

/* Formes organiques décoratives */
.cmh-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.cmh-hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cmh-hero-blob-1 {
  width: 200px; height: 200px;
  top: -40px; left: -40px;
  background: rgba(232, 105, 58, .2);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
}
.cmh-hero-blob-2 {
  width: 160px; height: 160px;
  top: 30%; right: 5%;
  background: rgba(245, 200, 66, .2);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
}
.cmh-hero-blob-3 {
  width: 120px; height: 120px;
  bottom: 10%; left: 8%;
  background: rgba(255, 255, 255, .12);
  border-radius: 50% 50% 70% 30% / 40% 60% 40% 60%;
}

.cmh-hero-content { position: relative; z-index: 2; }

/* ── FIL D'ARIANE (hero) ── */
.cmh-breadcrumbs {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 18px;
}
.cmh-breadcrumbs a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.cmh-breadcrumbs a:hover { text-decoration: underline; }
.cmh-breadcrumbs span { margin: 0 6px; opacity: .6; }

/* ── SECTION TAG ── */
.cmh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 16px;
}


.cmh-tag--teal { color: var(--teal); }
.cmh-tag--corail { color: var(--corail); }

/* ── TITRES ── */
.cmh-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 66px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: white;
  margin-bottom: 20px;
}
.cmh-h1 em { font-style: normal; color: var(--jaune); }

.cmh-h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  color: var(--teal-nuit);
  margin-bottom: 14px;
}
.cmh-h2 em { font-style: normal; color: var(--teal); }
.cmh-h2--blanc { color: white; }
.cmh-h2--blanc em { color: var(--teal-doux); }

.cmh-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, .75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}
.cmh-sub--fonce { color: var(--texte-doux); }

/* ── BOUTONS ── */
.cmh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.cmh-btn:hover { transform: translateY(-3px); }

.cmh-btn--corail {
  background: var(--corail);
  color: white;
  box-shadow: 0 8px 28px rgba(232, 105, 58, .35);
}
.cmh-btn--corail:hover {
  background: var(--corail-clair);
  box-shadow: 0 14px 40px rgba(232, 105, 58, .5);
  color: white;
}

.cmh-btn--blanc {
  background: white;
  color: var(--teal-nuit);
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
}
.cmh-btn--blanc:hover { box-shadow: 0 14px 40px rgba(0,0,0,.2); }

.cmh-btn--ghost {
  background: transparent;
  color: var(--texte);
  border: 1.5px solid rgba(26, 79, 92, .2);
}
.cmh-btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── SECTIONS ── */
.cmh-section {
  padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 80px);
  position: relative;
}
.cmh-section-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* ── DOODLES ── */
.cmh-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.doodle { position: absolute; opacity: .2; }

.cmh-section--creme { background: var(--creme); }
.cmh-section--teal-pale { background: var(--teal-pale); }
.cmh-section--teal { background: var(--teal); }
.cmh-section--nuit { background: var(--teal-nuit); }

.cmh-section-header { text-align: center; margin-bottom: 56px; }
.cmh-section-header .cmh-sub--fonce { max-width: 520px; margin: 0 auto; }

/* ── SÉPARATEUR VAGUE ── */
.cmh-wave {
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}
.cmh-wave svg { display: block; width: 100%; height: 100%; }

/* ── CARDS ── */
.cmh-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(26, 79, 92, .08);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.cmh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 79, 92, .14);
}

/* ── POINTS DE LISTE ── */
.cmh-points { display: flex; flex-direction: column; gap: 12px; }
.cmh-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--texte-doux);
  line-height: 1.6;
}
.cmh-point::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── ÉTAPE OPTIONNELLE ── */
.cmh-optional {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--jaune-pale);
  border: 1.5px solid rgba(245, 200, 66, .4);
  border-radius: 16px;
  padding: 24px 28px;
}
.cmh-optional-icon { font-size: 28px; flex-shrink: 0; }
.cmh-optional-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 4px;
}
.cmh-optional-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--teal-nuit);
  margin-bottom: 6px;
}
.cmh-optional-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--texte-doux);
  line-height: 1.7;
}

/* ── FOOTER ── */
.cmh-footer {
  background: var(--teal-nuit);
  padding: 80px clamp(20px, 5vw, 80px) 32px;
}
.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, .08);
}
.cmh-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--script);
  font-size: 18px;
  color: var(--teal-doux);
  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, .35);
  line-height: 1.7;
}
.cmh-footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--corail);
  margin-bottom: 20px;
}
.cmh-footer-col ul { list-style: none; 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, .2);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── BLOG : LISTE D'ARTICLES ── */
.cmh-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.cmh-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.cmh-blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  background: var(--teal-pale);
}
.cmh-blog-body { padding: 24px; }
.cmh-blog-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--corail);
  margin-bottom: 10px;
}
.cmh-blog-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  color: var(--teal-nuit);
  margin-bottom: 10px;
  line-height: 1.3;
}
.cmh-blog-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--texte-doux);
  line-height: 1.7;
  margin-bottom: 14px;
}
.cmh-blog-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-fonce);
}

/* ── BLOG : ARTICLE ── */
.cmh-article-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 140px clamp(20px, 5vw, 80px) 56px;
}
.cmh-article-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--corail);
  margin-bottom: 16px;
}
.cmh-article-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.2;
  color: var(--teal-nuit);
}
.cmh-article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) 80px;
  font-size: 16px;
  font-weight: 300;
  color: var(--texte-doux);
  line-height: 1.85;
}
.cmh-article-content h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  color: var(--teal-nuit);
  margin: 40px 0 16px;
}
.cmh-article-content h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--teal-nuit);
  margin: 32px 0 12px;
}
.cmh-article-content p { margin-bottom: 18px; }
.cmh-article-content ul,
.cmh-article-content ol { margin: 0 0 18px 24px; }
.cmh-article-content li { margin-bottom: 8px; }
.cmh-article-content a { color: var(--teal-fonce); font-weight: 600; text-decoration: underline; }
.cmh-article-content strong { color: var(--teal-nuit); font-weight: 600; }

/* ── NAV : menu mobile (hamburger) ── */
.cmh-nav-checkbox { display: none; }
.cmh-nav-right { display: flex; align-items: center; gap: 18px; }
.cmh-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.cmh-nav-burger span {
  display: block;
  height: 2px;
  background: var(--teal-nuit);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cmh-nav-burger { display: flex; }
  .cmh-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    padding: 0 clamp(20px, 4vw, 64px);
    box-shadow: 0 12px 24px rgba(26, 79, 92, .10);
    border-bottom: 2px solid rgba(107, 189, 202, .15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  }
  .cmh-nav-links a { padding: 12px 0; width: 100%; }
  .cmh-nav-checkbox:checked ~ .cmh-nav-links {
    max-height: 70vh;
    opacity: 1;
    overflow-y: auto;
    padding: 12px clamp(20px, 4vw, 64px) 20px;
  }
  .cmh-nav-checkbox:checked ~ .cmh-nav-right .cmh-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cmh-nav-checkbox:checked ~ .cmh-nav-right .cmh-nav-burger span:nth-child(2) { opacity: 0; }
  .cmh-nav-checkbox:checked ~ .cmh-nav-right .cmh-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cmh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cmh-footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .cmh-footer-grid { grid-template-columns: 1fr; }
  .cmh-nav-logo { font-size: 0; gap: 0; }
  .cmh-nav-logo img { width: 36px; height: 36px; }
  .cmh-nav-cta { padding: 9px 16px; font-size: 12px; }
  .cmh-nav-right { gap: 10px; }
}
