/*
Theme Name: Eliaut
Author: RICHARD Nicolas
Author URI: https://eliaut.com/
Description: Theme principal fait main de Eliaut (Template parts (bloc pré construits, remplis avec ACF prêt à être utilisés))
Version: 1.0.0
*/

/* ==========================================================================
1. ACTIVITES
========================================================================== */
.block-activites {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;                    /* 40px */
}
.activites {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;                    /* 40px */
}
.activite {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;                   /* 20px */
    max-width: 480px;
}
.activite img {
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.acti-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;                      /* 20px */
    width: 50%;
    padding: 1rem 0;
}
@media screen and (max-width: 825px) {
    .activites {
        gap: 1.25rem;               /* 20px */
    }
    .activite {
        flex-direction: column;
        align-items: center;
        text-align: start;
        gap: 0;
        max-width: 380px;
    }
    .acti-content {
        padding: 1.25rem 1rem;
    }
    .activite img, 
    .acti-content {
        width: 100%;
    }
    .activite img {
        aspect-ratio: 4/3;
        object-fit: cover;
    }
}

/* ==========================================================================
2. CARROUSEL PARTENAIRES / BRANDS / REALISATIONS
========================================================================== */
.brand-carousel-section {
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.brand-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.brand-carousel-wrapper2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    position: relative;
    gap: 2.5rem;
}
.brand-carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
}
.brand-card {
    width: 384px;
    height: 241px;
    flex-shrink: 0;
}
.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-card a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.real-lightbox-link {
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.real-lightbox-link:hover {
    transform: scale(1.03);
}
.real-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(22, 15, 9, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px); 
}
.real-lightbox-modal.show {
    display: flex;
    opacity: 1;
}
.real-lightbox-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.real-lightbox-modal.show img {
    transform: scale(1);
}
.real-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 100000;
    transition: color 0.2s ease, transform 0.2s ease;
}
.real-lightbox-close:hover {
    color: #cccccc;
    transform: scale(1.1);
}

/* ==========================================================================
3. HERO HEADER COMMUN (INNER) (toutes pages sauf accueil)
========================================================================== */
.hero-inner {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-inner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 2;
    padding: 5rem;
}
.hero-inner-content h1 {
    color: var(--color-text2);
}

/* ==========================================================================
4. ICON + TEXTE
========================================================================== */
.block-icte {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
}
.icte-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;                      /* 20px */
    max-width: 345px;
}
.icte-texte{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}
.icte-texte p, .icte-texte h3 {
    text-align: center;
    text-wrap: balance;
}
.icte-texte a, .texte a{
    color: var(--color-accent);
}
.icte-texte a:hover, .texte a:hover{
    color: var(--color-accent-hover);
    transition: color 0.3s ease-in-out;
    text-decoration-color: transparent;
}
.icte-col h3 {
    max-width: 16.875rem;           /* 270px */
}
@media screen and (max-width: 1130px) {
    .block-icte {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.5rem;
    }
}
@media screen and (max-width: 825px) {
    .block-icte {
        gap: 2.5rem;                /* 20px */
    }
    .icte-col{
        gap: 1.5rem;
    }
    .icte-texte {
        gap: 0.625rem;
    }
}

/* ==========================================================================
5. BLOC IMAGE + TITRE + TEXTE
========================================================================== */
.imagetexte {
	display: flex;
	flex-direction: row;
	width: 100%;
}
.imagetexte.is-reversed {
    flex-direction: row-reverse;
}
.imagetexte img {
	width: 50%;
	aspect-ratio: 16/9;
	object-fit: cover;
}
.imagetexte .block-texte {
	display: flex;
	flex-direction: column;
	justify-content: 	flex-start;
	align-items: flex-start;
	width: 50%;
	max-width: none;
	margin: 0;
	padding: 5rem 2.5rem; 				/* 80px 40px */
	background-color: var(--color-bg2);
	color: var(--color-text2);
	gap: 20px;
}
.imagetexte h3 {
	color: var(--color-text2);
	margin: 0;
	text-align: left;
}
.block-texte {
	text-align: left;
	max-width: 100%;
}
@media screen and (max-width: 825px){
	.imagetexte {
		flex-direction: column;
	}
    .imagetexte.is-reversed {
        flex-direction: column; 
    }
	.imagetexte img {
		width: 100%;
		height:auto;
	}
	.imagetexte .block-texte {
		width: 100%;
		padding: 2.5rem 1.875rem; 	    /* 40px 30px */
	}
}

/* ==========================================================================
6. MAPS
========================================================================== */
.section-maps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}
.section-maps iframe {
    flex: 1;
    width: 100%;
    height: 600px;
    border: 0;
}
.maps-content {
    display: flex;
    flex: 0 0 500px;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}
.m-nav-col {
	display: flex;
	flex-direction: column;
    gap: 20px;
}
.m-nav-col ul {
    list-style: none;
}
.m-nav-col a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease-in-out;
}
.m-nav-col a:hover {
    text-decoration-color: transparent;
}
.m-list {
    display: flex;
    flex-direction: column;
	gap: 10px;
}
.m-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.m-list span:first-child{
    min-width: 100px;
}
.m-list span:last-child{
	text-align: end;
	min-width: 250px;
}
@media only screen and (max-width: 920px) {
    .section-maps {
        flex-direction: column;
        gap: 30px;
    }
    .section-maps iframe {
        flex: auto;
        width: 100%;
        height: 400px;
    }
    .maps-content {
        flex: none;
        width: 100%;
        padding: 0;
    }
}

/* ==========================================================================
7. REALISATIONS (COURT)
========================================================================== */
.section-real {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2.5rem;
    padding: 2.5rem 0;
}
.real-img-block {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.real-col {
    display: flex;
    flex-direction: row;
    width: 100%;
}
.real-col img {
    flex: 1;
    width: 20%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
@media only screen and (max-width: 825px) {
    .real-col {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .real-col::-webkit-scrollbar {
        display: none;
    }
    .real-col img {
        flex: 0 0 90%;
        max-width: 90%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        scroll-snap-align: center;
    }
}

/* ==========================================================================
8. FLECHE DE SCROLL
========================================================================== */
.arrow-container {
	width: 100%;
	padding: 5rem 1.875rem 2.5rem 1.875rem; /* 80px 30px 40px 30px */
}
.scroll-down-container {
	display: flex;
	align-items: center;
	justify-content: center;
}
.scroll-down-arrow img {
	width: 2.25rem; 			        /* 36px */
	aspect-ratio: 1/1;
	display: inline-block;
	animation: bounce 2s infinite;
}
@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-0.625rem);
	}
	60% {
		transform: translateY(0.3125rem);
	}
}

/* ==========================================================================
9. BLOC NOS SOLUTIONS
========================================================================== */
.solutions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2.5rem;                /* 40px */
}
.solutions-main-title {
    text-align: center;
    width: 100%;
}
.solutions-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;               /* 20px */
}
.solution-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
.solution-img-col {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: flex-start;
}
.solution-img-col img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.solution-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;               /* 20px */
    margin: 1.5rem 2.5rem;      /* 40px */
    margin-right: 0;
}
.solution-marques h3, .solution-marques h3 a {
    color: var(--color-main);
}
.solution-marques,
.solution-texte {
    width: 100%;
}
@media only screen and (max-width: 1130px) {
    .solution-content-col {
        margin: 1.25rem;         /* 20px */
        margin-right: 0;
    }
    .solution-img-col img {
        aspect-ratio: 16 / 11;
    }
}
@media only screen and (max-width: 825px) {
    .solutions-section {
        gap: 1.875rem;          /* 30px */
    }
    .solutions-list {
        gap: 2rem;              /* 32px */
    }
    .solution-card {
        flex-direction: column;
    }
    .solution-img-col {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .solution-img-col img {
        aspect-ratio: 16 / 9;
    }
    .solution-content-col {
        margin: 1.25rem;            /* 20px */
    }
}

/* ==========================================================================
10. BLOC TITRE (+ IMAGE) + TEXTE
========================================================================== */
.block-texte {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: auto;
	gap: 2.5rem; 		            /* 40px */
}
.block-texte .titre {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	text-align: center;
	max-width: 81.25rem; 	        /* 1300px */
}
.block-texte img {
	height: 2.5rem;
}
.block-texte .soustitre {
	max-width: 75rem; 	            /* 1200px */
	text-align: center;
}
@media screen and (max-width: 825px) {
	.block-texte .titre {
		text-align: center;
	}
	.block-texte img {
		height: 2.375rem;
	}
}
.block-texte .texte {
	max-width: 830px;
}
.texte {
	text-wrap: balance;
}