﻿/********************************************
	* Domaine : carre-pleyel.fr
	*
	* Exploitant : AG Real Estate
	*
	* Rôle : Feuille de style contenus page 
	*
	* Auteur : Ultra-Fluide, copyright 2021
********************************************/

/**** entete  ********/
/************************/
:root{
	--decalage-entete: 40px;
	--padding-entete: 30px;
}
section#entete{
	margin-bottom:var(--decalage-entete);
}
section#entete div{
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	justify-content: space-between;
	padding-bottom:var(--padding-entete);
	margin-top: 0;
	margin-bottom: 0;
}
section#entete article{
	width:32%;
	padding-top:calc(var(--padding-entete) / 2);
}
section#entete article p{
	font-weight:600;
	margin:0;
}
section#entete article p:last-child{
	font-size:1.75rem;
	font-family:'Oswald', sans-serif;
	font-weight:400;
}
section#entete article h1{
	font-size:2.5rem;
	font-family:'Oswald', sans-serif;
	color:var(--titre);
	text-transform: uppercase;
	font-weight:500;
}
section#entete table{
	width:66%;
	position:relative;
	top:calc(var(--padding-entete) + var(--decalage-entete));
	border-collapse: collapse;
}
section#entete table:before{
	content:" ";
	width:0;
	height:0;
	display:block;
	position:absolute;
	bottom:0px;
	left:calc(0px - var(--decalage-entete));
	border:calc(var(--decalage-entete) / 2) solid;
	border-color:var(--sous-titre) var(--sous-titre) transparent transparent;
}
section#entete td:last-child {
	width:26%;
	padding-left:.7%;
	vertical-align:top;
}
section#entete td:first-child {
	background-color:var(--encart);
	padding :2%;
	color:white;
	font-weight:600;
	vertical-align:top;
}
section#entete td img{
	width:100%;
	display:block;
}
@media screen and (max-width: 980px) {
	table a p {
		font-size:1.05rem;
	}
	section#entete table td:last-child {
		display:none;
	}
	section#entete table td{
		height:200px;
	}
	section#entete table{
		width:60%;
	}
	section#entete article{
		width:39%;
	}
}
@media screen and (max-width: 800px) {
	section#entete table{
		width:53%;
	}
	section#entete article{
		width:46%;
	}
}
/**** Contenus standards  ********/
/********************************/
section  { /* pour éviter la fuson des marges avec les div enfants (nouveau contexte de formatage */
	padding-top: 1px;
	padding-bottom: 1px;
}
section > div {
	margin-top:0; 
	margin-bottom: 80px;
}
section.fond-trame + section > div, section.entete + section > div, section.fond-trame > div {
	margin-top:80px;
}
section > div > article a {
	text-decoration:underline;
	color: var(--sous-titre);
}
section > div > article a:hover {
	text-decoration:none;
}
.fond-trame{
	background-color:var(--fond-trame);
}
.fond-fonce{
	background-color:var(--sous-titre);
}
.fond-intermediaire{
	background-color:var(--titre);
}
section h2:before {
    content: " ";
    display: block;
    height: 10px;
    width: 85px;
    margin-bottom: 30px;
    background: var(--sous-titre);
}
section h2, section h3 {
	font-size:1.6rem;
	color:var(--titre);
	margin-bottom:30px;
}
section p, section ul li  {
	color:var(--sous-titre);
	list-style: inside;
}
section p, section ul  {
	margin-bottom:10px;
}
section p a {
	color:var(--sous-titre);
}
section.standard > div {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	justify-content: space-between;
}
section.standard > div > * {
	width:50%;
	margin-bottom:80px;
	position:relative;
}
section.standard > div > *:last-child,  section.standard > div > *:nth-last-child(2){
	margin-bottom:0;
}
section.standard article:nth-child(2n+1) {
	padding-right:8%;
}
section.standard article:nth-child(2n) {
	padding-left:8%;
}
section.standard.l60-40 > div > *:nth-child(2n) {
	width:40%;
}
section.standard.l60-40 > div > *:nth-child(2n+1) {
	width:60%;
}
section.standard.l40-60 > div > *:nth-child(2n) {
	width:60%;
}
section.standard.l40-60 > div > *:nth-child(2n+1) {
	width:40%;
}
/**** tableaux  ********/
/************************/
.table-standard table {
	width:80%;
	border-collapse : collapse;
	border-bottom:4px solid var(--titre);
	margin-bottom:5px;
}
.table-standard table td {
	text-align:right;
	padding:5px 0;
	color:var(--sous-titre);
}
.table-standard table tr:nth-of-type(2n+1) {
	background:white;
}
.table-standard table tr:first-child{
	background:var(--titre);
	color:white;
	font-weight:600;
}
.table-standard table tr:last-child, .table-standard table td:last-child, .table-standard table td:first-child{
	font-weight:700;
}
.table-standard table td:first-child{
	padding-left:10px;
	text-align:left;
}
.table-standard table td:last-child{
	padding-right:10px;
	padding-left:30px;
}
p.pied{
	padding-left:10px;
	font-size:0.95rem;
}
@media screen and (max-width: 980px) {
	.table-standard table {
		width:100%;
	}
}
@media screen and (max-width: 800px) {
	.table-standard table {
		font-size: 1.05rem;
	}
}
/**** Galeries  ********/
/***********************/
section > div > ul.galerie {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}
section > div > ul.galerie li {
	display:inline-block;
	padding:1%;
	list-style: none;
}
section > div > ul.galerie.taille6 li {
	width:16.668%;
}
section > div > ul.galerie.taille5 li {
    width: 20%;
	min-width:159px;
}
section > div > ul.galerie li img{
	width:100%;
	display:block;
}
section > div > ul.galerie li p {
    height: 100%;
    margin: 0;
}
div.fancybox-caption__body{
	font-size:1.2rem;
	font-family: 'Montserrat', sans-serif;
}
@media screen and (max-width: 805px) {
	section > div > ul.galerie.taille5 {
		padding:0 85px;
	}
}
@media screen and (max-width: 680px) {
	section > div > ul.galerie.taille5 {
		padding:0 40px;
	}
}
@media screen and (max-width: 630px) {
	section > div > ul.galerie.taille5 {
		padding:0 ;
	}
}
/**** Contenus standards  ********/
/********************************/
section.technique > div > div {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	justify-content: space-between;
}
section.technique > div > div > img {
	width:8%;
	position:relative;
}
section.technique > div > div > article {
	width:38.5%;
	padding-left:2%;
	margin-bottom:80px;
}
section.technique > div > div > article:nth-last-of-type(2), section.technique > div > div > article:nth-last-of-type(1) {
	margin-bottom:0;
}
section.technique > div > div  h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
section.technique > div h2 {
    margin-bottom: 70px;
}