/*
Theme Name: couvertures
Theme URI: 
*/

:root {
	--brand-main: #FF6B35;
	--brand-alt: #E07A5F;
	--brand-soft: #FFF5F0;
}
* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	color: #1A2332;
	line-height: 1.6;
	overflow-x: hidden;
}

#page, .header-inner, .hero-inner, .main-inner, .footer-inner {
	max-width: 1240px;
	margin: 0 auto;
}

/* main */ 
main {
	display: flex;
	width: 100%;
	order:3;
}
main section {
	flex: 5;
	padding: 20px;
}
main aside {
	flex: 2;
	padding: 20px;
	min-width:250px;
	max-width:300px;
}
/* sidebar */
aside > ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
aside > ul > li {
	margin-bottom: 40px;
}
aside h2 {
	margin-top: 0;
}
p.widget-title {
	font-size: 20px;
	font-weight: bold;
}

/* ==================== HEADER ==================== */
.site-header {
	background: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.header-inner {
/*	max-width: 1200px; */
/*  1200 réduit la largeur disponible */
	margin: 0 auto;
	padding: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	color: #1A2332;
	cursor: pointer;
	padding: 8px;
}

/* LOGO */
.site-logo {
  margin: 0;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #3B2F2A;
}
.site-logo span {
  color: #C65A2E;
}
.site-logo em {
  font-style: normal;
  opacity: 0.5;
  font-weight: 400;
}

/* NAVIGATION */
.main-navigation {
	display: flex;
}
.main-navigation .menu {
	display: flex;
	list-style: none;
	gap: 32px;
	align-items: center;
}
.main-navigation .menu > li {
	position: relative;
}

/* Indicateur de sous-menu */
.menu-item-has-children > a::before {
	content: '▾';
	font-size: 12px;
	transition: transform 0.3s ease;
	margin-left: 6px;
	padding-right: 4px;
}
.menu-item-has-children:hover > a {
    background: var(--brand-soft);
/*    padding: 0 12px;*/
    border-radius: 6px;
}
.menu-item-has-children:hover > a::before {
	transform: rotate(180deg);
}
.main-navigation .menu a {
	text-decoration: none;
	color: #4A5568;
	font-weight: 500;
	font-size: 15px;
	transition: color 0.3s ease;
	position: relative;
}
.main-navigation .menu > li > a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--brand-main), var(--brand-alt));
	transition: width 0.3s ease;
}
.main-navigation .sub-menu > li > a::after {
  display:none;
}

.main-navigation .menu a:hover {
	color: var(--brand-main);
}
.main-navigation .menu > li > a:hover::after {
	width: 100%;
}
.main-navigation .menu a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--brand-main), var(--brand-alt));
	transition: width 0.3s ease;
}
.main-navigation .menu a:hover::after {
	width: 100%;
}
/* Page active */
.current_page_item > a {
	color: var(--brand-main);
	font-weight: 600;
}

/* SOUS-MENUS (Desktop) */
.sub-menu {
	position: absolute;
	top: 100%;
	left: 50%; /* 0 */
    transform: translateX(-50%) translateY(-10px); /* Centré sous le parent */	
	min-width: 240px;
/*	max-width: 280px;*/
	white-space: nowrap;
	background: white;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	padding: 0 5px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
/*	transform: translateY(-10px);*/
	transition: all 0.3s ease;
	z-index: 1000;
/*	margin-top: 12px;*/ /*si marge on ne peut pas descendre la souris pour cliquer dans le ss menu ! */
}
.menu-item-has-children:hover .sub-menu {
	opacity: 1;
	visibility: visible;
    transform: translateX(-50%) translateY(0); /* Ajuste le translateY */
}
.sub-menu li {
	width: 100%;
}
.sub-menu a {
	padding: 6px 12px; /*6 20*/
	color: #4A5568;
	font-size: 14px;
	transition: all 0.3s ease;
	border-left: 4px solid transparent;
}
.sub-menu a:hover {
	background: var(--brand-soft);
	color: var(--brand-main);
	border-left-color: #FF6B35;
}

/* ==================== HERO SPLIT ==================== */
.hero {
	background: #F5E6D3;
	min-height: 600px;
	display: flex;
	align-items: center;
}

.hero-inner {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: center;
}

.hero-image {
	height: 600px;
	background: url("img/hero-confort-thermique-hiver-2.jpg") center / cover no-repeat;
	position: relative;
}

.hero-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, transparent 0%, rgba(245, 230, 211, 0.3) 100%);
}

.hero-content {
	padding: 80px 60px;
	max-width: 600px;
}

.hero-kicker {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--brand-alt);
	margin-bottom: 20px;
}

.hero-title {
	font-family: 'Poppins', sans-serif;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	color: #1A2332;
	margin-bottom: 24px;
}

.hero-text {
	font-size: 18px;
	line-height: 1.7;
	color: #4A5568;
	margin-bottom: 32px;
}

.hero-cta {
	display: inline-block;
	background: linear-gradient(135deg, var(--brand-main) 0%, var(--brand-alt) 100%);
	color: white;
	padding: 16px 40px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
	transition: all 0.3s ease;
}

.hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

/* ==================== SECTION PRODUITS ==================== */
.products-section {
	padding: 80px 24px;
	background: white;
}

.section-header {
	max-width: 1200px;
	margin: 0 auto 60px;
	text-align: center;
}

.section-title {
	font-family: 'Poppins', sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: #1A2332;
	margin-bottom: 16px;
}

.section-subtitle {
	font-size: 18px;
	color: #4A5568;
}

.products-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
}

.product-card {
	background: white;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 24px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.product-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.product-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: linear-gradient(135deg, var(--brand-main), var(--brand-alt));
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-image {
	width: 100%;
	height: 240px;
	background: #F5E6D3;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #4A5568;
	font-size: 14px;
}

.product-title {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #1A2332;
	margin-bottom: 12px;
}

.product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.stars {
	color: #FFA726;
	font-size: 16px;
}

.rating-text {
	font-size: 14px;
	color: #4A5568;
}

.product-description {
	font-size: 14px;
	color: #4A5568;
	line-height: 1.6;
	margin-bottom: 20px;
}

.product-features {
	list-style: none;
	margin-bottom: 20px;
}

.product-features li {
	font-size: 14px;
	color: #4A5568;
	padding: 6px 0;
	padding-left: 24px;
	position: relative;
}

.product-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #48BB78;
	font-weight: bold;
}

.product-price {
	font-family: 'Poppins', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: var(--brand-main);
	margin-bottom: 16px;
}

.product-cta {
	display: block;
	width: 100%;
	background: linear-gradient(135deg, var(--brand-main), var(--brand-alt));
	color: white;
	padding: 14px 24px;
	border-radius: 8px;
	text-decoration: none;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s ease;
}

.product-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
	.hero-inner {
		grid-template-columns: 1fr;
	}

	.hero-image {
		height: 400px;
		order: -1;
	}

	.hero-content {
		padding: 60px 40px;
	}

	.hero-title {
		font-size: 40px;
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	.main-navigation {
		position: fixed;
		top: 70px;
		left: -100%;
		width: 80%;
		max-width: 300px;
		height: calc(100vh - 70px);
		background: white;
		box-shadow: 2px 0 16px rgba(0,0,0,0.1);
		transition: left 0.3s ease;
		z-index: 999;
	}
	.main-navigation.active {
		left: 0;
	}
	.main-navigation .menu {
		flex-direction: column;
		gap: 0;
		padding: 24px 0;
	}
	.main-navigation .menu li {
		width: 100%;
	}
	.main-navigation .menu li ul {
		padding:0 0 0 20px; /* sous menu pas trop collé à gauche */
	}

	.main-navigation .menu a {
		display: block;
		padding: 16px 24px;
		border-bottom: 1px solid #E2E8F0;
	}
	.main-navigation .menu a::after {
		display: none;
	}
	.hero-image {
		height: 300px;
	}
	.hero-content {
		padding: 40px 24px;
	}
	.hero-title {
		font-size: 32px;
	}
	.hero-text {
		font-size: 16px;
	}
	.section-title {
		font-size: 28px;
	}
	.products-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 480px) {
	.site-logo a {
		font-size: 16px;
	}
	.site-logo a::before {
		width: 24px;
		height: 24px;
	}
	.hero-title {
		font-size: 28px;
	}
	.hero-cta {
		width: 100%;
		text-align: center;
	}
}

/* Menu overlay pour mobile */
.menu-overlay {
	display: none;
	position: fixed;
	top: 70px;
	left: 0;
	width: 100%;
	height: calc(100vh - 70px);
	background: rgba(0,0,0,0.5);
	z-index: 998;
}

.menu-overlay.active {
	display: block;
}

/* Desktop : on cache le 1er sous-élément (Tous les coussins) */
@media (min-width:901px) {
  .main-navigation .menu > li > .sub-menu > li:first-child {
    display:none;
  }
}


@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/couvertures/fonts/fraunces/Fraunces-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/couvertures/fonts/fraunces/Fraunces-Italic.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/wp-content/themes/couvertures/fonts/fraunces/Fraunces-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*-------------------------------------------------*/
/* bloc de produits amazon						   */
/*-------------------------------------------------*/

.produits {
	clear: both;
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    }
.produit {
    display:block;
    float:right;
    }
.product {
	flex:1;
    flex-direction: row;
    display:flex;
    border: 1px solid #ddd;
    border-radius: 15px; 
    padding: 15px;
    }
.vert {
    max-width:300px;
    }
.horiz {
    max-width:500px;
    }
.produit.large, .large.horiz  {
    max-width:100%;
    float:none;
    }
.reduit.horiz  {
    max-width:360px;
    }
.reduit.vert{
    max-width:200px;
    display:block;
    }
.product .title {
    font-size: 24px;
    font-weight:bold;
	line-height: 1.2;
	height:fit-content;
    }
.reduit .title{
    font-size: 18px;
	}
.product .prix {
    font-size: 24px;
    font-weight:bold;
    color:red;
    }
.reduit .prix {
    font-size: 22px;
    }
.prix>.prixBarre {color:grey;font-size:0.6em;text-decoration: line-through; margin-left:5px}
.product .descr {
	min-height: 200px;
    font-size:80%;
    }
.product .descr ul {
	padding-left:20px;
    }
.product .link {
    font-size: 18px;
    text-align:center;
    background-color: #f39c12;
    color: #fff;   
	border: 1px solid #f39c12;
    border-radius: 6px; 
    padding: 15px;
	width: fit-content;
    margin: auto;    
    }
.reduit .link {
    font-size: 14px;
    padding: 5px;
    }
.productImg {
    height: 270px;
    width: fit-content;
    margin: auto;
    }
.productImg img {
/*    margin: 10px 0;*/
    }
.moyen img{
    max-width: 200px;
    }
.reduit img{
    max-width: 120px;
    }
.reduit.vert img{
    max-width: 200px;
    }
.ob { /* outerblock*/
    height: auto;
    width: auto;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
/*    overflow: hidden;*/
    background-color: transparent;
/*    margin-bottom: 10px;*/
    }
.descr.ob { /* outerblock*/
    text-align: left;
    }
.title.ob { /* outerblock*/
    display: block;
    }

img.alignright { margin: 0 0 1em 1em; }
img.alignleft { margin: 0 1em 1em 0; }
img.aligncenter { margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/*-------------------------------------------------*/
/* Faq											   */
/*-------------------------------------------------*/
	
.faq-list {
	margin: 0 0 20px 0;
	padding: 0;
}
.faq-list .question {
	display: block;
	position: relative;
    border: 1px solid #cccccc;
    background: #ededed;
    margin: 10px 0 0;
}
.faq-list .question.on {
	color: #f00;
}
.faq-list h2{
	margin-bottom:0;
	padding-top:0;
/*	font-size:1.5rem;*/
}
.faq-list .h2x{
	font-size:1.5rem;
	font-weight: bold;
}
.faq-list .answer {
	display: none;
	padding: 5px 5px 5px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #333333;
   	border-bottom-right-radius:6px;
	border-bottom-left-radius:6px;
}

/*-------------------------------------------------*/
/* Footer										   */
/*-------------------------------------------------*/
footer {
	font-size: .9em;
	margin: 20px 0 0 0;
	padding: 20px 20px 15px;
	width:100%;
	border-top: 1px solid #ccc;
	order:4;
}
footer .credits {
  float: left;
  margin: 0;
}
footer nav {
	float: right;
	width:auto;
    background: transparent;
}
footer nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
footer nav li {
  display: inline-block;
}
footer nav a {
  color: #111;
/*
  display: block;
  padding: 0 0 0 10px;
  line-height: 35px;
  transition: color .2s;
*/
}
footer nav a:hover, footer .link:hover {
  color: #45bbe6;
}

/*-------------------------------------------------*/
/* boutons amazon */
/*-------------------------------------------------*/

.link {
    cursor:pointer;
    }
.achatAmzn, .promoAmzn  {
    display: block;
    height: auto;
    width: fit-content;
    margin: 15px auto;
}
.achatAmzn a, .promoAmzn a {
    color:white;
}
.achatAmzn span, .promoAmzn span {
    padding: .5em .8em;
    margin: .5em;
    display:block;
    text-align: center;
    font-size: 1.4em;
    background: var(--brand-main);
    background: linear-gradient( var(--brand-main),#ffab3d);
    border-radius: .6em;
    box-shadow: 0 0 5px rgba(0,0,0,0.5), 0 -1px 0 rgba(255,255,255,0.4);
}
td .achatAmzn span {
    font-size: 1em;
}
.promoAmzn span {
    background: #ff9166;
    background: linear-gradient( #095fd2,#3886ee);
}
/* pour avoir des colonnes de la même taille : ajout au plugin */
.omsc-pricing-column {
	width:50%;
	}
img {
	max-width: 100%;
	height: auto;
}
.wp-content p {
  margin: 0.5em 0;
}


/*--------------------------------------------------------------
6.0 Responsive
--------------------------------------------------------------*/

@media screen and (max-width: 50em) {	/* 800 à 1000px */
	#page {
		max-width: 100%;
	}
	main section {
	  flex: 5;
	}
	main aside {
	  flex: 4;
	}
	hgroup h1 {
		font-size: 5vw;
    }
}

@media screen and (max-width: 40em) {  /* 640 px */
	#page {
		max-width: 100%;
	}
	main {
	  display: block;
	  width: 100%;
	}
    h1 {
        font-size:1.5em;
    }
	header p span{
		font-size: 6vw;
    }
}

@media screen and (max-width: 30em) {  /* 480 px */
	/* layout */
	main {
	  display: block;
	  width: 100%;
	}
	main section {
		padding: 10px 10px;
	}
	#page {
		max-width: 100%;
	}
	header hgroup{
		height:30vh;	/* hauteur proportionnelle à la largeur de la page */
	}
    h1 {
        font-size:1.2em;
    }
	header p span{
		font-size: 5.4vw;
    }
	.omsc-pricing-table, .omsc-pricing-column {
		display:contents!important ;
	}
}


