/*
Theme Name: bbxdesert
Theme URI: http://wordpress.bbxdesign.com
Description: Thème Désert WordPress
Version: 2.0
Author: bbx
Author URI: http://bbxdesign.com
Tags: empty, full-width, simple, white

  bbxdesert
  http://wordpress.bbxdesign.com

*/

@font-face {
    font-family: 'Barlow';
    src:  url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Regular.woff2') format('woff2'),
         url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Regular.woff') format('woff'),
         url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Regular.ttf') format('truetype');
    font-weight: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Barlow';
    src:  url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Light.woff2') format('woff2'),
         url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Light.woff') format('woff'),
         url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Light.ttf') format('truetype');
    font-weight: lighter;
    font-display: fallback;
}

@font-face {
    font-family: 'Barlow';
    src:  url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Bold.woff2') format('woff2'),
         url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Bold.woff') format('woff'),
         url('/wp-content/themes/version2theme/fonts/BarlowSemiCondensed-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: fallback;
}

/* ===GÉNÉRAL=== */
:root {
    --bleu: #004655;
    --rouge: #e40613;
    --vert: #6e8c59;
    --blanc: #fff;
    --noir: #333;
	
	--fbleu: brightness(0) saturate(0) invert(19%) sepia(62%)hue-rotate(147deg) brightness(98%) contrast(101%) saturate(831%);
	--frouge: brightness(0) saturate(0) invert(11%) sepia(99%) hue-rotate(354deg) brightness(90%) contrast(99%) saturate(7486%);
	--fvert: brightness(0) saturate(0) invert(54%) sepia(10%) hue-rotate(52deg) brightness(93%) contrast(88%) saturate(1333%);
    --max: 1040px; scroll-behavior: smooth; --ease: all 0.3s ease;
}

* { font-family: 'Barlow'; font-variant-ligatures: no-common-ligatures; }
body { overflow: hidden; }
.post-content { max-width: var(--max); margin: auto; padding: 0 20px; }
:target { scroll-margin-top: 0; }

a { text-decoration: none !important; transition: var(--ease); color: inherit; }
.wp-block-image a { display: block; overflow: hidden; }
.wp-block-image a img { transition: var(--ease); }
.wp-block-image a:hover img { transform: scale(1.2); }

p, .post-content li { font-size: 18px; font-weight: lighter; color: var(--noir); margin-bottom: 20px; }
h2 { font-size: 30px; font-weight: bold; color: var(--bleu); line-height: 1; margin-bottom: 20px; }
.post-content h3 { font-size: 20px; color: var(--vert); }
h2 strong, h3 strong { color: var(--rouge); }
.home h2 strong { font-size: 40px; }
.has-background h2 strong { color: white; }

.post-content ol, .post-content ul { margin-left: 20px; }
.post-content ul { list-style-type: disc; }
.post-content ::marker { font-weight: bold; color: var(--rouge); }

.site-main { margin-top: 130px; }
.post-content .has-background { width: 100vw; margin: 0 calc(50% - 50vw) 70px; position: relative; padding: 70px 0; }
.post-content .has-background > .wp-block-group__inner-container > .wp-block-image img { position: absolute; width: 100%; height: 100% !important; object-fit: cover; left: 0; top: 0; z-index: -1; }
.has-background .wp-block-group__inner-container { max-width: var(--max); padding: 0 20px; margin: 0 auto; }
.post-content > .wp-block-columns, .post-content > .wp-block-group { margin-bottom: 70px; }
.post-content > .has-background:last-child { margin-bottom: 10px; }
.post-content > .wp-block-columns > .wp-block-column { position: relative; align-self: auto;  }
.post-content > .wp-block-columns > .wp-block-column .wp-block-image { position: absolute; height: 100%; object-fit: cover; border-radius: 20px; }
.post-content > .wp-block-columns > .wp-block-column > .wp-block-image img { height: 100%; object-fit: cover; }

.has-blue-background-color { background-color: var(--bleu); }
.has-green-background-color { background-color: var(--vert); }
.has-red-background-color { background-color: var(--rouge); }


/* Boutons */
.site-main .wp-block-button__link, #footer .wp-block-button__link { background-color: transparent; color: var(--rouge); text-transform: uppercase; position: relative; padding: 0; }
.site-main .wp-block-button__link:hover, #footer .wp-block-button__link:hover { color: var(--bleu); }
.site-main .wp-block-button__link::after, #footer .wp-block-button__link::after { content:""; position: absolute; right: 0; background-image: url('/wp-content/uploads/2025/04/fleche.svg'); display: block; width: 12px; height: 12px; background-position: center; background-size: contain; background-repeat: no-repeat; bottom: 4px; right: -20px; transition: var(--ease); }
.site-main .wp-block-button__link:hover::after { filter: var(--fbleu); }


/* Header */
.site-header { background: white; position: fixed; width: 100vw; z-index: 10; box-shadow: 0 0 5px #00000050; }
.site-header .flex-header { display: flex; max-width: 1240px; margin: auto; padding: 0 20px; justify-content: space-between; }
.site-header .contact { background-color: var(--bleu); }
.site-header .contact section { max-width: 1200px; margin: auto; }
.site-header .contact .wp-block-buttons { gap: 0; }
.site-header .contact .wp-block-button__link { font-size: 14px; border-radius: 0; padding: 5px 15px 8px 38px; padding-left: 38px; position: relative; color: white; }
.site-header .contact .wp-block-button:nth-child(1) .wp-block-button__link { background-color: var(--vert); }
.site-header .contact .wp-block-button:nth-child(2) .wp-block-button__link { background-color: var(--rouge); }
.site-header .contact .wp-block-button__link::before { content: ""; display: block; width: 20px; height: 20px; position: absolute; left: -100%; background-position: center; background-repeat: no-repeat; background-size: contain; left: 10px; }
.site-header .contact .wp-block-button:nth-child(1) .wp-block-button__link::before { background-image: url('/wp-content/uploads/2025/04/mail.svg'); }
.site-header .contact .wp-block-button:nth-child(2) .wp-block-button__link::before { background-image: url('/wp-content/uploads/2025/04/tel.svg'); }
.site-header .custom-logo { height: 80px; display: block; margin: auto; }
.site-header .custom-logo-link { display: flex; }


/* Menu */
#menu-menu-principal { display: flex; justify-content: flex-end; gap: 30px; align-items: center; height: 100px; }
#menu-menu-principal .menu-item a { text-transform: uppercase; font-weight: lighter; font-size: 16px; transition: var(--ease); color: var(--bleu); display: flex; align-items: center; width: max-content; padding: 10px 0; }
#menu-menu-principal li.menu-item { position: relative; }
#menu-menu-principal .menu-item a:hover { color: var(--rouge); }
#menu-menu-principal > li.current_page_item > a, #menu-menu-principal > li.current-page-ancestor > a { position: relative; color: var(--rouge) !important; }
/* #menu-menu-principal > li.current_page_item > a::after, #menu-menu-principal > li.current-page-ancestor > a::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 100%; height: 5px; background-color: var(--jaune); border-radius: 10px; } */
#menu-menu-principal > li.menu-item:last-child a { font-weight: bold; color: var(--rouge); position: relative; padding-right: 22px; }
#menu-menu-principal > li.menu-item:last-child a:hover { color: var(--bleu); }
#menu-menu-principal > li.menu-item:last-child a::after { content:""; position: absolute; right: 0; background-image: url('/wp-content/uploads/2025/04/fleche.svg'); display: block; width: 12px; height: 12px; background-position: center; background-size: contain; background-repeat: no-repeat; }
#menu-menu-principal > li.menu-item:last-child a:hover::after { filter: var(--fbleu); }


/* Sub-menu */
#menu-menu-principal .sub-menu { display: none; background-color: white; position: absolute; transition: var(--ease); padding: 15px 17px 5px; margin-top: 0; width: max-content; top: 40px; left: -17px; box-shadow: rgba(0,0,0,0.3) 0 2px 5px; }
#menu-menu-principal .sub-menu li.menu-item { padding: 0 0 15px; }
#menu-menu-principal .sub-menu li a, #menu-menu-principal .sub-menu li a strong { color: var(--bleu); text-transform: initial; font-weight: normal; font-size: 16px; height: initial; padding: 0; }
#menu-menu-principal li.menu-item:hover > .sub-menu { display: block; opacity: 1; animation: normal 0.3s submenu; }
@keyframes submenu {
    from { opacity: 0; display: none; }
    to { opacity: 1; display: block; }
}


/* Burger */
.burger-menu { position: absolute; right: 30px; bottom: 0; top: 20px; margin: auto; height: fit-content; }
.bar { transition:0.2s; cursor:pointer; }
.bar-1, .bar-2, .bar-3 { width:5em; display: block; width: 27px; border-top: 3px solid var(--bleu); margin-top:6px; transition:0.2s; border-radius: 10px; }
.inverted .bar span { border-color: var(--noir); }
.change .bar-1 { -webkit-transform: rotate(-45deg) translate(-10px, 5px); transform: rotate(-45deg) translate(-4px, 7px); }
.change .bar-2 { opacity:0; }
.change .bar-3 { -webkit-transform: rotate(45deg) translate(-10px, 5px); transform: rotate(45deg) translate(-6px, -9px); }
.menu-mobile, .burger-menu { display: none; }


/* Menu Mobile */
.menu-mobile { position: absolute; z-index: 12; top: 130px; left: 0; padding: 20px; width: 100%; background-color: white; }
.menu-mobile .menu { display: flex; flex-wrap: wrap; gap: 20px; }
.menu-mobile .menu-item { width: 100%; }
.menu-mobile .menu-item a { text-transform: uppercase; font-weight: 900; transition: var(--ease); color: var(--bleu); font-weight: normal; }
.menu-mobile .menu-item a:hover { color: var(--rouge); }
.menu-mobile > ul > .menu-item:last-child a { color: var(--rouge); font-weight: bold; position: relative; width: fit-content; }
.menu-mobile > ul > .menu-item:last-child a:hover { color: var(--bleu); }
.menu-mobile > ul > .menu-item:last-child a::after { content:""; position: absolute; right: -18px; top: 2px; bottom: 0; margin: auto; background-image: url('/wp-content/uploads/2025/04/fleche.svg'); display: block; width: 12px; height: 12px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.menu-mobile > ul > .menu-item:last-child a:hover::after { filter: var(--fbleu); }
.menu-mobile .sub-menu { padding: 0 10px; margin: 5px 0 0; position: relative; }
.menu-mobile .sub-menu::before { content: ""; height: 100%; width: 3px; background-color: var(--bleu); display: block; position: absolute; left: 0; top: 0; border-radius: 5px; }
.menu-mobile .sub-menu .menu-item a, .menu-mobile .sub-menu .menu-item a strong { font-weight: normal; text-transform: inherit; }
.menu-mobile .phone::before, .menu-mobile  .linkedin { filter: brightness(0.3) grayscale(1); }


@media screen and (max-width: 1000px) {
    #menu-menu-principal.menu { display: none; }
    .burger-menu { display: block; }
    .custom-logo { width: 100px; }
    .flex-header { padding: 10px; height: 100px; }
}


/* ACCUEIL */
.post-content .landing { min-height: 500px; background-color: transparent; padding: 0; }
.landing .wp-block-group__inner-container { display: flex; flex-direction: column; justify-content: flex-end; height: 500px; }
.landing img { position: absolute; width: 100%; height: 100% !important; object-fit: cover; left: 0; top: 0; z-index: -1; }
.landing h1 { text-transform: uppercase; color: white; font-size: 50px; line-height: 1.1; margin: 40px 0; padding-bottom: 20px; position: relative; bottom: 0; text-shadow: 0 0 5px #00000090; }
.landing h1 strong { font-size: 80px; line-height: 1; }
.landing h1::after { position: absolute; content: ""; display: block; width: 40px; height: 1px; background-color: var(--rouge); }

.services { width: 100vw; margin: 0 calc(50% - 50vw) 70px; }
.services .wp-block-group__inner-container { max-width: 100%; padding: 0 20px; }
.services .wp-block-columns { gap: 20px; }
.services .wp-block-column .wp-block-image:first-child img { height: 300px !important; object-fit: cover; }
.services h3 { position: relative; width: fit-content; margin: 10px auto; padding-right: 20px; }
.services h3 a { text-transform: uppercase; color: var(--bleu); font-size: 20px; position: relative; }
.services h3 a:hover { color: var(--rouge); }
.services h3::after { content:""; position: absolute; background-image: url('/wp-content/uploads/2025/04/fleche.svg'); display: block; width: 12px; height: 12px; background-position: center; background-size: contain; background-repeat: no-repeat; bottom: 4px; right: 0; transition: var(--ease); }
.services .wp-block-column .wp-block-image:last-child { margin: auto; height: 60px; width: 90px; }
.services .wp-block-column .wp-block-image:last-child img { width: 100%; height: 100%; object-fit: contain; }

.module-instagram { margin-bottom: 0 !important; }
.module-instagram .wp-block-buttons { margin-bottom: 30px; }
.module-instagram .swiper-container { max-width: 1000px !important; margin: auto !important; }
.module-instagram .swiper-button-next, .module-instagram .swiper-button-prev { color: white !important; }
.module-instagram .swiper-pagination-bullet-active { background: var(--vert) !important; }


/* PAGES */
.has-transparent-background-color h1 { font-size: 60px; color: white; text-transform: uppercase; }
.rank-math-breadcrumb p { color: white; }
.rank-math-breadcrumb p a:hover { color: var(--rouge); }


/* Formulaires */
.wpcf7 .flex { margin-bottom: 20px; }
.wpcf7 .flex p { display: flex; gap: 20px; margin-bottom: 10px; justify-content: space-between; }
.wpcf7 .flex p label { width: 48%; }
.wpcf7 input, .wpcf7 textarea { background-color: white; padding: 10px; width: 100%; color: var(--bleu); font-family: 'Barlow'; border: 1px solid var(--vert); border-radius: 2px; }
.wpcf7 textarea { resize: vertical; height: 150px }
.wpcf7 ::placeholder { color: var(--bleu); }
.wpcf7 p { margin: 0; margin-bottom: 20px; color: white; }
.wpcf7-form { margin-bottom: -20px; }
.wpcf7 p a { text-decoration: underline !important; }
.wpcf7 p a:hover { color: var(--rouge); }
.wpcf7 .acceptation { display: flex; margin-bottom: 20px; }
.wpcf7 .acceptation > p { margin-left: -20px; margin-top: -7px; }
.wpcf7 .acceptation .text p { display: inline-block; font-size: 12px; margin-left: 5px; color: var(--bleu); }
.wpcf7 .wpcf7-submit { display: block; margin-left: auto; background-color: var(--bleu); color: white; font-weight: bold; text-transform: uppercase; width: fit-content; margin-left: 0; margin-right: auto; padding: 10px 30px; transition: var(--ease); }
.wpcf7 .wpcf7-submit:hover { background-color: var(--rouge); }
.wpcf7 .wpcf7-response-output { margin: -20px 0 20px !important; }

#footer .wpcf7 .wpcf7-not-valid-tip { color: var(--bleu); }
#footer .wpcf7 input, #footer .wpcf7 textarea { broder: none; }
#footer .wpcf7 .acceptation .text p { color: white; }
#footer .wpcf7 .wpcf7-response-output { color: white; }


#cmplz-document { max-width: 1200px !important; margin-bottom: 80px; }
.grecaptcha-badge { z-index: 5; }


/* FOOTER */
.site-footer { background-color: var(--vert); }
#footer { max-width: 100%; margin: 0 auto; padding: 40px 40px 0; display: flex; justify-content: space-between; }
#footer > div { width: 32%; }
#footer p { color: white; }
#footer p:last-child { margin-bottom: 0; }
#footer h3  { color: white; font-size: 30px; margin-bottom: 20px; }

#footer .logo img { filter: saturate(0) invert(1) brightness(10); width: 100%; transform: scale(1) !important; display: block; margin: 0 auto 20px; max-width: 200px; }
#footer .logo a { overflow: inherit; }
#footer .wp-block-social-links .wp-block-social-link.wp-social-link { background-color: transparent; border: 1px solid white; transition: var(--ease); margin-bottom: 20px; }
#footer .wp-block-social-links .wp-block-social-link.wp-social-link:hover { border: 1px solid var(--rouge); color: var(--rouge); }

.footer-1 .wp-block-columns .wp-block-column:first-child { flex-basis: 65%; }
.footer-1 .wp-block-columns .wp-block-column:last-child { display: flex; flex-direction: column; justify-content: flex-end; }
#footer a:hover { color: var(--rouge); }
#footer .wp-block-button__link { color: white; }
#footer .wp-block-button__link:hover { color: var(--rouge); }
#footer .mail, #footer .tel { position: relative; padding-left: 28px; }
#footer .mail a::before, #footer .tel a::before { content: ""; display: block; width: 20px; height: 20px; position: absolute; left: -100%; background-position: center; background-repeat: no-repeat; background-size: contain; left: 0; transition: var(--ease); }
#footer .mail a::before { background-image: url('/wp-content/uploads/2025/04/mail.svg'); }
#footer .tel a::before { background-image: url('/wp-content/uploads/2025/04/tel.svg'); }
#footer .mail a:hover::before, #footer .tel a:hover::before { filter: var(--frouge); }

.site-footer .site-info { padding: 10px 20px; }
.site-footer .site-info p { margin: 0; color: white; }
.site-footer .site-info p a:hover { color: var(--rouge); }


@media screen and (max-width: 1240px) {
	.contact { padding: 0 30px; }
	.site-header .flex-header { padding: 0 40px 0 20px; }
}

@media screen and (max-width: 768px) {
	.landing h1, .has-transparent-background-color h1 { font-size: 35px; }
	.landing h1 strong { font-size: 60px; }
	h2 strong { font-size: 30px; }
	.post-content > .wp-block-columns, .post-content > .wp-block-group { margin-bottom: 40px; }
	.post-content > .wp-block-columns > .wp-block-column .wp-block-image { position: relative; aspect-ratio: 16 / 9; }
	.services h3 a { font-size: 18px; }
	.services .wp-block-group__inner-container .wp-block-columns .wp-block-column { flex-basis: 40% !important; }
	#footer { padding: 20px 20px 0; flex-wrap: wrap; }
	#footer > div { width: 100%; margin-bottom: 20px; }
	#footer .footer-1 { max-width: 500px; margin: 0 auto 20px; }
	#footer .footer-1 .wp-block-columns { flex-wrap: nowrap !important; }
}

@media screen and (max-width: 500px) {
	#footer .footer-1 { max-width: 250px; }
	#footer .footer-1 .wp-block-columns { flex-wrap: wrap !important; }
}

@media screen and (max-width: 289px) {
	.burger-menu { top: 50px; }
	.menu-mobile { top: 160px; }
}









