/**
 * Le 460 - Custom Styles
 *
 * Styles personnalisés pour le site Le 460
 * Respecte la charte graphique : Poppins, Montserrat, palette beige/noir/anthracite
 */

/* ========================================
   POLICES (FONTS)
   ======================================== */

/* Poppins Regular */
@font-face {
	font-family: "Poppins";
	src: url("../css/fonts/Poppins-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Poppins Italic */
@font-face {
	font-family: "Poppins";
	src: url("../css/fonts/Poppins-Italic.ttf") format("truetype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* Poppins ExtraBold */
@font-face {
	font-family: "Poppins";
	src: url("../css/fonts/Poppins-ExtraBold.ttf") format("truetype");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* Montserrat Regular */
@font-face {
	font-family: "Montserrat";
	src: url("../css/fonts/Montserrat-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Montserrat Bold */
@font-face {
	font-family: "Montserrat";
	src: url("../css/fonts/Montserrat-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Montserrat ExtraBold */
@font-face {
	font-family: "Montserrat";
	src: url("../css/fonts/Montserrat-ExtraBold.ttf") format("truetype");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
	/* Couleurs principales selon la charte */
	--color-primary-black: #111111;
	--color-anthracite: #3d3d3d;
	--color-beige-light: #f5f1ed;
	--color-beige: #e8dfd6;
	--color-white: #ffffff;
	--color-grey-text: #4a4a4a;

	/* Polices */
	--font-primary: "Poppins", sans-serif;
	--font-secondary: "Montserrat", sans-serif;

	/* Espacements */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 3rem;
	--spacing-xl: 4rem;
}

/* ========================================
   TYPOGRAPHIE GLOBALE
   ======================================== */

body {
	font-family: var(--font-primary);
	color: var(--color-grey-text);
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */

/* Pour Chrome, Safari et Edge */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--color-beige-light);
}

::-webkit-scrollbar-thumb {
	background: crimson;
	border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
	background: #b8112a;
}

/* Pour Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: crimson var(--color-beige-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.grax_tm_title_holder h1,
.grax_tm_title_holder h2 {
	font-family: var(--font-secondary);
	font-weight: 800;
	color: var(--color-primary-black);
}

/* Titres avec span coloré */
.grax_tm_title_holder h2 span {
	color: var(--color-anthracite);
}

/* ========================================
   BOUTONS / CTA
   ======================================== */

.grax_tm_button a,
.grax_tm_talk .button a,
.grax_tm_button button,
.grax_tm_talk .button button {
	font-family: var(--font-primary);
	font-weight: 600;
	background-color: var(--color-primary-black);
	color: var(--color-white);
	border-radius: 5px;
	padding: 15px 35px;
	transition: all 0.3s ease;
}

.grax_tm_button a:hover,
.grax_tm_talk .button a:hover,
.grax_tm_button button,
.grax_tm_talk .button button {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.2);
}

.grax_tm_topbar .menu ul li.lang-selector a.active,
.grax_tm_mobile_menu .dropdown ul li.lang-selector a.active {
	text-decoration: underline;
}

/* ========================================
   UTILITAIRES
   ======================================== */

.text-center {
	text-align: center;
}

.mb-sm {
	margin-bottom: var(--spacing-sm);
}
.mb-md {
	margin-bottom: var(--spacing-md);
}
.mb-lg {
	margin-bottom: var(--spacing-lg);
}

.mt-sm {
	margin-top: var(--spacing-sm);
}
.mt-md {
	margin-top: var(--spacing-md);
}
.mt-lg {
	margin-top: var(--spacing-lg);
}

/* Hero buttons overlay */
.hero-buttons-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	z-index: 5;
	pointer-events: none;
	text-align: center;
	opacity: 0;
	animation: showHideShow 30s ease 1.5s infinite;
}

@keyframes showHideShow {
	0%, 16.67% {
		/* 0-5s - Invisible (logo visible) */
		opacity: 0;
		transform: translate(-50%, -40%);
	}
	17% {
		/* ~5.1s - Début apparition */
		opacity: 0;
		transform: translate(-50%, -40%);
	}
	20% {
		/* ~6s - Complètement visible */
		opacity: 1;
		transform: translate(-50%, -50%);
	}
	82% {
		/* ~24.6s - Encore visible */
		opacity: 1;
		transform: translate(-50%, -50%);
	}
	86%, 100% {
		/* ~25.8-30s - Complètement disparu */
		opacity: 0;
		transform: translate(-50%, -40%);
	}
}

.hero-buttons-overlay .hero-title {
	font-family: var(--font-secondary);
	font-size: 48px;
	font-weight: 700;
	color: white;
	margin-bottom: 60px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	letter-spacing: 1px;
}

.hero-buttons-overlay .hero-buttons {
	pointer-events: auto;
}

/* Hero buttons container */
.hero-buttons {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 3rem;
	margin-top: 0;
	flex-wrap: wrap;
}

.hero-buttons .grax_tm_button {
	width: auto !important;
	float: none !important;
}

@media (max-width: 768px) {
	.hero-buttons-overlay .hero-title {
		font-size: 24px;
		margin-bottom: 20px;
	}
}

.hero-buttons .grax_tm_button a{
	background-color: crimson;
	color: white;
	font-size: 22px;
	font-weight: 700;
	padding: 28px 50px;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	min-width: 280px;
	text-align: center;
	display: inline-block;
}

/* Premier bouton - se secoue tous les 8 secondes */
#btn-work {
	animation: shake 8s linear 8s infinite;
}

/* Deuxième bouton - se secoue tous les 8 secondes, décalé de 4s */
#btn-event {
	animation: shake 8s linear 12s infinite;
}

@keyframes shake {
	0%, 3%, 100% {
		transform: translateX(0);
	}
	0.5% {
		transform: translateX(-8px);
	}
	1% {
		transform: translateX(8px);
	}
	1.5% {
		transform: translateX(-8px);
	}
	2% {
		transform: translateX(8px);
	}
	2.5% {
		transform: translateX(0);
	}
}

.hero-buttons .grax_tm_button a:hover, .grax_tm_button button:hover {
	background-color: white !important;
	color: var(--color-primary-black) !important;
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	animation: none;
}

/* Intro text */
.intro-text {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 3rem;
}

.intro-text p {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--color-grey-text);
}

/* ========================================
   CONTACT FORM
   ======================================== */

/* Masquer les messages de succès et d'erreur par défaut */
.grax_tm_contact .returnmessage,
.grax_tm_contact .empty_notice {
	display: none;
}

/* Afficher quand actif */
.grax_tm_contact .returnmessage.active,
.grax_tm_contact .empty_notice.active {
	display: block;
}

/* ========================================
   WORKSPACE MODAL
   ======================================== */

/* Bandeau crimson en haut des modales workspace */
.grax_tm_modalbox_news .box_inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	background-color: crimson;
	border-radius: 5px 5px 0 0;
	z-index: 1;
}

/* Galerie d'images dans le modal */
.workspace-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 30px;
}

.workspace-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	cursor: pointer;
}

.workspace-gallery img:hover {
	transform: scale(1.05);
}

/* Styling du contenu du modal */
.grax_tm_modalbox_news .description h3, .grax_tm_modalbox_news .description h4{
	font-size: 18px;
	font-weight: 600;
	color: var(--color-primary-black);
	margin: 25px 0 15px 0;
	font-family: var(--font-secondary);
}

.workspace-capacity {
	font-size: 15px;
	color: var(--color-anthracite);
	font-weight: 500;
	margin-bottom: 20px;
	font-style: italic;
}

.workspace-intro {
	line-height: 1.8;
	margin-bottom: 20px;
	color: var(--color-grey-text);
}

.workspace-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.workspace-features li {
	padding: 8px 0 8px 30px;
	position: relative;
	line-height: 1.6;
	color: var(--color-grey-text);
}

.workspace-features li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--color-primary-black);
	font-weight: 700;
	font-size: 18px;
}

/* Sections de workspace (pour séparer plusieurs niveaux dans une même carte) */
.workspace-section {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid var(--color-beige);
}

.workspace-section:first-of-type {
	margin-top: 20px;
	border-top: none;
	padding-top: 0;
}

.workspace-section h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary-black);
	margin-bottom: 20px;
	font-family: var(--font-secondary);
}

/* Galerie avec scroll horizontal pour plus de 3 images */
.workspace-gallery.has-scroll {
	grid-template-columns: none;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 18px;
	padding: 20px;
}

.workspace-gallery.has-scroll img {
	flex: 0 0 calc(33.333% - 10px);
	scroll-snap-align: start;
	min-width: 250px;
	/* border-radius: 5px; */
}

.workspace-gallery.has-scroll::-webkit-scrollbar {
	height: 8px;
}

.workspace-gallery.has-scroll::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.workspace-gallery.has-scroll::-webkit-scrollbar-thumb {
	background: var(--color-anthracite);
	border-radius: 10px;
}

.workspace-gallery.has-scroll::-webkit-scrollbar-thumb:hover {
	background: var(--color-primary-black);
}

/* Responsive galerie */
@media (max-width: 768px) {
	.workspace-gallery {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.workspace-gallery img {
		height: 250px;
		/* pointer-events: none; */
		/* cursor: default; */
	}
}

/* ========================================
   LIGHTBOX GALLERY
   ======================================== */

.lightbox-backdrop {
	display: none;
	position: fixed;
	z-index: 16;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.lightbox-backdrop.active {
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox {
	position: relative;
	max-width: 60%;
	max-height: 60%;
}

.lightbox-content {
	position: relative;
}

.lightbox-content img {
	max-width: 60vw;
	max-height: 60vh;
	display: block;
}

.lightbox-prev,
.lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
	color: white;
	cursor: pointer;
	padding: 20px;
	text-decoration: none;
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-counter {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 14px;
	background: rgba(0, 0, 0, 0.5);
	padding: 5px 15px;
	border-radius: 3px;
}

/* ========================================
   WORKSPACES - HOME PAGE
   ======================================== */

#workspaces .text h2 {
	font-weight: 600;
	color: #fff;
}

#workspaces .text h2 span {
	position: relative;
}

#workspaces .text h2 span:before {
	position: absolute;
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 100px;
	background-color: #fff;
	bottom: 8px;
	left: 100%;
	opacity: 1;
	animation: myAnim 0.9s infinite;
	-moz-animation: myAnim 0.9s infinite;
	-webkit-animation: myAnim 0.9s infinite;
}

#workspaces .grax_tm_news {
	background-color: #f9f9f9;
	padding: 102px 20px 105px 20px;
}

#workspaces .container {
	max-width: 90%;
	padding: 0 40px;
}

/* Liste des workspaces - 4 éléments sur une ligne */
#workspaces .news_list ul {
	margin: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 25px;
	padding: 0;
}

#workspaces .news_list ul li,
#events .news_list ul li {
	margin: 0;
	width: calc(25% - 18.75px);
	padding: 0;
	flex-shrink: 1;
}

#workspaces .news_list ul li .list_inner {
	background: white;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
}

#workspaces .news_list ul li .list_inner:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Image workspace */
#workspaces .news_list ul li .image {
	height: 220px;
	border-radius: 0;
}

#workspaces .news_list ul li .image .main {
	border-radius: 0;
	transition: transform 0.4s ease;
}

#workspaces .news_list ul li .list_inner:hover .image .main {
	transform: scale(1.05);
}

/* Détails workspace */
#workspaces .news_list ul li .details {
	padding: 25px 20px 20px 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

#workspaces .news_list ul li .details .title {
	margin-bottom: 12px;
	flex-grow: 0;
}

#workspaces .news_list ul li .details .title a {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: crimson;
	font-family: var(--font-secondary);
}

#workspaces .news_list ul li .details .date {
	font-size: 13px;
	color: var(--color-grey-text);
	margin-bottom: 0;
	display: block;
	line-height: 1.5;
}

#workspaces .news_list ul li .description {
	display: none;
}

/* ========================================
   EVENTS - HOME PAGE (MIROIR DE WORKSPACES)
   ======================================== */

/* Container des events - fond blanc (miroir de workspaces) */
#events .grax_tm_news {
	background-color: #ffffff !important;
	background-image: none !important;
	padding: 102px 20px 105px 20px;
}

#events .container {
	max-width: 90%;
	padding: 0 40px;
}

/* Titre "Évènements" avec style de talk - aligné à droite */
#events .text {
	text-align: right;
}

#events .text h2 {
	font-weight: 600;
	color: crimson;
}

#events .text h2 span {
	margin-right: 5px;
	position: relative;
}

#events .text h2 span:before {
	position: absolute;
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 100px;
	background-color: crimson;
	bottom: 8px;
	left: 100%;
	opacity: 1;
	animation: myAnim 0.9s infinite;
	-moz-animation: myAnim 0.9s infinite;
	-webkit-animation: myAnim 0.9s infinite;
}

/* Liste des events - 4 éléments sur une ligne */
#events .news_list ul {
	margin: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 25px;
	padding: 0;
}

#events .news_list ul li {
	margin: 0;
	width: calc(25% - 18.75px);
	list-style: none;
	flex-shrink: 0;
}

/* Cards events avec fond crimson + pattern (miroir de workspaces) */
#events .news_list ul li .list_inner {
	background-color: crimson;
	background-image: url("../img/patterns/lined-paper.png");
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

#events .news_list ul li .list_inner:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

/* Image de la card */
#events .news_list ul li .image {
	height: 250px;
	overflow: hidden;
}

#events .news_list ul li .image .main {
	height: 100%;
	transition: all 0.3s ease;
}

#events .news_list ul li .list_inner:hover .image .main {
	transform: scale(1.05);
}

/* Détails de la card - texte blanc sur fond crimson */
#events .news_list ul li .details {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#events .news_list ul li .details .title {
	margin: 0;
}

#events .news_list ul li .details .title a {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	font-family: var(--font-secondary);
}

#events .news_list ul li .details .date {
	color: rgba(255, 255, 255, 0.712);
	font-size: 13px;
	line-height: 1.5;
}

#events .news_list ul li .description {
	display: none;
}

/* ========================================
   MODAL - STYLES COMMUNS
   ======================================== */

/* Espacement uniforme pour toutes les modales */
#workspace-modal .description_wrap,
#events-modal .description_wrap,
#legal-modal .description_wrap {
	padding: 40px 50px 50px 50px !important;
}

/* Style titre avec séparateur pour toutes les modales */
.grax_tm_modalbox_news .description h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--color-primary-black);
	margin-bottom: 30px;
	margin-top: 40px;
	font-family: var(--font-secondary);
	padding-bottom: 15px;
	border-bottom: 2px solid var(--color-beige-light);
}

.grax_tm_modalbox_news .details .title {
	font-size: 28px;
	font-weight: 700;
	color: var(--color-primary-black);
	margin-bottom: 10px;
	font-family: var(--font-secondary);
}

/* Séparateur après le bloc details (titre + date) */
.grax_tm_modalbox_news .details {
	padding-bottom: 15px;
	border-bottom: 2px solid var(--color-beige-light);
	margin-bottom: 30px;
}

#legal-modal .description section {
	margin-bottom: 30px;
}

#legal-modal .description section:last-child {
	margin-bottom: 0;
}

#legal-modal .description h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary-black);
	margin-bottom: 15px;
	font-family: var(--font-secondary);
}

#legal-modal .description p {
	margin-bottom: 10px;
	line-height: 1.6;
	font-size: 15px;
	color: var(--color-grey-text);
}

#legal-modal .description a, #workspace-modal .description a {
	color: crimson;
	text-decoration: underline;
	transition: all 0.3s ease;
}

#legal-modal .description a:hover, #workspace-modal .description a:hover {
	color: #b8112a;
}

@media (max-width: 1200px) {
	.grax_tm_modalbox_news .close {
		background: rgba(0, 0, 0, 0.7);
		border-radius: 50%;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 999999;
	}

	.grax_tm_modalbox_news .close a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}

	.grax_tm_modalbox_news .close svg {
		width: 20px !important;
		height: 20px !important;
		fill: #fff !important;
	}

	.grax_tm_modalbox_news .close svg path {
		fill: #fff !important;
	}
	#workspaces .news_list ul,
	#events .news_list ul {
		flex-wrap: wrap;
		justify-content: center;
	}

	#workspaces .news_list ul li,
	#events .news_list ul li {
		width: calc(50% - 15px);
		min-width: 300px;
	}
}

@media (max-width: 1040px) {
	/* Le menu mobile doit passer au-dessus mais ne pas bloquer le hero */
	.grax_tm_mobile_menu {
		position: fixed !important;
		z-index: 100 !important;
		top: 0 !important;
		background: white !important;
	}

	/* Les modals et lightbox doivent passer au-dessus du menu mobile */
	.grax_tm_modalbox_news {
		z-index: 200 !important;
	}

	.lightbox-backdrop {
		z-index: 200 !important;
	}

	/* Adapter le titre et les boutons */
	.hero-buttons-overlay .hero-title {
		font-size: 28px !important;
		margin-bottom: 30px !important;
	}

	.hero-buttons {
		gap: 1.5rem !important;
		flex-direction: column !important;
		align-items: center !important;
	}

	.hero-buttons .grax_tm_button {
		width: 100% !important;
		max-width: 300px !important;
	}

	.hero-buttons .grax_tm_button a, .grax_tm_button button {
		font-size: 16px !important;
		padding: 18px 30px !important;
		min-width: auto !important;
		width: 100% !important;
	}
}

@media (max-width: 900px) {
	h1 {
		font-size: 32px !important;
	}

	.grax_tm_about {
		padding-top: 80px !important;
		margin-bottom: 80px !important;
	}

	.hero-buttons-overlay .hero-title {
		font-size: 22px !important;
		margin-bottom: 20px !important;
	}

	.hero-buttons .grax_tm_button a, .grax_tm_button button {
		font-size: 14px !important;
		padding: 14px 24px !important;
	}
}

@media (max-width: 750px) {
	h1 {
		font-size: 28px !important;
	}

	.grax_tm_about {
		padding-top: 60px !important;
		margin-bottom: 60px !important;
	}

	/* Masquer l'overlay complètement */
	.hero-buttons-overlay {
		display: none !important;
	}

	/* La vidéo prend tout l'écran */
	#home {
		height: 100vh !important;
	}

	#video-container {
		height: 100% !important;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 24px !important;
	}

	.grax_tm_about {
		padding-top: 40px !important;
		margin-bottom: 40px !important;
	}
}

@media (max-width: 768px) {
	#workspaces .news_list ul li,
	#events .news_list ul li {
		width: 100%;
		min-width: 100%;
	}

	#workspaces .news_list ul li .image,
	#events .news_list ul li .image {
		height: 200px;
	}
	#legal-modal .description h2 {
		font-size: 18px;
	}

	#legal-modal .description p {
		font-size: 14px;
	}
	.grax_tm_contact .left {
		display: none;
	}

	.grax_tm_contact .right {
		width: 100%;
		padding-left: 0;
	}

	.grax_tm_contact .contact_inner {
		padding-top: 40px;
	}
}

/* ========================================
   CONTACT FORM - RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
	.grax_tm_contact .contact_inner {
		gap: 40px !important;
	}
	.grax_tm_contact .contact_inner > div:first-child {
		width: 35% !important;
	}
	.grax_tm_contact .contact_inner > div:last-child {
		width: 65% !important;
	}
}

@media (max-width: 768px) {
	.grax_tm_contact .contact_inner {
		flex-direction: column !important;
		gap: 40px !important;
	}
	.grax_tm_contact .contact_inner > div:first-child,
	.grax_tm_contact .contact_inner > div:last-child {
		width: 100% !important;
	}
	.grax_tm_contact .contact_inner > div:first-child {
		order: 2;
	}
	.grax_tm_contact .contact_inner > div:last-child {
		order: 1;
	}
	.grax_tm_contact .contact_inner > div:first-child > div {
		position: relative !important;
		top: auto !important;
	}
	.grax_tm_contact .contact_inner > div:first-child iframe {
		height: 300px !important;
	}
}

@media (max-width: 1200px) {
	/* Radio button accompagnement - passer en colonne sur tablette et mobile */
	.grax_tm_contact .fields .first ul li > div[style*="display: flex"] {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 12px !important;
		min-height: auto !important;
		padding: 10px 0 !important;
	}

	.grax_tm_contact .fields .first ul li > div[style*="display: flex"] > label {
		white-space: normal !important;
	}

	.grax_tm_contact .fields .first ul li > div[style*="display: flex"] > div:last-child {
		margin-left: 0 !important;
	}
}

@media (max-width: 480px) {
	.grax_tm_contact .contact_inner {
		gap: 30px !important;
	}
	.grax_tm_contact .contact_inner > div:first-child iframe {
		height: 250px !important;
	}

	/* Radio button - texte plus petit sur très petit écran */
	.grax_tm_contact .fields .first ul li > div[style*="display: flex"] label {
		font-size: 12px !important;
		white-space: normal !important;
	}
}
/* ========================================
   PARTNERS CAROUSEL
   ======================================== */

.partners-section {
	background-color: #f9f9f9;
	padding: 80px 0;
}
.partners-container {
	padding-top: 60px;
	max-width: 1400px;
}

.partners-title {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	color: var(--color-anthracite);
	margin-bottom: 50px;
	font-family: var(--font-secondary);
}

.partners-carousel {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.partners-carousel::before,
.partners-carousel::after {
	content: "";
	position: absolute;
	top: 0;
	width: 100px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.partners-carousel::before {
	left: 0;
	background: linear-gradient(to right, #f9f9f9, transparent);
}

.partners-carousel::after {
	right: 0;
	background: linear-gradient(to left, #f9f9f9, transparent);
}

.partners-track {
	display: flex;
	gap: 60px;
	animation: scroll 40s linear infinite;
	width: max-content;
}

.partners-track:hover {
	animation-play-state: paused;
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.partner-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 120px;
	padding: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
	transform: scale(1.05); /* Slight scale-up effect on hover */
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
	max-width: 160px;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0.5;
	transition: all 0.3s ease;
}

.partner-logo:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

@media (max-width: 768px) {
	.partners-section {
		padding: 60px 0;
	}

	.partners-title {
		font-size: 24px;
		margin-bottom: 40px;
	}

	.partners-track {
		gap: 40px;
	}

	.partner-logo {
		min-width: 180px;
		height: 100px;
		padding: 15px;
	}

	.partner-logo img {
		max-width: 140px;
		max-height: 70px;
	}
}

@media (max-width: 480px) {
	.partners-section {
		padding: 40px 0;
	}

	.partners-title {
		font-size: 20px;
		margin-bottom: 30px;
	}

	.partners-track {
		gap: 30px;
	}

	.partner-logo {
		min-width: 160px;
		height: 90px;
		padding: 10px;
	}

	.partner-logo img {
		max-width: 120px;
		max-height: 60px;
	}
}
