/**
 * Comptoir Nourisson — Typographies charte
 * MEGA MENU / Corps : Poppins
 * H1–H6 : Playfair Display
 * Sources : /fonts/Poppins + /fonts/Playfair_Display
 */

/* —— Poppins (corps + menu) —— */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* —— Playfair Display (titres) —— */
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --cn-font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cn-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Corps de texte */
html,
body {
  font-family: var(--cn-font-body) !important;
  font-weight: 400;
}

body,
#page,
#wrapper,
#content-wrapper,
.container,
.product-miniature,
.product-description,
.cart-grid,
.checkout-step,
.card,
.form-control,
.btn:not(.material-icons),
p,
li,
td,
th,
label,
input,
textarea,
select,
.breadcrumb,
.pagination {
  font-family: var(--cn-font-body) !important;
}

/* Titres H1–H6 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-header h1,
.page-heading,
.product-title,
.product-detail-name,
.product-name,
.card-title,
.modal-title,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title,
.cn-section-title,
.cn-hero-title {
  font-family: var(--cn-font-heading) !important;
}

/* Mega menu — Poppins */
.ets_mm_megamenu,
.ets_mm_megamenu a,
.ets_mm_megamenu .mm_menus_li,
.ets_mm_megamenu .mm_menus_li > a,
.ets_mm_megamenu .mm_menus_li > a .mm_menu_content_title,
.ets_mm_megamenu .mm_menus_li > a span:not(.mm_bubble_text),
.ets_mm_megamenu .mm_columns_ul,
.ets_mm_megamenu .mm_tab_toggle_title,
.cn-header-band-menu .ets_mm_megamenu,
.cn-header-band-menu .ets_mm_megamenu a,
.pos-menu-vertical,
.pos-menu-vertical a,
.pos-menu-vertical .title_vertical,
.cn-mobile-topnav,
.cn-mobile-topnav a,
.quickmenu-mobile,
.quickmenu-mobile a,
.cn-header-topnav,
.cn-header-topnav a {
  font-family: var(--cn-font-body) !important;
}
