/*
Theme Name: Cave du Pont
Theme URI: https://www.cavedupont.ch
Author: La Prod TV Sàrl
Author URI: https://www.laprod.tv/
Description: Thème sur mesure pour la Cave du Pont Sàrl, Le Pont (Vallée de Joux). Site vitrine, commandes par formulaire.
Version: 3.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cavedupont
*/

/********************************
			VARIABLES
********************************/

:root {
	--cdp-fond:        #2e0600;
	--cdp-fond-fonce:  #3a0600;
	--cdp-creme:       #fee8d4;
	--cdp-creme-voile: rgba(255, 233, 212, 0.7);
	--cdp-creme-survol: rgba(255, 233, 212, 0.53);
}

/********************************
			GENERAL
********************************/

body {
	background: var(--cdp-fond);
}

a {
	color: var(--cdp-creme);
	font-weight: bold;
	transition: all 0.3s ease-in;
}

a:hover,
a:focus {
	color: var(--cdp-creme);
}

/* Focus clavier visible : accessibilité */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--cdp-creme);
	outline-offset: 3px;
}

/* Lien d'évitement pour lecteurs d'écran */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	background: var(--cdp-fond-fonce);
	color: var(--cdp-creme);
	padding: 15px 25px;
}

.skip-link:focus {
	left: 0;
}

.title-cadre {
	text-align: center;
	display: inline-block;
	padding: 20px;
	border: 3px solid var(--cdp-creme);
	color: var(--cdp-creme);
	margin-top: 50px;
	margin-bottom: 50px;
}

/* Respect de la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/********************************
			HEADER
********************************/

.certificat img {
	position: fixed;
	display: inline-block;
	width: 150px;
	height: auto;
	z-index: 1000;
	bottom: 200px;
	left: 10px;
	transform: rotate(-20deg);
	transition: 0.5s ease-in-out;
}

.certificat img:hover {
	transform: rotate(-20deg) scale(1.3);
}

@media (max-width: 879px) {
	.certificat img {
		width: 90px;
		bottom: 20px;
	}
}

header {
	position: fixed;
	display: block;
	width: 100%;
	z-index: 500;
}

@media (max-width: 879px) {
	header {
		position: absolute;
	}
}

div#menu {
	background: var(--cdp-creme-voile);
}

@media (max-width: 879px) {
	div#menu {
		text-align: center;
	}
}

div#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

div#menu ul li {
	display: inline-block;
	padding: 20px;
}

@media (max-width: 879px) {
	div#menu ul li {
		padding: 10px;
	}
}

#mainmenu a {
	color: var(--cdp-fond-fonce);
	padding-bottom: 20px;
	font-size: 20px;
}

#mainmenu a:hover,
#mainmenu .current-menu-item > a {
	text-decoration: none;
	border-bottom: 5px solid var(--cdp-fond-fonce);
}

@media (max-width: 879px) {
	#mainmenu a {
		font-size: 15px;
	}
}

@media (max-width: 471px) {
	#mainmenu a {
		font-size: 12px;
	}
}

#menulogo {
	text-align: right;
	padding-right: 30px;
}

@media (max-width: 879px) {
	#menulogo {
		padding-right: 15px;
		text-align: center;
	}

	#menulogo img {
		width: 70%;
		height: auto;
		margin: 0 auto;
	}
}

/********************************
			ACCUEIL
********************************/

/*******
	Vidéo
*******/

#video-homepage {
	text-align: center;
}

#video-homepage video,
#video-homepage img.video-poster {
	width: 100%;
	height: auto;
	margin-top: -20px;
	display: block;
}

/*******
	Présentation
*******/

#about-homepage {
	background: url(images/bg-about.jpg) no-repeat center center fixed;
	background-size: cover;
	color: var(--cdp-creme);
	padding: 100px;
	font-size: 20px;
}

@media (max-width: 720px) {
	#about-homepage {
		padding: 20px;
		background-attachment: scroll;
	}
}

/*******
	Cadeau d'entreprise
*******/

#gift-homepage {
	color: var(--cdp-creme);
	padding: 100px;
	font-size: 20px;
	text-align: center;
}

@media (max-width: 720px) {
	#gift-homepage {
		padding: 20px;
	}
}

/*******
	Vin
*******/

#vin-homepage {
	background: url(images/bg-vin.jpg) no-repeat center center fixed;
	background-size: cover;
	color: var(--cdp-creme);
	padding: 100px;
	font-size: 20px;
	text-align: center;
}

@media (max-width: 720px) {
	#vin-homepage {
		padding: 20px;
		background-attachment: scroll;
	}
}

/*******
	Où trouver nos vacherins
*******/

#trouver-homepage {
	text-align: center;
	color: var(--cdp-creme);
	padding-bottom: 50px;
	font-size: 20px;
	font-weight: lighter;
}

/*******
	Recettes
*******/

#recettes-homepage {
	padding-top: 100px;
	padding-bottom: 50px;
	background: url(images/bg-recette.jpg) no-repeat center center fixed;
	background-size: cover;
	color: white;
	text-align: center;
}

@media (max-width: 720px) {
	#recettes-homepage {
		background-attachment: scroll;
	}
}

.recette-homepage {
	overflow: hidden;
}

.recette-homepage img {
	width: 100%;
	height: auto;
	display: block;
	clear: both;
	margin-top: 40px;
	margin-bottom: 40px;
}

.recette-homepage a {
	display: block;
}

.recette-homepage a:hover {
	text-decoration: none;
}

.recette-homepage a h2 {
	min-height: 100px;
	padding: 10px;
	font-size: 25px;
	text-align: center;
	color: var(--cdp-creme);
	border: 0;
}

/*******
	Appel à commander
*******/

#commande-homepage {
	text-align: center;
	color: var(--cdp-creme);
	padding: 80px 20px;
	font-size: 20px;
}

.bouton-cdp {
	display: inline-block;
	border: 3px solid var(--cdp-creme);
	color: var(--cdp-creme);
	padding: 18px 40px;
	font-size: 22px;
	text-decoration: none;
	transition: all 0.3s ease-in;
}

.bouton-cdp:hover,
.bouton-cdp:focus {
	background: var(--cdp-creme-survol);
	text-decoration: none;
	color: var(--cdp-creme);
}

/********************************
		ARTICLE & PAGE
********************************/

.thumbnail-out {
	width: 100%;
	overflow: hidden;
}

.thumbnail-single img {
	width: 100%;
	height: auto;
}

article {
	padding: 120px 80px 80px 80px !important;
	color: var(--cdp-creme);
}

@media (max-width: 510px) {
	article {
		padding: 120px 60px 60px 60px !important;
	}
}

@media (max-width: 320px) {
	article {
		padding: 120px 30px 30px 30px !important;
	}
}

article .title-article {
	margin-bottom: 30px;
	font-weight: lighter;
	font-size: 45px;
}

@media (max-width: 782px) {
	article .title-article {
		margin-top: 50px;
	}
}

article h2 {
	font-weight: lighter;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--cdp-creme);
	margin-bottom: 10px;
}

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

/* Liste d'archives (recettes, actualités) */

.liste-articles {
	list-style: none;
	padding: 0;
}

.liste-articles li {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--cdp-creme);
}

.liste-articles h2 {
	border: 0;
	font-size: 30px;
}

.pagination-cdp {
	margin: 40px 0;
}

.pagination-cdp .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--cdp-creme);
	margin-right: 6px;
}

.pagination-cdp .current {
	background: var(--cdp-creme-survol);
}

/*******
	404
*******/

#error_page {
	text-align: center;
	padding-top: 250px;
	padding-bottom: 250px;
	color: white;
}

/********************************
		FORMULAIRES
********************************/

.form-cdp {
	max-width: 700px;
	margin-top: 40px;
}

.form-cdp p {
	margin-bottom: 25px;
}

input,
textarea,
select {
	background: transparent;
	border: 1px solid var(--cdp-creme);
	padding: 20px;
	color: var(--cdp-creme);
	font-weight: lighter;
	border-radius: 10px;
	width: 100%;
}

select option {
	background: var(--cdp-fond-fonce);
	color: var(--cdp-creme);
}

label {
	width: 100%;
	display: block;
	margin-bottom: 8px;
}

.champ-requis {
	color: var(--cdp-creme);
}

input[type="submit"] {
	width: auto;
	min-width: 180px;
	cursor: pointer;
	transition: all 0.3s ease-in;
}

input[type="submit"]:hover {
	background: var(--cdp-creme-survol);
}

/* Piège à robots : invisible pour les humains */
.cdp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.message-cdp {
	padding: 20px;
	border: 2px solid var(--cdp-creme);
	border-radius: 10px;
	margin-bottom: 30px;
}

.message-cdp.erreur {
	border-style: dashed;
}

.message-cdp ul {
	margin: 10px 0 0 20px;
}

iframe {
	width: 100%;
	height: 350px;
	margin-top: 50px;
	border: 0;
}

/********************************
			FOOTER
********************************/

footer {
	background: var(--cdp-fond-fonce);
	color: var(--cdp-creme);
	padding: 80px !important;
}

@media (max-width: 510px) {
	footer {
		padding: 40px !important;
	}
}

footer a {
	color: var(--cdp-creme);
	font-weight: bold;
}

footer address {
	font-style: normal;
	line-height: 1.8;
}

.aop {
	text-align: right;
}

@media (max-width: 879px) {
	.aop img {
		width: 50px;
		height: auto;
		margin-bottom: 50px;
	}
}

@media (max-width: 782px) {
	.aop {
		text-align: left;
	}
}

footer p.copyright {
	margin: 30px 0 0 0;
	padding: 0;
	font-size: 11px;
}
