/*
Theme Name: Com' des frères
Theme URI: https://www.comdesfreres.fr
Author: Com' des frères
Author URI: https://www.comdesfreres.fr
Description: Personal theme.
Version: 1.0
Requires at least: 4.7
Requires PHP: 5.2.4
License: Com' des frères License
License URI: https://www.comdesfreres.fr
Text Domain: comdesfreres
*/

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* CSS Variables and Typography */
:root {
	--light: #fcfcfc;
	--dark: #3a3a3a;

	--primary-color-10: #ffd6e4;
	--primary-color-20: #feadc9;
	--primary-color-30: #fe85af;
	--primary-color-40: #fd5c94;
	--primary-color-50: #fd3379;
	--primary-color-60: #ca2961;
	--primary-color-70: #981f49;
	--primary-color-80: #651430;
	--primary-color-90: #330a18;

	--secondary-color-10: #d0d4e1;
	--secondary-color-20: #a1a9c2;
	--secondary-color-30: #717da4;
	--secondary-color-40: #425285;
	--secondary-color-50: #132767;
	--secondary-color-60: #0f1f52;
	--secondary-color-70: #0b173e;
	--secondary-color-80: #081029;
	--secondary-color-90: #081029;

	--tertial-color-10: #e3f7f6;
	--tertial-color-20: #c7f0ed;
	--tertial-color-30: #ace8e4;
	--tertial-color-40: #90e1db;
	--tertial-color-50: #74d9d2;
	--tertial-color-60: #5daea8;
	--tertial-color-70: #46827e;
	--tertial-color-80: #2e5754;
	--tertial-color-90: #2e5754;

	--neutral-color-10: #fff8f1;
	--neutral-color-20: #fbd8bb;
	--neutral-color-30: #f9c59a;
	--neutral-color-40: #f7b178;
	--neutral-color-50: #f59e56;
	--neutral-color-60: #c47e45;
	--neutral-color-70: #935f34;
	--neutral-color-80: #623f22;
	--neutral-color-90: #312011;

	--error-color-10: #f7cdcd;
	--error-color-20: #ef9b9b;
	--error-color-30: #e76868;
	--error-color-40: #df3636;
	--error-color-50: #d70404;
	--error-color-60: #ac0303;
	--error-color-70: #810202;
	--error-color-80: #560202;
	--error-color-90: #2b0101;

	--h1-desktop: 60px;
	--h2-desktop: 45px;
	--h3-desktop: 30px;
	--subtitle-desktop: 25px;
	--p-desktop: 18px;

	--h1-mobile: 50px;
	--h2-mobile: 40px;
	--h3-mobile: 28px;
	--subtitle-mobile: 20px;
	--p-mobile: 16px;

	--box-shadow-1: 0 4px 20px 3px rgba(0, 0, 0, 0.15);
	--box-shadow-2: 0 0 10px 10px rgba(0, 0, 0, 0.1);
	--border-radius: 0 0 20px 20px;

	--linear-turquoise-180: linear-gradient(180deg, var(--tertial-color-10, #e3f7f6) 0%, var(--light, #fcfcfc) 100%);
	--linear-orange-180: linear-gradient(180deg, var(--neutral-color-20, #e3f7f6) 0%, var(--light, #fcfcfc) 100%);
	--linear-orange-0: linear-gradient(0deg, var(--neutral-color-20, #e3f7f6) 0%, var(--light, #fcfcfc) 100%);
}
body {
	margin: 0 !important;
	padding: 0;
	min-height: 100vh;
	background: var(--light, #fcfcfc);
}

* {
	font-family: 'Titillium Web', sans-serif;
}

h1 {
	font-size: var(--h1-desktop);
	margin: 0;
}
h2 {
	font-size: var(--h2-desktop);
	margin: 0;
}
h3 {
	font-size: var(--h3-desktop);
	margin: 0;
}
.subtitle {
	font-size: var(--subtitle-desktop);
	margin: 0;
}
p {
	font-size: var(--p-desktop);
	margin: 0;
}

@media screen and (max-width: 768px) {
	h1 {
		font-size: var(--h1-mobile);
	}
	h2 {
		font-size: var(--h2-mobile);
	}
	h3 {
		font-size: var(--h3-mobile);
	}
	.subtitle {
		font-size: var(--subtitle-mobile);
	}
	p {
		font-size: var(--p-mobile);
	}
}

main,
section,
footer {
	position: relative;
	z-index: 0;
}
/*Navbar*/
.logo {
	max-width: 200px;
}
.logo img {
	width: 100%;
	max-width: 200px;
	height: auto;
}
.navbar {
	align-items: center;
	background: var(--light);
	box-shadow: var(--box-shadow-1);
	display: flex;
	flex-direction: row;
	font-family: sans-serif;
	padding: 10px 50px;
	border-radius: var(--border-radius);
	z-index: 9;
	/* position: static; */
}

.push-left {
	margin-left: auto;
}

.hamburger {
	background: transparent;
	border: none;
	cursor: pointer;
	display: none;
	outline: none;
	height: 30px;
	position: relative;
	width: 30px;
	z-index: 1000;
}

.hamburger-line {
	background: #272727;
	height: 3px;
	position: absolute;
	left: 0;
	transition: all 0.2s ease-out;
	width: 100%;
}
.hamburger:hover .hamburger-line {
	background: #777;
}
.hamburger-line-top {
	top: 3px;
}
.menu-active .hamburger-line-top {
	top: 50%;
	transform: rotate(45deg) translatey(-50%);
}
.hamburger-line-middle {
	top: 50%;
	transform: translatey(-50%);
}
.menu-active .hamburger-line-middle {
	left: 50%;
	opacity: 0;
	width: 0;
}
.hamburger-line-bottom {
	bottom: 3px;
}
.menu-active .hamburger-line-bottom {
	bottom: 50%;
	transform: rotate(-45deg) translatey(50%);
}
.nav-menu {
	background: var(--light);
	justify-content: end;
	display: flex;
	align-items: center;
	gap: 20px;
}
.nav-menu ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	text-decoration: none;
	transition: all 0.25s ease-in;
	gap: 10px;
}

.nav-menu .menu-item a {
	color: var(--dark);
	display: block;
	line-height: 30px;
	margin: 0px 10px;
	text-decoration: none;
	font-size: var(--p-desktop);
}
.nav-menu img {
	width: 45px;
	height: 45px;
}

.nav-menu .menu-item a:hover {
	color: var(--primary-color-70);
}

.sub-nav {
	border: 1px solid #ccc;
	display: none;
	position: absolute;
	background-color: #fff;
	padding: 5px 5px;
	list-style: none;
	width: 230px;
}

.nav__link:hover + .sub-nav {
	display: block;
}

.sub-nav:hover {
	display: block;
}

.menu li::after {
	content: '';
	display: block;
	width: 100%;
	height: 5px;
	border-radius: 100px;
	background: var(--primary-color-20);
	margin-bottom: 5px;
	transform-origin: right;
	transform: scaleX(0);
	transition: transform 0.3s ease-in-out;
}
.menu li:hover::after {
	transform-origin: left;
	transform: scaleX(1);
}
.menu li.current_page_item a {
	color: var(--primary-color-50);
}
.menu li.current_page_item::after {
	content: '';
	display: block;
	width: 100%;
	height: 5px;
	border-radius: 100px;
	background: var(--primary-color-50);
	margin-bottom: 5px;
	transform-origin: left;
	transform: scaleX(1);
}
.costum-navbar {
	position: fixed;
	top: 0;
	width: -webkit-fill-available;
}
.costum-navbar .logo img {
	width: 100px;
}
@media screen and (max-width: 768px) {
	.hamburger {
		display: inline-block;
	}
	.nav-menu {
		background: var(--light);
		flex-direction: column;
		justify-content: center;
		opacity: 0;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		transform: translatey(-100%);
		text-align: center;
		display: flex;
	}
	.nav-menu ul {
		flex-direction: column;
	}
	.menu li {
		width: fit-content;
		margin: auto;
	}
	body.menu-active{
		overflow: hidden;
	}
	.menu-active .nav-menu {
		transform: translatey(0%);
		opacity: 1;
		z-index: 999;
	}
	.nav-menu .menu-item a {
		font-size: 20px;
		margin: 8px;
	}
	.sub-nav {
		position: relative;
		width: 100%;
		display: none;
		background-color: rgba(0, 0, 0, 0.2);
		box-sizing: border-box;
	}
}
/*Button*/

.btn {
	display: inline-flex;
	height: 50px;
	min-width: 115px;
	min-height: 50px;
	padding: 10px 20px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 20px;
	text-decoration: none;
	width: fit-content;
	margin: auto;
	border-radius: 100px;
}
.btn-primary, .btn-outline-primary:hover {
	
	background: var(--primary-color-50, #fd3379);
	color: var(--light, #fcfcfc);
}

.btn-primary:hover, .btn-outline-primary {
	border: 2px solid var(--primary-color-50, #fd3379);
	background: var(--light, #fcfcfc);
	color: var(--primary-color-50, #fd3379);
}
.btn-primary:disabled {
	background: var(--primary-color-20, #feadc9);
	cursor: not-allowed;
	color: var(--light, #fcfcfc);
	border: none;
}

.btn-secondary, .btn-outline-secondary:hover {
	border-radius: 100px;
	background: var(--secondary-color-50, #132767);
	color: var(--light, #fcfcfc);
}
.btn-secondary:hover, .btn-outline-secondary {
	border: 2px solid var(--secondary-color-50, #132767);
	background: var(--light, #fcfcfc);
	color: var(--secondary-color-50, #132767);
}
.btn-secondary:disabled {
	background: var(--secondary-color-20, #a1a9c2);
	cursor: not-allowed;
	color: var(--light, #fcfcfc);
	border: none;
}

.btn-tertial, .btn-outline-tertial:hover {
	border-radius: 100px;
	background: var(--tertial-color-50, #74d9d2);
	color: var(--light, #fcfcfc);
}
.btn-tertial:hover, .btn-outline-tertial {
	border: 2px solid var(--tertial-color-50, #74d9d2);
	background: var(--dark, #3a3a3a);
	color: var(--light, #fcfcfc);
}
.btn-tertial:disabled {
	background: var(--tertial-color-20, #c7f0ed);
	cursor: not-allowed;
	color: var(--light, #fcfcfc);
	border: none;
}

.btn-neutral, .btn-outline-neutral:hover {
	border-radius: 100px;
	background: var(--neutral-color-50, #f59e56);
	color: var(--light, #fcfcfc);
}
.btn-neutral:hover, .btn-outline-neutral {
	border: 2px solid var(--neutral-color-50, #f59e56);
	background: var(--dark, #3a3a3a);
	color: var(--light, #fcfcfc);
}
.btn-neutral:disabled {
	background: var(--neutral-color-20, #fbd8bb);
	cursor: not-allowed;
	color: var(--light, #fcfcfc);
	border: none;
}
.btn-back {
	display: flex;
	width: 50px;
	height: 50px;
	padding: 10px 20px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 100px;
	border: 2px solid var(--primary-color-50, #fd3379);
}
.btn-back svg {
	fill: var(--primary-color-50, #fd3379);
}
.btn-back:hover {
	background: var(--primary-color-50, #fd3379);
}
.btn-back:hover svg {
	fill: var(--light, #fcfcfc);
}

/*Main Home*/
main.home {
	background: var(--linear-turquoise-180);
}
.home .page-header {
	max-width: 1020px;
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0 auto 50px auto;
	text-align: center;
	padding-top: 50px;
}
/*Pele-mele*/
.photo-collage {
	justify-content: center;
	align-items: center;
	display: flex;
	padding: 10px;
	max-width: 1500px;
	flex-wrap: wrap;
	position: relative;
	margin: auto;
}

.photo {
	box-shadow: var(--box-shadow-2);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	width: 30%;
	border-radius: 20px;
	position: relative;
}

.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 20px;
}
.magnet-1 {
	width: 120px;
	height: 120px;
	position: absolute;
	top: 67%;
	left: 67%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
}
.magnet-2 {
	width: 120px;
	height: 120px;
	position: absolute;
	top: 35%;
	left: 35%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
}
.magnet img {
	width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

@media (max-width: 600px) {
	.magnet-1,
	.magnet-2 {
		width: 80px;
		height: 80px;
	}
	.magnet-2 {
		left: 50%;
	}
	.photo {
		width: 45%;
	}

	.hidden {
		display: none;
	}
}

/*Engagements*/
.engagements {
	text-align: center;
	padding: 50px 0;
	background: var(--linear-orange-0);
}
.values-wrap {
	max-width: 1400px;
	margin: 50px auto;
}
.values {
	display: flex;
	gap: 40px;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 30px;
}
.value {
	display: grid;
	flex: 1 1 calc(33.333% - 40px);
	min-width: 250px;
	max-width: 470px;
	text-align: center;
	justify-content: center;
	margin: auto;
}
.value img {
	margin: 15px auto;
	width: 162px;
	height: 162px;
}
.value .subtitle {
	display: block;
	margin: 10px 0;
	font-weight: 700;
}

/*About*/
.about {
	padding: 50px 0;
	background: var(--light);
}
.about-illustration {
	max-width: 400px;
	height: 400px;
	width: 400px;
	margin: auto;
}
.about-wrap {
	max-width: 1400px;
	margin: auto;
	display: flex;
	gap: 100px;
	align-items: center;
	justify-content: space-between;
	padding: 25px;
}
.about-content {
	flex: 1;
	display:flex;
	flex-direction: column;
	gap: 25px;
}
.about-content .btn{
	margin: 0;
}

.about-illustration img {
	width: 400px;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 20px;
}

@media screen and (max-width: 848px) {
	.about-wrap {
		flex-wrap: wrap;
		flex-direction: column-reverse;
	}
	.about-illustration img{
		width: 320px;
		height: 320px;
	}
	.about-illustration{
		width: 320px;
		height: 320px;
	}
}

/*Etablissements carrousel*/
.etablissements{
	padding:50px 0;
	max-width: 1500px;
    margin: auto;
}
.etablissement-head{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.etablissements .swiper-wrapper{
    padding: 50px 0;
}
.etablissements .btn{
	margin: 0 0 0 auto;
}
.etablissement{
	display: flex;
	flex-direction: column;
	text-align: left;
	text-decoration: none;
	border-radius: 20px;
	box-shadow: var(--box-shadow-1);	
	background-color: var(--light);
	width: fit-content;
	max-width:400px;
	color: var(--dark);
	overflow: hidden
}

.etablissement:hover{
	border: solid var(--secondary-color-50) 4px;
	transition: ease-in-out 0.8ms;
	color: var(--secondary-color-50);
}
.etablissement .wpwax-lsu-item-inner{
    display: grid!important;
	align-items: flex-start!important;
    justify-content: space-between!important;
	border-radius: 20px;
}

.etablissement .etablissement-img{
	max-width: none!important;
 
	max-height: 288px;
}
.etablissement-bottom{
	position: relative;
    display: grid;
    margin-left: 20px;
    padding: 20px;
}
.etablissement-bottom .icone{
    position: absolute;
    bottom: 10px;
    right: -30px;
	width: 30px;
	height: 30px;
}

/*Footer*/
footer {
	width: -webkit-fill-available;
}
.footer-content {
	background: var(--secondary-color-50);
	color: var(--light);
	padding: 0;
	box-shadow: var(--box-shadow-1);
	border-radius: 20px 20px 0 0;
	width: -webkit-fill-available;
	display: flex;
	gap: 10px;
	justify-content: space-evenly;
	flex-wrap: wrap;
	align-items: flex-start;
}
.footer-logo {
	margin: auto 0;
}
.footer-links ul,
.footer-rs ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-rs img {
	width: 40px;
	height: 40px;
}
.footer-menu li a {
	color: var(--light);
	text-decoration: none;
	font-size: var(--p-desktop);
}
.footer-menu li a:hover {
	color: var(--primary-color-50);
}
footer h3 {
	font-size: var(--h3-desktop);
	margin-bottom: 10px;
	color: var(--light);
}
.footer-links,
.footer-rs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-rs-icons {
	display: flex;
	gap: 28px;
}
.copyright {
	width: 100%;
	margin-top: 20px;
	padding: 10px 0;
	background-color: var(--secondary-color-80);
	color: var(--light);
	text-align: center;
	font-size: var(--p-mobile);
}
.copyright a {
	color: var(--light);
}

@media screen and (max-width: 768px) {
	.footer-content {
		flex-direction: column;
		align-items: center;
		padding-top: 30px;
	}
	footer h3 {
		text-align: center;
		font-size: var(--h3-mobile);
	}
}
