/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* --- GLOBAL --- */

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

.scroll-top {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
/* header */
ul.elementor-nav-menu--dropdown a, ul.elementor-nav-menu--dropdown a:focus, ul.elementor-nav-menu--dropdown a:hover {
	border-inline-start: 0px solid transparent !important;
}

#stickyheaders{
transition : transform 0.34s ease;
}
.headerup{
transform: translateY(-110px); /*adjust this value to the height of your header*/
}

/* --- HOME PAGE --- */
/* Swiper slide */
.swiper-pagination {
	bottom: 20px !important;
}
.swiper-pagination-bullet {
	border-radius: 0px !important;
}

.img-slider .swiper-slide-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.img-slider .swiper-slide-inner {
	max-width: 1140px;
}

/* Mouse scrolling */
.accueil_scroll .elementor-widget-container {
		margin: auto;
    display: flex;
    justify-content: flex-end;
    max-width: 1140px;
}

.accueil_scroll_border {
	   margin-top: -165px;
    border-radius: 50px;
    height: 50px;
    width: 30px;
    border: 3px solid #fff;
}

.accueil_scroll_mouse {
    margin: 0 auto;
    border-radius: 50px;
    height: 10px;
    width: 10px;
    background-color: #fff;
    animation: scrollmouse 3000ms infinite;
}

@keyframes scrollmouse {
    0% {
        background-color: rgba(255, 255, 255, 0);
        transform: translateY(100%);
    }
    10% {
        background-color: rgba(255, 255, 255);
    }
    50% {
        transform: rotateY(120%);
    }
    100% {
        transform: translateY(250%);
        background-color: rgba(255, 255, 255, 0);
    } 
}

.navire-home .elementor-widget-container {
	overflow: hidden;
}

.navire-home img {
	transition: 300ms ease-in-out;
	object-fit: cover;
}

/* --- ENTREPRISE PAGE --- */
/* Rotation helice */
.elementor-element-dea0440::before {
    transition: transform 400ms ease !important;
}
.elementor-element-dea0440:hover::before {
    transform: rotate(90deg) !important;
}

/* Progress Tracker */
.tracker-wrapper {
	overflow: hidden;
}
.elementor-scrolling-tracker.elementor-scrolling-tracker-horizontal {
width: 250vh;
}

/* --- NAVIRES PAGE --- */
/* S&F - Recherche */
.searchandfilter {
	background-color: #fff;
	position: relative;
	z-index: 1;
	padding: 20px;
	border: solid 2px #edeef1;
	box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

.searchandfilter ul {
	display: flex;
	justify-content: space-around;
  padding-left: 0;
	flex-wrap: wrap;
}

.searchandfilter h4 {
	font-size: 25px;
	margin-bottom: 20px;
	color: #061834;
}

.searchandfilter ul>li>ul:not(.children) {
	display: flex;
	align-items: center;
	gap: 20px;
}

.searchandfilter ul>li>ul:not(.children) li {
	display: flex;
	align-items: center;
}

.sf-field-search input, .sf-input-range-number {
	border-color: #eceff1; 
	color: #061835;
}

.searchandfilter input[type="submit"] {
	border-color: #eceff1;
	color: #fff;
	background-color: #061835;
}

/* SF - Results */
.card-navire a {
	color: #061835;
	text-transform: uppercase;
} 

.cards-container, .navires-relation-list .elementor-widget-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.card-navire {
	overflow: hidden;
	border: solid 2px #eceff1;
}

.card-navire .card-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-navire:hover .card-info img {
	transform: rotate(90deg);
	transition: 300ms ease-in-out;
}

.card-navire .card-thumbnail {
	height: 200px;
	overflow: hidden;
}

.card-navire .card-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	 max-width: 500px;
   max-height: 200px;
	transition: 300ms ease-in-out;
}

.card-navire:hover .card-thumbnail img, .navire-home:hover img {
	scale: 110%;
	height: 200px;
}

.card-navire .text {
	padding: 20px;
}

.card-navire .text p:nth-child(1) {
	font-size: 30px;
	font-weight: 700;
	color: #061835;
}
.card-navire .highlight-number {
	color: #eb1a23;
}

.card-navire .text p:nth-child(2) {
	font-size: 15px;
	font-weight: 300;
	color: #061835;
}

.card-info img {
	height: 25px;
	width: 25px;
	margin-top: 40px;
	margin-right: 30px;
}

/* --- DETAIL NAVIRE --- */
/* Argument cote droit */
.navire-arguments {
	display: flex;
  gap: 15px;
  align-items: flex-start;
}

.navire-arguments p, .text-argument {
	color: #FFF;
}

.navire-arguments img {
		width: 18px;
    height: 18px;
    margin-top: 4px;
}

/* Autonomie */
.navire-autonomie .elementor-progress-text {
	  text-align: end;
    margin-right: 20px;
}


/* --- ARTICLE --- */
/* Affichage */
.img-actu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 106%;
  height: 105%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  transition: opacity 0.5s ease-in-out;
}

.img-actu:hover::before {
  opacity: 0;
}

/* Suivant / Precedent */
.elementor-post-navigation {
	flex-direction: row-reverse;
}

.elementor-post-navigation__link a {
	flex-direction: row-reverse;
}

.elementor-post-navigation__link__next {
	text-align: start !important;
}
.elementor-post-navigation__link__prev {
	text-align: end !important;
}

.post-navigation__arrow-prev, .post-navigation__arrow-next {
	transform: rotate(180deg);
}

/* --- ANIMATIONS --- */
/* --- BTN SLIDE --- */
/* Remplissage */
.btn-slide,
#btn-slide-form {
  position: relative;
  overflow: hidden;
}

.btn-slide::before,
#btn-slide-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 400ms ease-out;
  transform: translateX(-100%);
  z-index: 1;
}

.btn-slide:hover::before,
#btn-slide-form:hover::before {
  transform: translateX(0);
}

.btn-slide a,
#btn-slide-form .elementor-button-content-wrapper {
  position: relative;
  z-index: 2;
}

/* Rotation icône */
.btn-slide-grey a svg,
.btn-slide-white a svg {
    transform: rotate(30deg);
    scale: 99%;
    transition: 400ms ease-out;
}
.btn-slide-grey:hover a svg,
.btn-slide-white:hover a svg {
    transform: rotate(145deg);
}

/* BTN RED */
.btn-slide-red:hover a {color: #fff !important}

.btn-slide-red::before {
  background-color: #eb1a24;
}

.btn-slide-red a svg path {
  fill: #061835;
}
.btn-slide-red a:hover svg path {
  fill: #fff;
}

/* BTN WHITE */
.btn-slide-white:hover a {color: #061835 !important}

.btn-slide-white::before {
  background-color: #fff;
}

.btn-download a svg {
	transform: rotate(0deg) !important;
}

.btn-slide-white a svg path {
  fill: #fff;
  transition: 400ms ease-out;
}
.btn-slide-white a:hover svg path {
  fill: #061835;
}

/* BTN GREY */
.btn-slide-grey:hover a {color: #fff !important}

.btn-slide-grey::before {
  background-color: #697386;
}

.btn-slide-grey a svg path {
  fill: #697386;
	transition: 400ms ease-out
}
.btn-slide-grey a:hover svg path {
  fill: #fff;
}

/* BTN BLUE */
.btn-slide-blue:hover a {color: #fff !important}

.btn-slide-blue::before {
  background-color: #061835;
}

.btn-slide-blue a svg path {
  fill: #061835;
}
.btn-slide-blue a:hover svg path {
  fill: #fff;
}

/* BTN FORMULAIRES */
#btn-slide-form::before {
  background-color: #eb1a24;
}

#btn-slide-form svg path {
  fill: #697386;
  transition: 400ms ease-out;
}
#btn-slide-form:hover svg path {
  fill: #fff;
}

/* BTN HEADER */
.btn-header:hover a {color: #fff !important}

.btn-header::before {
  background-color: #000;
}


/* LINK SLIDE */
.link-slide p {
	padding-bottom: 3px;
}

.link-slide p span,
.link-slide span a,
.link-slide a span,
.link-slide a {
    position: relative;
    display: inline-block;
}

.link-slide p span::after,
.link-slide span a::after,
.link-slide nav a::after,
.link-slide a > span:not(.sub-arrow)::after {
    content: '';
    position: absolute;
    height: 2px;
    left: 0;
    bottom: 0;
    width: 0;
    background: #EB1A24 !important;
    transition: width .2s;
}

.link-slide p span:hover::after,
.link-slide span a:hover::after,
.link-slide nav a:hover::after,
.link-slide a > span:not(.sub-arrow):hover::after {
    width: 100%;
}


/* -- RESPONSIVE -- */
@media (max-width: 768px) {
	.accueil_scroll_border {
		margin-top: -80px;
	}
  .cards-container, .navires-relation-list .elementor-widget-container {
    grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
	.search-filter-results .cards-container {
		grid-template-columns: repeat(1, 1fr);
	}
	.accueil_scroll_border {
		margin-top: 0px;
	}
}