/*!
Theme Name: detaillingsupreme
Theme URI: http://underscores.me/
Author: Yoann VERVIER
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: detaillingsupreme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* #03587B */

:root {
	--color-primary: #00709f;
	--color-secondary: #005e86;
	--typo: sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--typo);
    background-color: #e0e0e0;
}

img {
    max-width: 100%;
    height: auto;
}

a,
a:visited,
a:hover,
a:active {
	color: inherit;
    text-decoration: none;
}

button {
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: 20px;
	box-shadow: none;
  	text-decoration: none;
	cursor: pointer;
}
button:hover {
	background-color:var(--color-secondary);
	color: white;
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
	padding: 20px 0;
	background: transparent;
	backdrop-filter: blur(8px);
	transition: all 0.3s ease;

	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	justify-items: center;
}

.site-header.scrolled {
    background: var(--color-primary);
	color: white;
	padding: 20px 0;
}

button.menu-toggle {
	display: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation div ul,
.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation div ul li a:hover {
	text-decoration: underline;
}

.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;

    background: white;
    padding: 1rem 0;
    z-index: 100;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.menu-item-has-children a::after {
    content: " ▼";
    font-size: 0.7em;
}

#logo {
	justify-self: center;
}

header h1 {
	font-size: 3rem;
	text-align: center;
}

@media (max-width: 768px) {
	button.menu-toggle {
		display: flex;
		float: left;
		background: transparent;
		color: var(--color-primary);
	}

	.site-header.scrolled button.menu-toggle {
		color: white;
	}
	
	.main-navigation div ul,
	.main-navigation ul {
		display: none;
	}

	.main-navigation.toggled div ul,
	.main-navigation.toggled ul {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: white;
		color: var(--color-primary);
		text-align: center;
		padding: 1rem 0;
	}

	.site-header.scrolled .main-navigation.toggled div ul,
	.site-header.scrolled .main-navigation.toggled ul {
		background: var(--color-primary);
		color: white;
	}
}

/* Index */

.home-bloc {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.home-products h3 {
	font-size: 50px;
}

.home-message {
	background-color: #1a1a1a;
	font-size: 25px;
	color: white;
	padding-bottom: 5%;
	text-align: center;
}

.home-message h2 {
	font-size: 130px;
	color: rgba(0,0,0);
	text-shadow: 0 0 15px var(--color-primary), 0 0 10px var(--color-primary);
}

.home-message h3 {
	font-size: 45px;
	position: relative;
}
.home-message h3::after {
	content: "";
    position: absolute;
    width: 30%;
	bottom: -10px;
	left: 35%;
    height: 4px;
	border-radius: 35%;
    background: var(--color-primary);
}

.home-message button {
	font-size: 25px;
	margin: 10px;
	margin-top: 5%;
	padding: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.home-socials {
	font-size: 40px;
	position: relative;
	padding: 10%;
}

.home-socials h2::after {
	content: "";
    position: absolute;
    width: 30%;
	margin-top: 15%;
	left: 35%;
    height: 4px;
	border-radius: 35%;
    background: var(--color-primary);
}

.home-socials button {
	font-size: 25px;
	margin: 10px;
	padding: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}

@media (min-width: 768px) {
	.home-socials {
		padding: 2%;
	}
	
	.home-socials h2::after {
		margin-top: 3%;
	}

}

/* Shop */

article.page,
div.product {
	padding-left: 3rem;
	padding-right: 3rem;
}

select.orderby {
	background-color: var(--color-primary);
	color: white;
    margin-top: auto;
}

select.orderby:hover {
	background-color: var(--color-secondary);
	color: white;
}

select.orderby option:hover {
	background-color: var(--color-secondary);
}

img.attachment-woocommerce_thumbnail {
	border-radius: 30px;
	box-shadow: #00000030 0 10px 20px, #0000003b 0 6px 6px !important;
}

ul.products li.product {
    display: flex;
    flex-direction: column;

	text-align: center;

    border-radius: 12px;
    overflow: hidden;

    padding: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.7rem;
    margin-top: 1rem;
}

span.amount {
    font-weight: bold;
	font-size: 1.3rem;
	color: black;
}

ul.products a.button {
	background-color: var(--color-primary);
	color: white;
    margin-top: auto;
	border-radius: 15px;
}

ul.products a.button:hover {
	background-color: var(--color-secondary);
	color: white;
}

ul.page-numbers li {
	background-color: var(--color-primary);
	color: white;
    margin-top: auto;
}

ul.page-numbers li:hover {
	background-color: var(--color-secondary);
	color: white;
}

/* Product Page */

@media (min-width: 768px) {
	.product-layout div {
		margin-right: 2rem;
	} 

	.custom-product-page, 
	.related-products {
		padding: 2rem;
	}
}

.woocommerce div.product form.cart .button {
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: 20px;
	box-shadow: none;
  	text-decoration: none;
	cursor: pointer;
}

.woocommerce div.product form.cart button:hover {
	background-color:var(--color-secondary);
	color: white;
}

/* Pages Annexes */

.entry-content h1,
.entry-content h2,
.entry-content h3 {
	padding-bottom: 20px;
}

.entry-content p {
	font-size: 20px;
	padding-bottom: 20px;
}

.entry-content li {
	font-size: 20px;
	padding-bottom: 20px;
}
@media (min-width: 768px) {
	.entry-content {
		padding-left: 5rem;
		padding-right: 5rem;
	}	
}

/* Prestations */

.wp-block-image {
	margin: 0;
	align-items: center;
	justify-self: center;
}

/* Panier */

.wc-block-cart__submit-container {
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: 20px;
	box-shadow: none;
  	text-decoration: none;
	cursor: pointer;
}

/* Footer */

.footer {
	background-color: var(--color-secondary);
	color: rgba(255, 255, 255, 0.9);
	padding-left: 15%;
	padding-right: 15%;
}

.footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;	
	padding-bottom: 3rem;
	padding-top: 3rem;
	position: relative;
}
.footer-newsletter::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter-form div{
	display: flex;
	justify-content: space-between;
	gap: 0;
	width: 100%;
}

.footer-newsletter-form input{
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
    border: 1px solid #ddd;
    padding: 10px 12px;
	margin-top: 5px;
    outline: none;
	width: 100%;
}

.footer-newsletter-form button{
	border-radius: 0;
	margin-top: 5px;
}

.footer-newsletter-form-content {
	color: rgba(255, 255, 255, 0.7);
	font-size: small;
}
.footer-newsletter-form-content a {
	text-decoration: underline;
}

.footer-middle {
	display: flex;
    align-items: center;
    gap: 2rem;
	padding-bottom: 3rem;
	padding-top: 3rem;
	position: relative;
}
.footer-middle a {
	color: rgba(255, 255, 255, 0.7);
}
.footer-middle a:hover{
	color: rgba(255, 255, 255, 0.95);
	text-decoration: double;
}
.footer-middle::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-visitcard {
	background-color: white;
	padding: 10px;
	border-radius: 10px;
	box-shadow: #00000030 0 10px 20px, #0000003b 0 6px 6px !important;
}

div.footer-visitcard div {
	margin: 5px;;
}

div.footer-visitcard div a,
div.footer-visitcard div p {
	color: rgba(0, 0, 0, 0.7);
	font-size: small;
}

div.footer-visitcard div a:hover, 
div.footer-visitcard div p:hover {
	color: black;
	font-size: small;
}

.footer-menu {
	display: flex;
	justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
	width: 80%;
}

.footer-submenu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
}

.footer-submenu h3::after {
	content: "";
    position: absolute;
	left: 0;
	top: 25%;
    width: 20%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-end {
	display: flex;
	justify-content: space-between;
    align-items: center;
    gap: 2rem;
	padding-bottom: 3rem;
	padding-top: 3rem;
	position: relative;
}

.footer-end::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-end div ul {
	display: flex;
	justify-content: space-around;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-end div ul li {
	margin: 5px;
}

@media (max-width: 768px) {
	.footer {
		padding-left: 5%;
		padding-right: 5%;
	}

	.footer-newsletter {
		flex-direction: column;
		align-items: stretch;
	}

	/* Milieu : carte de visite au-dessus, menus en dessous */
	.footer-middle {
		flex-direction: column;
		align-items: stretch;
	}

	.footer-visitcard {
		width: 100%;
		box-sizing: border-box;
	}

	.footer-menu {
		width: 100%;
		justify-content: space-between;
		align-items: flex-start;
		gap: 1rem;
	}

	.footer-submenu {
		gap: 1rem;
		min-width: 0;
	}

	/* Bas de footer : tout en colonne, centré */
	.footer-end {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.footer-end div ul {
		justify-content: center;
		flex-wrap: wrap;
	}
}