/* =========================================================
   LIQUID GLASS : habillage de l'accueil (mise en page inchangée)
   Pour revenir à l'ancien design : retirer l'appel à ce fichier
   dans functions.php.
   ========================================================= */
:root{
	--lg-text:#1C1B22;
	--lg-violet-1:#A08FFF;
	--lg-violet-2:#7356F0;
	--lg-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* Fond : beige chaud, lumière en haut à gauche, ombre douce en diagonale */
body{
	background-color:#E7E0D9;
	background-image:
		radial-gradient(ellipse 65% 55% at 18% 28%, rgba(255,250,244,0.95), rgba(255,250,244,0) 70%),
		linear-gradient(128deg, #EFE8E1 0%, #E6DED7 52%, #C9C7CC 78%, #A9AFBD 100%);
	background-attachment:fixed;
	color:var(--lg-text);
}

/* Titre : bouton pilule violet en verre */
.StartSection_titre{
	font-family:var(--lg-font);
	font-weight:600;
	text-transform:none;
	letter-spacing:-0.01em;
	line-height:1;
	font-size:clamp(26px, 3.2vw, 44px);
	color:#FFFFFF;
	padding:0.55em 1.4em;
	border-radius:999px;
	background:linear-gradient(180deg, var(--lg-violet-1), var(--lg-violet-2));
	border:1px solid rgba(255,255,255,0.55);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.65),
		inset 0 -3px 8px rgba(70,30,180,0.28),
		16px 22px 34px rgba(115,86,240,0.32);
}

/* Grands mots : lettres de verre clair avec ombre portée */
.StartSection_baseline{
	-webkit-text-stroke:1.5px rgba(255,255,255,0.95);
	color:rgba(255,255,255,0.35);
	text-shadow:12px 16px 28px rgba(70,55,45,0.16);
}

/* Zone projets : plus de panneau, les blocs flottent sur le fond */
.SectionPosts{
	background:#FFFFFF;
}

/* Blocs projets : verre clair sans fond, suggéré par la lumière et les ombres */
.grid-item{
	background:transparent !important;
	border:none;
	border-radius:28px;
	box-shadow:
		/* ombre de contact */
		4px 6px 10px rgba(70,55,45,0.14),
		/* ombre portée, lumière venant d'en haut à gauche */
		22px 30px 46px rgba(70,55,45,0.22);
	filter:none;
}
.grid-item:hover{
	filter:none;
	box-shadow:
		6px 8px 12px rgba(70,55,45,0.14),
		30px 40px 60px rgba(115,86,240,0.22);
}
/* Survol : reflet irisé (lumière, pas un fond plein) */
.grid-item:before{
	inset:0;
	width:auto;
	height:auto;
	border-radius:inherit;
	background:
		radial-gradient(ellipse 80% 60% at 20% 15%, rgba(255,211,194,0.55), rgba(255,211,194,0) 60%),
		radial-gradient(ellipse 70% 60% at 85% 90%, rgba(189,235,242,0.55), rgba(189,235,242,0) 60%),
		radial-gradient(ellipse 60% 50% at 70% 35%, rgba(233,204,255,0.45), rgba(233,204,255,0) 65%);
}
/* Reflets de lumière : grand reflet en haut à gauche, petit éclat en bas à droite */
.grid-item:after{
	inset:0;
	width:auto;
	height:auto;
	border-radius:inherit;
	background:
		linear-gradient(155deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 22%, rgba(255,255,255,0) 40%),
		radial-gradient(ellipse 40% 18% at 78% 94%, rgba(255,255,255,0.45), rgba(255,255,255,0) 70%);
	opacity:1;
}
.grid-item:hover img{
	filter:none;
}
/* Nom du projet au survol : pilule blanche */
.grid-item-title{
	color:var(--lg-text);
	mix-blend-mode:normal;
	font-family:var(--lg-font);
	font-weight:600;
	font-size:20px;
	line-height:1.2;
	text-transform:none;
	letter-spacing:-0.01em;
	padding:10px 18px;
	border-radius:999px;
	background:rgba(255,255,255,0.75);
	box-shadow:inset 0 1px 0 #FFFFFF, 8px 12px 20px rgba(70,55,45,0.15);
}

@media (max-width:767px){
	.grid-item{
		border-radius:22px;
		-webkit-backdrop-filter:none;
		backdrop-filter:none;
	}
}

/* =========================================================
   LOGOS EN VERRE (champs ACF "Logo verre")
   Incolore au repos, couleur au survol. Le fond blanc des images
   disparaît grâce au mode de fusion "multiply".
   ========================================================= */
.grid-item.has-glass a{
	align-items:flex-end;
	padding-bottom:4px;
}
.grid-item .grid-item-glass{
	top:0;
	left:0;
	width:100%;
	height:100%;
	object-fit:cover; /* l'image remplit tout le bloc */
	mix-blend-mode:multiply;
	transition:opacity 0.45s ease, transform 0.45s ease;
}
.grid-item:hover .grid-item-glass{
	opacity:1;
	filter:none;
	transform:scale(1.04);
}
.grid-item .grid-item-glass--color{
	opacity:0;
}
.grid-item:hover .grid-item-glass--color{
	opacity:1;
}
.grid-item:hover .grid-item-glass:not(.grid-item-glass--color):not(:only-of-type){
	opacity:0;
}
.grid-item.has-glass .grid-item-title{
	font-size:16px;
	padding:8px 14px;
}
/* =========================================================
   SANS EFFETS : blocs sans ombre, sans reflet ni halo au survol.
   Supprimer ce bloc pour retrouver les effets.
   ========================================================= */
.grid-item,
.grid-item:hover{
	box-shadow:none;
}
.grid-item:before,
.grid-item:after{
	content:none;
}

/* =========================================================
   EN ATTENTE DU LOGO VERRE : les projets sans logo verre gardent
   leur couleur de fond (champ ACF couleur_de_fond).
   ========================================================= */
.grid-item:not(.has-glass){
	background:var(--card) !important;
}
