/* ---------- Couleurs ---------- */

:root {
	--fakeWhite: #F5F5F5;
	--fakeBlack: #141414;
	--accentGradient: linear-gradient(90deg, #141414, #008389, #F5F5F5, #FFAA3A, #EB2124);
}

/* ---------- Fonts ---------- */

@font-face {
	font-family: 'Geist';
	src: url('/assets/fonts/Geist.ttf') format('truetype');
}

@font-face {
	font-family: 'Dirtyline';
	src: url('/assets/fonts/Dirtyline 36daysoftype 2022.otf') format('opentype');
}

/* ---------- CSS général ---------- */

/* Permet de supprimer les problèmes de blancs inutiles sur les côtés de l'interface */
html, body {
	margin: 0;
	padding: 0;
	overflow-x: clip;
	scroll-behavior: smooth;
}

body {
	background: var(--fakeWhite);
	display: flex;
	flex-direction: column;
}

h1 {
	font-family: 'Dirtyline';
	font-weight: normal;
	font-size: 2rem;
}

a {
	color: inherit;
	text-decoration: none;
}

a:visited {
	color: inherit;
}

/* ---------- Élements généraux ---------- */

.buttonPositive {
	font-family: "Geist";
	letter-spacing: -0.04em;
	padding: 0.5rem 0.9rem;
	color: var(--fakeBlack);
	background-color: var(--fakeWhite);
	margin-left: 0.5rem;
	transition: 0.3s;
}

.buttonPositive:hover {
	color: var(--fakeWhite);
	background-color: var(--fakeBlack);
}

.buttonNegative {
	font-family: "Geist";
	letter-spacing: -0.04em;
	padding: 0.5rem 0.9rem;
	color: var(--fakeWhite);
	background-color: var(--fakeBlack);
	margin-left: 0.5rem;
	transition: 0.3s;
}

.buttonNegative:hover {
	color: var(--fakeBlack);
	background-color: var(--fakeWhite);
	opacity: 0.5;
}

/* ---------- Menu ---------- */

header {
	display: flex;
	width: 100vw;
	height: 6rem;
	justify-content: space-between;
	align-items: center;
	margin-inline: auto;
	position: fixed;
	z-index: 100;
	transition: background-color 0.5s ease;
}

.headerTitle {
	font-family: Dirtyline;
	font-size: 1.5rem;
	margin: 0 2rem;
	text-box: trim-both cap alphabetic; /* Suppression du trim. /!\ Expérimental non supporté par Firefox */
}

.headerMenu {
	display: flex;
	align-items: center;
	margin: 2rem 1.5rem 2rem 0;
}

.menuButton {
	font-family: "Geist";
	letter-spacing: -0.04em;
	padding: 0.5rem 0.9rem;
	color: var(--fakeBlack);
	margin-left: 0.5rem;
	transition: 0.3s;
}

.menuButton:hover {
	color: var(--fakeBlack);
	background-color: rgba(14, 14, 14, 0.2);
}

/* ---------- Écran d'accueil ---------- */

.homeSection {
	height: 100vh;
	display: flex;
	align-items: center;
	background-position: bottom;
	background-size: calc(100vh - 10rem);
	background-repeat: no-repeat;
	background-color: rgba(0, 0, 0, 0.05);
	background-image: url("/assets/pictures/amarro_head.png");
}

.homeTitle {
	font-family: 'Dirtyline';
	font-size: 8rem;
	font-weight: 100;
	color: white;
	display: inline-block;
	transform: translateX(0);
	white-space: nowrap;
}

.homeTitleTrack {
	display: flex;
	margin-left: 2rem;
	gap: 2rem;
	mix-blend-mode: exclusion;
	width: max-content;
	animation: infiniteAmarroEvents 100s linear infinite;
}

@keyframes infiniteAmarroEvents {
	from {
		transform: translateX(0);
	}
  	to {
   		transform: translateX(-50%);
   	}
}

.homeInfos {
	height: 100vh;
	width: 100vw;
	position: absolute;
	display: flex;
	justify-content: space-between;
	align-items: end;
	color: var(--fakeBlack);
	font-family: 'Geist';
	font-size: 1.5rem;
}

.homeInfos > div {
	padding: 2rem;
	color: var(--fakeBlack);
	font-family: 'Dirtyline';
}

.homeLeftLink {
	color: var(--fakeBlack);
	display: flex;
	flex-direction: column;
	font-weight: normal;
	transition: 0.3s;
	width: fit-content;
}

.homeLeftLink:hover {
	transform: translateX(2rem);
	opacity: 0.5;
	transition: 0.3s;
}

.homeInfos > :nth-child(2) {
	text-align: right;
}

/* ---------- Première présentation ---------- */

.firstPresentation {
	padding: 8rem 18rem;
	display: flex;
	align-items: center;
	color: var(--fakeWhite);
	background-color: var(--fakeBlack);
	font-family: 'Geist';
	letter-spacing: -0.04em;
	font-weight: 500;
	font-size: 3rem;
	line-height: 100%;
}

.firstPresentationLateralBorder {
	border-left: 1rem solid; 
	border-image: linear-gradient(to bottom, #141414, #008389, #F5F5F5, #FFAA3A, #EB2124) 1;
	padding-left: 1.5rem;
	margin: 20px 0;
}

/* ---------- Section Ils Nous Font Confiance ---------- */

/*
.INFCSection {
	padding: 3rem;
	background-color: var(--fakeBlack);
}

.INFCLogos {
	display: flex;
	gap: 3rem;
}

.INFCLogos * {
	height: 1.5rem;
	transition: 0.5s;
}

.INFCLogos *:hover {
	opacity: 0.75;
}

.INFCContainer {
	display: flex;
	justify-content: center;
}
*/

/* ---------- Section Services ---------- */

.servicesSection {
	width: calc(100vw - 8rem);
	padding: 4rem 4rem 6rem 4rem;
	background: var(--fakeWhite);
}

.servicesSectionGrid {
	min-height: 50vh;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.serviceCard {
	/*Font*/
	font-family: 'Dirtyline';
	color: var(--fakeWhite);
	/*Inside Flex*/
	display: flex;
	align-items: end;
	justify-content: space-between;
	/*Background Parameters*/
	background-size: cover;
	background-repeat: no-repeat;
	/*Size*/
	height: calc(100% - 4rem);
	width: calc(100% - 4rem);
	/*Padding*/
	padding: 2rem;
	/*Transition*/
	transition: 0.3s;
	
	& h1 {
		font-family: "Dirtyline";
		font-weight: normal;
		font-size: 2rem;
	}
	
	& p {
		font-family: "Geist";
		letter-spacing: -0.04em;
		color: var(--fakeWhite);
		font-size: 1rem;
		line-height: 0.6;
		opacity: 0.5;
	}
}

.eventsCard {
	background-image:
		linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%),
		url('/assets/pictures/amarro_events_on_the_boat.jpeg');
}

.studioCard {
	background-position: center;
	background-image:
		linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%),
		url('/assets/pictures/porsche_911_gt3rs_991_black_vaison.jpeg');
}

.eventsCard:hover, .studioCard:hover {
	opacity: 0.8;
	transform: scale(0.98);
	cursor: pointer;
	transition: 0.3s;
}

.eventsCard:active, .studioCard:active {
	transform: scale(0.9);
}

.cardTitle {
	margin: 0;
}

/* ---------- Fenêtres modales services ---------- */

.modalContainer {
	background-color: var(--fakeWhite);
	color: var(--fakeBlack);
	width: 50vw;
	padding: 2rem;
}

/* ----- Fenêtre modale Events ----- */

.modalViewEvents {
	position: fixed;	
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
 	top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(14, 14, 14, 0.95);
    color: var(--fakeBlack);
    
    & .headLine {
    	display: flex;
     	justify-content: space-between;
    }
    
    & .closeEventsModalViewButton {
    	width: 1rem;
		height: 1rem;
		padding: 1rem;
		color: var(--fakeBlack);
		font-family: "Geist";
		font-size: 1rem;
		display: flex;
		justify-content: center;
		align-items: center;
		transition: 0.3s;
    }
    
    & .closeEventsModalViewButton:hover {
    	background: rgba(0, 0, 0, 0.1);
     	cursor: pointer;
    }
    
	& h1 {
		font-family: "Dirtyline";
		font-size: 2rem;
		font-weight: normal;
		line-height: 0;
	}
	
	& h2 {
		font-family: 'Geist';
		opacity: 0.5;
		font-size: 1rem;
		font-weight: normal;
		line-height: 0;
	}
	
	& p {
		font-family: "Geist";
		padding-top: 1rem;
		font-weight: normal;
	}
}

/* ----- Fenêtre modale Studio ----- */

.modalViewStudio {
	position: fixed;	
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
 	top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(14, 14, 14, 0.95);
    color: var(--fakeBlack);
    
    & .headLine {
    	display: flex;
     	justify-content: space-between;
    }
    
    & .closeStudioModalViewButton {
    	width: 1rem;
		height: 1rem;
		padding: 1rem;
		color: var(--fakeBlack);
		font-family: "Geist";
		font-size: 1rem;
		display: flex;
		justify-content: center;
		align-items: center;
		transition: 0.3s;
    }
    
    & .closeStudioModalViewButton:hover {
    	background: rgba(0, 0, 0, 0.1);
     	cursor: pointer;
    }
    
	& h1 {
		font-family: "Dirtyline";
		font-size: 2rem;
		font-weight: normal;
		line-height: 0;
	}
	
	& h2 {
		font-family: 'Geist';
		opacity: 0.5;
		font-size: 1rem;
		font-weight: normal;
		line-height: 0;
	}
	
	& p {
		font-family: "Geist";
		padding-top: 1rem;
		font-weight: normal;
	}
}

/* ---------- Articles ---------- */

.articlesSection {
	background: var(--fakeBlack);
	color: var(--fakeWhite);
	padding: 4rem;
}

.articlesSectionGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.articlesSectionGridElement {
	display: flex;
	flex-direction: column;
	justify-content: end;
	color: var(--fakeWhite);
	padding: 2rem;
	transition: 0.3s;
	
	& h2 {
		font-family: Geist;
		font-weight: normal;
		margin-bottom: 1rem;
		font-weight: 500;
	}
	
	& p {
		font-family: Geist;
		margin: 0;
		opacity: 0.5;
	}
}

.articlesSectionGridElement:hover {
	opacity: 0.8;
	transform: scale(0.98);
	cursor: pointer;
	transition: 0.3s;
}

.articlesSectionGridElement:active {
	transform: scale(0.9);
}

/* ---------- Footer ---------- */

footer {
	background: var(--fakeBlack);
	height: 30vh;
	width: calc(100wv - 2rem);
	padding: 2rem 0;
	color: var(--fakeWhite);
	font-family: "Geist";
	letter-spacing: -0.04em;
	display: flex;
	flex-direction: column;
	padding-bottom: 4rem;
}

footer h1 {
	font-family: 'Dirtyline';
	font-size: 1.5rem;
	font-weight: normal;
	margin-bottom: 0.5rem;
	letter-spacing: normal;
}

footer h2 {
	font-size: 1rem;
	font-weight: 600;
	margin: 1rem 0 0.5rem 0;
}

footer a {
	font-size: 1rem;
	color: var(--fakeWhite);
	transition: 0.3s;
	width: fit-content;
}

footer a:hover {
	opacity: 0.5;
}

.footerPlan {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	padding-inline: 2rem;
}

.footerPlanSection {
	display: flex;
	flex-direction: column;
}

.footerDivider {
	background: var(--accentGradient);
	height: 1rem;
	width: 100vw;
}

.footerCredits {
	font-family: 'Geist';
	font-size: 0.75rem;
	letter-spacing: -0.04em;
	margin-bottom: 1rem;
	font-weight: 200;
}

/* ==================== PAGE ARTICLES ==================== */

.articlesPage_title {
	text-align: center;
	font-size: 3rem;
}

.articlesPage_section {
	margin: 6rem 4rem;
}

.articlesPage_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.articlesPage_element {
	display: flex;
	flex-direction: column;
	justify-content: end;
	padding: 2rem;
	height: 20rem;
	background-position: center;
	background-size: cover;
	transition: 0.3s;
	
	& h2 {
		color: var(--fakeWhite);
		font-family: Geist;
		font-weight: normal;
		margin-bottom: 1rem;
		font-weight: 500;
	}
	
	& p {
		color: var(--fakeWhite);
		font-family: Geist;
		margin: 0;
		opacity: 0.5;
	}
}

.articlesPage_element:hover {
	opacity: 0.8;
	transform: scale(0.98);
	cursor: pointer;
	transition: 0.3s;
}

.articlesPage_element:active {
	transform: scale(0.9);
}

/* ==================== PAGE À PROPOS ==================== */

.aboutPage_Container {
	margin-top: 6rem;
	display: flex;
	flex-direction: column;
	font-family: Geist;
	letter-spacing: -0.04em;
	line-height: 1;
	width: 60vw;
	margin: 8rem auto 4rem auto;
}

.aboutPage_Container > div {
	padding: 1rem;
}

.aboutPage_principalSentence {
	font-size: 3rem;
	font-weight: 500;
	text-align: center;
}

.aboutPage_paragraph {
	font-size: 1.5rem;
	display: flex;
	align-items: end;
}

.aboutPage_contacts {
	text-align: right;
	
	& a {
		color: var(--fakeBlack);
	}
	
	& p {
		margin: 0;
	}
}

.aboutPage_legalMentions {
	grid-column: 3/5;
	grid-row: 3;
	
	& p {
		margin: 0;
	}
}

/* ==================== MENU HAMBURGER ==================== */

.hamburgerMenuButton {
	font-family: "Geist";
	letter-spacing: -0.04em;
	padding: 0.5rem 0.9rem;
	color: var(--fakeBlack);
	margin-left: 0.5rem;
	transition: 0.3s;
}

.hamburgerMenuButton:hover {
	color: var(--fakeBlack);
	background-color: rgba(14, 14, 14, 0.2);
}

.menuHamburgerButton, .menuHamburgerButonClose {
	height: 1.5rem;
	width: 1.5rem;
	padding: 0.5rem;
	transition: 0.3s;
	font-weight: 200;
}

.menuHamburgerButton:hover, .menuHamburgerButonClose:hover {
	color: var(--fakeBlack);
	background-color: rgba(14, 14, 14, 0.2);
	cursor: pointer;
}

.lateralMenu {
	position: fixed;
	height: calc(100vh - 2rem);
	width: calc(100vw - 2rem);
	padding: 1rem;
	background-color: var(--fakeWhite);
	z-index: 1000;
	transform: translateX(100%);
	transition: transform 0.5s ease;
}

.lateralMenuHead {
	display: flex;
	justify-content: end;
	padding: 1rem;
}

.lateralMenuBody {
	margin-top: 2rem;
	font-size: 2rem;
	display: flex;
	flex-direction: column;
	align-items: end;
}

/* ==================== MEDIA QUERIES ==================== */

@media (max-width: 640px) {
	.menuButton {
		display: none;
	}
}

@media (min-width: 641px) {
	.menuHamburgerButton {
		display: none;
	}
}

/* ---------- Adaptation de homeSection ---------- */

@media (max-width: 590px) {
	.homeInfos > div {
		font-size: 1.25rem;
	}	
}

@media (max-width: 520px) {
	.homeInfos > div {
		font-size: 1rem;
	}	
}

/* Diminution globale 1 */
@media (max-width: 700px) {
	.homeSection {
		height: 90vh;
		background-size: calc(90vh - 10rem);
	}
	
	.homeInfos {
		height: 90vh;
	}
}

/* Diminution globale 2 */
@media (max-width: 610px) {
	.homeSection {
		height: 80vh;
		background-size: calc(80vh - 10rem);
	}
	
	.homeInfos {
		height: 80vh;
	}
}

/* Diminution globale 3 */
@media (max-width: 530px) {
	.homeSection {
		height: 70vh;
		background-size: calc(70vh - 10rem);
	}
	
	.homeInfos {
		height: 70vh;
	}
}

/* ---------- Adaptation de firstPresentation ---------- */

@media (max-width: 1280px) {
	.firstPresentation {
		padding: 8rem 12rem;
	}
}

@media (max-width: 1240px) {
	.firstPresentation {
		padding: 8rem;
		font-size: 2.5rem;
	}
}

@media (max-width: 900px) {
	.firstPresentation {
		padding: 6rem;
	}
}

@media (max-width: 650px) {
	.firstPresentation {
		padding: 4rem;
		font-size: 2rem;
	}
}

@media (max-width: 450px) {
	.firstPresentation {
		padding: 3rem;
		font-size: 1.5rem;
	}
}

/* ---------- Adaptation de servicesSection ---------- */

@media (max-width: 1200px) {
	.servicesSectionGrid {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(2, 1fr);
	}
}

@media (max-width: 700px) {
	.servicesSection {
		width: calc(100vw - 4rem);
		padding: 2rem 2rem 4rem 2rem;
	}
}

/* ---------- Adaptation de articleSection et de la page Articles ---------- */

@media (max-width: 1130px) {
	.articlesSectionGrid, .articlesPage_grid {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(3, 1fr);
	}
	
	.articlesPage_element {
		height: 10rem;
	}
}

@media (max-width: 700px) {
	.articlesSection {
		width: calc(100vw - 4rem);
		padding: 2rem;
	}
	
	.articlesPage_section {
		margin: 4rem 2rem;
	}
}

/* ---------- Adaptation de la page à propos ---------- */

@media (max-width: 950px) {
	.aboutPage_Container {
		width: 90vw;
	}
}

@media (max-width: 1200px) {
	.aboutPage_principalSentence {
		font-size: 2rem;
	}	
}