/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: Thème enfant pour OceanWP theme
Author: Les Hirondelles du Net
Author URI: https://www.leshirondellesdunet.com
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

#site-logo .site-logo-text {
	font-size: 2.8em !important;
}

#site-header .container {
	padding-top: 20px;
	font-family: 'Playfair Display', serif;
}

.site-description { /* SLOGAN DU SITE */
	font-family: 'Playfair Display', serif;
	font-size: 2.5rem;
	color: #666666;
	font-weight: 400;
	margin: 5px 0 15px;
	text-align: center;
}

#footer-widgets .footer-box .footer-widget {
	margin-bottom: 10px;
}

.footer-widget h5 {
	margin: 0;
}

.espacer li {
	margin: 5px 0 0;
}

.show-on-mobile { /* pour les <br> par exemple */
	display: none;
}

.marger {
	margin: 60px 0 40px;
}


/* ============  IMAGE INTRO Accueil  ============================================ */
.parallax-header {
	width: 100vw;              /* Largeur sur toute la fenêtre */
	left: 50%;
	right: 50%;
	margin-left: -50vw;        /* Annule le centrage automatique éventuel */
	margin-right: -50vw;
	position: relative;
	background-image: url("https://grenoble-mtc.com/wp-content/uploads/2025/05/feng-shui.jpg");
	min-height: 500px;         /* ajuster la hauteur selon le besoin */
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-sizing: border-box;
	/* Centrage du contenu */
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	text-align: center;
}
.parallax-content {
	background: rgba(0, 0, 0, 0.4); /* fond semi-transparent pour lisibilité */
	padding: 20px 30px;
	border-radius: 8px;
	color: #fff;
}
.parallax-content h2  {
	color: #fff;
	font-family: 'Playfair Display', serif;
}
.parallax-content h1  {
	color: #fff;
	font-family: 'Playfair Display', serif;
	font-size: 38px;
}

/* Espacer le 1er paragraphe après les parallax */
.parallax-header + p,
.parallax-presentation + p,
.parallax-contact + p {
	margin-top: 40px;
}

/* Espacer le 1er titre après les parallax */
.parallax-header + h1,
.parallax-presentation + h2,
.parallax-contact + h2 {
	margin-top: 40px;
	font-family: 'Playfair Display', serif;
}


/* =============  IMAGE INTRO À PROPOS ===================== */
.parallax-presentation {
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	position: relative;
	background-image: url("https://grenoble-mtc.com/wp-content/uploads/2025/05/nature.jpg");
	min-height: 500px;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	text-align: center;
}

/* =============  IMAGE INTRO CONTACT ====================== */
.parallax-contact {
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	position: relative;
	background-image: url("https://grenoble-mtc.com/wp-content/uploads/2025/06/meridiens-contact.jpg");
	/*background-image: url("https://grenoble-mtc.com/wp-content/uploads/2025/05/meridiens.jpg");*/
	min-height: 500px;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	text-align: center;
}

/* ============= Fond Beige sur page d'accueil pour Formulaire  ================== */
.bande-beige {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: #f5f5f2;
	padding: 60px 0;
	box-sizing: border-box;
	margin-top: 40px;
}

/* Espacer le premier paragraphe après le parallax */
.bande-beige + p {
	margin-top: 40px; /* espace au-dessus du 1er paragraphe */
	font-size: 14px;
}

.bande-beige .wp-block-columns {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 40px;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
}
.bande-beige .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}
.bande-beige .wp-block-column img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-top: 24px;
}

/* Effet carte blanche sur le formulaire (desktop uniquement) */
.bande-beige .formulaire-sur-bande .wpforms-container {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
	padding: 32px 24px;
	max-width: 500px;
	width: 100%;
	margin-left: auto;
	margin-right: 0;
	box-sizing: border-box;
	transition: max-width 0.3s;
}

/* ===========  FORMULAIRE DE CONTACT SUR PAGE D'ACCUEIL  =============  */
.formulaire-sur-bande .wpforms-container {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
.formulaire-sur-bande .wpforms-container .wpforms-field-row.wpforms-field-medium {
	max-width: 100%;
}
.formulaire-sur-bande  .wpforms-container .wpforms-field .wpforms-field-row .wpforms-field-row-block:first-child {
 	width: 40%;	
}
.formulaire-sur-bande  .wpforms-container .wpforms-field .wpforms-field-row .wpforms-field-row-block:last-child {
 	width: 60%;	
}
/* Message de confirmation d'envoi du formulaire */
div.wpforms-container-full .wpforms-confirmation-container-full {
	font-size: 16px;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
}
div.wpforms-container-full .wpforms-confirmation-container-full p {
	background: #fff;
	color: #2e7d32; /* 333 */
	padding-bottom: 30px;
}
.formulaire-sur-bande .wpforms-form button[type="submit"] {
	padding: 14px 24px 24px !important;
}

/* Eviter les 180px d'espace au dessus du bouton Envoyer*/
.formulaire-sur-bande .wpforms-submit-container {
    line-height: normal !important;
}


/* ====================  PAGE CONTACT - FORMULAIRE =============  */
.formulaire-contact {
	background-color: #f5f5f2;
	border-radius: 24px;
	padding: 30px;
	max-width: 800px;
	margin: 0 auto;
}

.formulaire-contact button[type="submit"] {
	background-color: #6b6671 !important;
	color: #fff  !important;
}
.formulaire-contact div.wpforms-container-full .wpforms-form button[type="submit"]:hover {
	background-color: #5C5763 !important;
	color: #fff  !important;
}


/* ============= SOCIAL SHARE BOUTONS  ================== */
.social-share {
	margin-top: 25px;
}
a.share-ico.ico-facebook {
	background-color: #3b5998;
	color: #fff;
}
a.share-ico.ico-twitter {
	background-color: #00a9ed;
	color: #fff;
}
a.share-ico.ico-pinterest {
	background-color: #c8232c;
	color: #fff;
}
a.share-ico.ico-linkedin {
	background-color: #0e76a8;
	color: #fff;
}
a.share-ico {
	width: 50px;
	height: 25px;
	font-size: 1.5rem;
	line-height: 30px!important;
	text-align: center;
	margin-right: 6px;
	display: inline-block;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	text-decoration: none !important;
}

/* ============= STYLE DE BLOG EN MINIATURE  ==================*/
/* Modifier la taille des Images Mise en Avant dans un Article  */
.single .thumbnail img {
	width: 15%;
	display: flex;
	margin: 0 auto;
}
/* Modifier la taille des Images Mise en Avant en liste de blog */
.blog-entry.thumbnail-entry .thumbnail {
	width: 15%;
}
.blog-entry.thumbnail-entry .blog-entry-content {
	width: 85%;
}


/* ============= STYLE DE BLOG EN GRILLE MAÇONNERIE  ==================*/
/* Modifier la taille des Images Mise en Avant dans un Article  */
.blog-entry.post .thumbnail img {
	width: 50%;
 	display: flex;
	margin: 10px auto 0; 
}


/*  ====================================== RESPONSIVE DESIGN ============================================================ 
   ====================================================================================================================== */

/* --- TABLETTE --- */
@media only screen and (max-width: 1024px) {
	.parallax-header, .parallax-presentation, .parallax-contact  {
		background-attachment: scroll;
	}
	.bande-beige .wp-block-columns {
		flex-direction: column;
		gap: 32px;
		align-items: stretch;
	}
  /* Centrer le formulaire dans la colonne */
	.bande-beige .wp-block-column.formulaire-sur-bande {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.bande-beige .formulaire-sur-bande .wpforms-container {
		max-width: 80vw;
		margin: 0 auto;
	}
	.bande-beige h1.wp-block-heading {
		text-align: center;
		margin-bottom: 24px;
		padding: 0 16px;
		font-size: 2.5rem;
		line-height: 1.2;
	}
}


@media (max-width: 959px) {
	.oceanwp-mobile-menu-icon {
		border: none;
	}
	a.mobile-menu:focus,
	a.mobile-menu:active,
	a.mobile-menu:focus-visible,
	a.mobile-menu.opened:focus,
	a.mobile-menu.opened:active,
	a.mobile-menu.opened:focus-visible,
	a.oceanwp-mobile-menu-icon:focus,
	a.oceanwp-mobile-menu-icon:active,
	a.oceanwp-mobile-menu-icon:focus-visible {
		outline: none !important;
		box-shadow: none !important;
	}
}


@media only screen and (max-width: 767px) {
	/* ====  Centrer le menu sur mobile et améliorer son rendu === */
	.oceanwp-mobile-menu-icon {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 90vw;
		margin: 20px auto 0 auto;
		background: #fcfcfc;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.03);
		border: 1px solid #e0e0e0;
		color: #333;
		text-align: center;
	}
	.oceanwp-mobile-menu-icon a {
		font-size: 1.8rem;
		line-height: 54px;
	}

	.show-on-mobile {
		display: inline;
	}

	/* ============= STYLE DE BLOG EN MINIATURE  ==================*/
	.blog-entry.thumbnail-entry .thumbnail {
		width: 100%;
	}
	.blog-entry.thumbnail-entry .blog-entry-content {
		width: 100%;
	}
	.blog-entry.post .thumbnail img {
		width: 50%;
		display: flex;
			margin: 10px auto 0;  /* margin: 0 auto; */
	}
	.single .thumbnail img {
		width: 50%;
	}

	/* BANDE BEIGE RENDU TRANSPARENTE POUR ACCUEIL FORMULAIRE */
	.bande-beige {
		background: transparent !important;
		padding: 24px 0;
		width: 100%;
		margin-left: 0;
	}
	.bande-beige .wp-block-columns {
		gap: 24px;
		padding: 0 8px;
	}
	.bande-beige .formulaire-sur-bande .wpforms-container {
		max-width: 100%;
		width: 100%;
		background: #fff !important;
		box-shadow: none !important;
		border: none !important;
		border-radius: 0 !important;
		padding: 0 !important;
	}
	.bande-beige h1.wp-block-heading {
		font-size: 1.8rem;
		text-align: center;
		margin-bottom: 16px;
		padding: 0 12px;
		line-height: 1.2;
	}
}
