/* QOIoT — styles de site, charges partout.
   Coherence avec qoiot.fr : meme navy, meme or, meme lisere. */

:root{
	--qo-navy:#324860;--qo-navy2:#263a4e;--qo-gold:#928340;--qo-gold2:#a89550;
	--qo-light:#f4f7fb;--qo-muted:#5a6e82;--qo-border:#d0dce8;
}

/* --- Liseré or sous l en-tete, comme sur le site institutionnel --- */
#site-header-doublon-neutralise{display:none}

/* Bande blanche entre le contenu et le pied : padding du conteneur OceanWP */
#content-wrap{padding-top:0!important;padding-bottom:0!important}
#main #content-wrap .container{padding-bottom:0!important}

/* --- Bandeau de titre de page : navy + fil dore, comme l en-tete --- */
.page-header{
	background:var(--qo-navy)!important;
	padding:3rem 0 2.6rem!important;
	border-bottom:3px solid var(--qo-gold)!important;
	text-align:left!important;
}
.page-header .container{max-width:1140px!important}
.page-header .page-header-title,
.page-header h1{
	font-family:'Barlow Condensed',sans-serif!important;
	font-size:clamp(1.9rem,4vw,2.8rem)!important;
	font-weight:700!important;line-height:1.15!important;
	color:#fff!important;letter-spacing:0!important;text-transform:none!important;
	margin:0!important;
}
.page-header .page-subheading{
	color:rgba(255,255,255,.75)!important;font-size:1rem!important;margin-top:.5rem!important;
}
.site-breadcrumbs,.site-breadcrumbs a,.site-breadcrumbs span{
	color:rgba(255,255,255,.65)!important;font-size:.84rem!important;
}
.site-breadcrumbs a:hover{color:var(--qo-gold2)!important}

/* --- Pied de page QOIoT --- */

/* Pied colle en bas de fenetre meme quand la page est courte.
   Sans cela, le pied s arrete ou finit le contenu et laisse du blanc dessous. */
#outer-wrap{min-height:100vh;display:flex;flex-direction:column}
/* La barre d administration WordPress ajoute sa hauteur au-dessus : sans cela,
   la page depasse toujours d un cran et le pied passe sous la ligne de flottaison. */
body.admin-bar #outer-wrap{min-height:calc(100vh - 32px)}
@media screen and (max-width:782px){
	body.admin-bar #outer-wrap{min-height:calc(100vh - 46px)}
}
#outer-wrap>#wrap{flex:1 0 auto;display:flex;flex-direction:column}
#wrap>#main,#main{flex:1 0 auto}
#footer,#footer-bottom{flex-shrink:0}

/* Zones de widgets vides d OceanWP : elles creaient une bande navy au-dessus du fil dore */
#footer-widgets{display:none!important}
#footer{
	position:relative;
	padding-top:0!important;
	border-top:3px solid var(--qo-gold)!important;
	background:var(--qo-navy)!important;
}

.qo-footer{
	background:var(--qo-navy);color:#fff;padding:3rem 0 2.2rem;font-size:.95rem;line-height:1.75;
}

/* Pied escamotable au survol.
   Le panneau est ancre AU-DESSUS de la barre de copyright et remonte
   par-dessus le contenu : la barre legale ne bouge jamais, elle reste tout en bas.
   Uniquement souris : sur ecran tactile il reste ouvert en permanence. */
@media (hover:hover) and (pointer:fine){
	.qo-footer{
		position:absolute;left:0;right:0;bottom:100%;z-index:5;
		max-height:0;padding-top:0;padding-bottom:0;
		overflow:hidden;opacity:0;
		box-shadow:0 -10px 30px rgba(28,45,63,.18);
		transition:max-height .45s ease,padding .45s ease,opacity .3s ease;
	}
	#footer:hover .qo-footer,
	#footer:focus-within .qo-footer{
		max-height:680px;padding-top:3rem;padding-bottom:2.2rem;opacity:1;
	}
}

/* Mouvement reduit demande par le visiteur : le pied reste ouvert. */
@media (prefers-reduced-motion:reduce){
	.qo-footer{
		max-height:none!important;opacity:1!important;
		padding-top:3rem!important;padding-bottom:2.2rem!important;
		transition:none!important;
	}
}
.qo-footer__in{max-width:1140px;margin:0 auto;padding:0 24px;display:grid;gap:2.5rem;grid-template-columns:1fr}
.qo-footer h3{
	font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
	color:var(--qo-gold);margin:0 0 1rem;padding-bottom:.6rem;
	border-bottom:1px solid rgba(255,255,255,.14);
}
.qo-footer ul{list-style:none;margin:0;padding:0}
.qo-footer li{padding:.28rem 0}
.qo-footer a{color:rgba(255,255,255,.86)!important;text-decoration:none!important}
.qo-footer a:hover{color:var(--qo-gold2)!important}
.qo-footer p{margin:0 0 .5rem;color:rgba(255,255,255,.82)}
.qo-footer__marque{font-weight:600;color:#fff}
.qo-footer__note{font-size:.85rem;color:rgba(255,255,255,.6);margin-top:.9rem}
.qo-footer__pont{
	margin-top:1rem;display:inline-block;padding:.7rem 1.2rem;min-height:44px;
	border:1px solid rgba(255,255,255,.35);border-radius:8px;font-size:.9rem;
}
.qo-footer__pont:hover{border-color:var(--qo-gold)}

@media(min-width:640px){.qo-footer__in{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.qo-footer__in{grid-template-columns:1.4fr 1fr 1fr 1.2fr}}

/* Barre de copyright OceanWP, alignee sur la charte */
#footer-bottom{background:var(--qo-navy2)!important;border-top:1px solid rgba(255,255,255,.1)}
#footer-bottom,#footer-bottom p,#footer-bottom a{font-size:.85rem!important;color:rgba(255,255,255,.7)!important}
#footer-bottom a:hover{color:var(--qo-gold2)!important}

/* --- En-tete : aligne sur qoiot.fr (minimal, 76 px, logo 58 px, sans recherche) --- */
#site-header{
	border-bottom:4px solid var(--qo-gold)!important;
	box-shadow:0 1px 14px rgba(28,45,63,.07);
}
#site-header #site-header-inner{
	max-width:1660px!important;
	padding-top:6px!important;padding-bottom:6px!important;
}
#site-header .site-logo img,
#site-header #site-logo #site-logo-inner a img{
	max-height:58px!important;width:auto!important;height:auto!important;
}
#site-logo{margin-right:1.75rem}

/* Recherche masquee, comme sur le site institutionnel : elle prend la place du menu */
#site-header .search-toggle-li,
#site-header #searchform-header-replace,
#site-header .oceanwp-search-form{display:none!important}

/* Menu : une seule ligne, compact */
#site-navigation-wrap .dropdown-menu>li>a,
#site-header .dropdown-menu>li>a{
	font-family:var(--qo-font-corps,'Inter',sans-serif)!important;
	font-size:12.5px!important;
	font-weight:600!important;
	letter-spacing:.045em!important;
	text-transform:uppercase!important;
	color:var(--qo-navy)!important;
	padding-left:13px!important;padding-right:13px!important;
	height:76px!important;line-height:76px!important;
}
#site-navigation-wrap .dropdown-menu>li>a:hover,
#site-header .dropdown-menu>li>a:hover{color:var(--qo-gold)!important}
#site-navigation-wrap .dropdown-menu>li{
	float:left!important;display:block!important;white-space:nowrap!important;
}

/* Sous-menu deroulant */
#site-navigation-wrap .dropdown-menu ul li a{
	font-size:12.5px!important;text-transform:none!important;letter-spacing:0!important;
	height:auto!important;line-height:1.5!important;padding:9px 18px!important;
	color:var(--qo-navy)!important;
}
#site-navigation-wrap .dropdown-menu ul{
	border-top:3px solid var(--qo-gold)!important;
	box-shadow:0 8px 24px rgba(50,72,96,.14)!important;
}

/* Panier */
#site-header .wcmenucart{height:76px!important;line-height:76px!important}

@media(max-width:1500px){
	#site-navigation-wrap .dropdown-menu>li>a,
	#site-header .dropdown-menu>li>a{font-size:12px!important;padding-left:10px!important;padding-right:10px!important}
}

/* --- Poser vous-meme : niveau, outillage, hauteur --- */
.qo-pose{
	padding:1.1rem 1.3rem;margin:1.5rem 0;
	background:var(--qo-light);border-left:3px solid var(--qo-gold);
}
.qo-pose__titre{
	font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
	color:var(--qo-gold);margin:0 0 .7rem;
}
.qo-pose__ligne{display:flex;align-items:center;gap:.6rem;margin-bottom:.9rem}
.qo-pose__echelle{display:inline-flex;gap:.15rem;align-items:center}
.qo-pose__vis{fill:var(--qo-border)}
.qo-pose__vis--on{fill:var(--qo-gold)}
.qo-pose__label{font-weight:600;color:var(--qo-navy)}
.qo-pose__sous{
	display:block;font-size:.7rem;font-weight:700;letter-spacing:.12em;
	text-transform:uppercase;color:var(--qo-muted);margin-bottom:.5rem;
}
.qo-pose__outils ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem 1.4rem}
.qo-pose__outils li{display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:64px}
.qo-pose__outils li span{font-size:.78rem;color:var(--qo-muted);text-align:center;line-height:1.3}
.qo-pose__icone{color:var(--qo-navy)}
.qo-pose__hauteur{margin:.9rem 0 0;font-size:.94rem;color:var(--qo-text)}
.qo-pose__detail{margin:.5rem 0 0;font-size:.92rem;color:var(--qo-muted)}
.qo-pose__note{margin:.8rem 0 0;font-size:.85rem;color:var(--qo-muted);font-style:italic}
.qo-pose[data-niveau="3"]{border-left-color:var(--qo-navy)}

/* Badge promo : jamais de vert criard */
.woocommerce span.onsale{background:var(--qo-gold)!important;color:#fff!important}

/* ============================================================
   IMAGES PRODUIT — cadrage coherent, aucun produit coupe
   ============================================================
   Les produits Ajax sont verticaux ou carres. Un recadrage force
   (16:9 auparavant) les coupait. On affiche desormais chaque image
   ENTIERE, centree dans une case de hauteur uniforme, fond neutre.
   object-fit:contain garantit qu'aucun produit n'est rogne. */

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
ul.products li.product .qo-thumb img{
	width:100%!important;
	height:220px!important;
	object-fit:contain!important;
	object-position:center!important;
	background:#fff!important;
	padding:14px!important;
	box-sizing:border-box!important;
	border-radius:6px!important;
	margin-bottom:.8rem!important;
}

/* Fiche produit : l'image principale garde ses proportions, jamais etiree. */
.single-product div.product div.images img,
.single-product div.product .woocommerce-product-gallery__image img{
	object-fit:contain!important;
	background:#fff!important;
}

/* Grille reguliere : cartes de meme hauteur, prix aligne en bas. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
	display:flex!important;
	flex-direction:column!important;
}
.woocommerce ul.products li.product .price{
	margin-top:auto!important;
}

/* Mobile : hauteur d'image reduite pour ne pas pousser le prix hors ecran. */
@media(max-width:600px){
	.woocommerce ul.products li.product a img,
	.woocommerce-page ul.products li.product a img{
		height:170px!important;
		padding:10px!important;
	}
}
