
:root
{
	--hero-max-header: 77px;
	--hero-color-primary: #6d3c8a;
}

.hero-spotiday {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 4);
  color: white; 
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('ot-dieulefit.jpg') center/cover no-repeat;
}

/* Contenu */
.hero-content {
  position: relative;
  max-width: 480px;
  width: 100%;
  z-index: 2;
  margin: auto 0;
  padding-top: var(--hero-max-header);
  
}

/* H1 */
.hero-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content h1 em{
  font-family: 'Caveat', cursive;
  font-size: 140%;
  font-weight: 500;
}


.hero-spotiday {
  position: fixed;
  inset: 0;
  z-index: 9999;
  transform: translateY(-1px);
  transform: translateY(-1px) translateX(-1px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  overflow-y: auto;
  
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

html.agenda-mode .hero-spotiday {
  display: none !important;
}

.hero-spotiday {
  --hero-pull-progress: 0;
}

.hero-spotiday.is-pulling-up {
  transform: translateY(calc(-10% * var(--hero-pull-progress))) translateX(-1px);
  transition: transform 0.12s ease-out;
}
.hero-spotiday.is-pulling-down {
  transform: translateY(calc(10% * var(--hero-pull-progress))) translateX(-1px);
  transition: transform 0.12s ease-out;
}

.hero-spotiday.pulling-hide,
.hero-spotiday.hide {
  overflow-y: hidden!important;
  transform: translateY(-100%) translateX(-1px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(.22, .61, .36, 1), opacity 0.42s ease;
}
/**
.hero-spotiday.hide {
  overflow-y: hidden!important;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
*/
.hero-spotiday .navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hero-max-header);

  display: flex;
  align-items: stretch;
  justify-content: space-between;
  	
  padding: 0 2rem 0 0;
  background: var(--hero-color-primary);
  color: #fff;

  z-index: 10;
  transition: all 0.4s ease;
  gap: 2rem;
  gap: 2.5rem;
  
  padding-right: calc(var(--spacing)*4);
}

/* Logo */
.hero-spotiday .navbar .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-spotiday .navbar .logo img {
  width: auto;
  height: 100%;
  display: block;
}

/* Navigation */
.hero-spotiday .navbar .mainNav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-spotiday .navbar .mainNav ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.hero-spotiday .navbar .mainNav ul li{
	line-height: 0;
}
.hero-spotiday .navbar .mainNav a {
  font-size: clamp(14px, 1vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  line-height: 1.2;

  transition: all 0.3s ease;
}
.hero-spotiday .navbar .mainNav a span{
  font-weight: 500;
  font-size: 110%;
}
.hero-spotiday .navbar .mainNav a span em{
  font-style: normal;
  display: block;
  text-transform: uppercase;
  font-size: 65%;
  line-height: 1.4;
  font-weight: 400;
  opacity: 0.7;
}

.hero-spotiday .navbar .mainNav a::before {
	transition: transform 0.3s ease;
	display: none;
}

.hero-spotiday .navbar .mainNav a:hover {
	opacity: 0.8;	
}
.hero-spotiday .navbar .mainNav a:hover::before {
  transform: translateX(-5px);
  transform: translateX(-8px);
}
.hero-spotiday .navbar .mainNav a:active{
  transform: scale(0.97);
}
.hero-spotiday .navbar .mainNav a:active::before {
  transform: translateX(-2px) scale(0.9);
}

.hero-spotiday .navbar .mainNav .agenda{
  
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 14px 12.5px;
  border-radius: 8px;
  background-color: #ffffff29;
  overflow: hidden;
  position: relative;
  
  text-align: center;
  font-weight: 600;

  white-space: nowrap;
  transition: color .25s,border-color .25s,background-color .25s;
  font-size: 16px;
  
  background: color-mix(in oklab, var(--color-white) 10%, transparent);
  background: color-mix(in oklab, var(--color-white) 20%, transparent);
}

.hero-spotiday .card{
	backdrop-filter: blur(8px);
	box-shadow:  0 25px 50px -12px #00000040;
	padding: calc(var(--spacing)*6);
	background-color: #fffffff2;
	background-color: color-mix(in oklab,var(--color-white)95%,transparent);
	border-radius: 24px;
	color: oklch(14.5% 0 0);
}

.hero-spotiday .card button.cta{
	
	display: flex;
	justify-content: space-between;
	align-items: center;
	
	width: 100%;
	
	font-weight: 500;
    line-height: 1.4;
	
	background-image: linear-gradient(to right in oklab,var(--color-green-700)0%,var(--color-teal-700)100%);
	color: var(--color-white);
	
	padding-inline: 24px;
    padding-block: 16px;
	
	border-radius: 16px;
	box-shadow: var(--button-shadow);
	transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-spotiday .card button.cta:hover{
	
	background-image: linear-gradient(to right in oklab,var(--color-green-800)0%,var(--color-teal-800)100%);
	box-shadow: var(--button-hover-shadow);

}



.hero-spotiday .card button.cta div{
	flex:1;
	text-align: left;
}
.hero-spotiday .card button.cta div strong{
	font-weight: 600;
	font-size: 18px;
	display: inline-block;
	line-height: 1.25;
    min-height: 26px;
    padding-top: 3px;
}

.hero-spotiday .card button.cta div small{
	color: #ffffffe6;
	color: color-mix(in oklab,var(--color-white)90%,transparent);
	font-size: 14px;
    line-height: 1.45;
	margin-top: calc(var(--spacing)*.5);
	display: inline-block;
}
.hero-spotiday .card button.cta span.icon{
	transition: translate 150ms cubic-bezier(0.4, 0, 0.2, 1);
	margin-left: 12px;
}
.hero-spotiday .card button.cta span.icon::before{
	width: 1.5em;
	height: 1.5em;
}
.hero-spotiday .card button.cta:hover span.icon{
	translate: 4px 0;
}

.hero-spotiday .card .intro{
	color: var(--color-gray-900);
	font-size: 16px;
    line-height: 1.625;
	margin-bottom: 24px;
}
.hero-spotiday .card .intro a{
	font-weight: 500;
}
.hero-spotiday .card .intro strong{
	font-weight: 700;
	line-height: 1.4;
}
.hero-spotiday .card .intro strong em{
	font-family: caveat;
	font-size: 135%;
    font-weight: 500;
    color: var(--hero-color-primary);
}


.hero-spotiday .taglines{
	display: flex;
    justify-content: flex-start;
	
	flex-wrap: wrap;
	
	column-gap: 12px;
	row-gap: 12px;
	
	padding-bottom: calc(var(--spacing)*6);
	
    color: #fffffff2;
    color: color-mix(in oklab,var(--color-white)95%,transparent);
}

.hero-spotiday .taglines p{
	
	display: inline-flex;
	align-items: center;
	justify-content: center;
	
	min-width: 190px;
	min-width: auto;
	
	font-weight: 500;
	font-size: 95%;
	font-size: 1.4rem;
	background-color: color-mix(in srgb, #fff 10%, transparent);
	background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
	
	backdrop-filter: blur(12px);
	padding-block: 6px;
	padding-inline: 13px;
	
	border: solid 1px;
	border-color: color-mix(in oklab, var(--color-white) 20%, transparent);
	
	white-space: nowrap;
	
	border-radius: calc(infinity * 1px);
	cursor: default;
	
}

.hero-spotiday .card .intro .cta{
	cursor: pointer;
}
.hero-spotiday .taglines p.cta{
	cursor: pointer;
	transform: scale(0.98);
}
.hero-spotiday .taglines p.cta:active{
	transform: scale(0.95);
}

.hero-spotiday .navbar .mainNav ul li .agenda span{
	font-size: clamp(14px, 1vw, 22px);
}

@media (max-width: 504px) {
	.hero-spotiday .navbar .mainNav ul li .agenda span{
		display: none;
	}
	.hero-spotiday .navbar .mainNav a {
		/**display: none;*/	
	}
}

@media (max-width: 408px) {
	
	.hero-spotiday .card .intro strong{
		line-height: 1.2;
	}
	.hero-spotiday .taglines .lang.fr{
		padding-left: 2vw;
	}
}

@media (max-width: 368px) {
	
	.hero-spotiday .navbar{
		gap: 1rem;
		/*padding-right: 1.5rem;*/
	}
	.hero-spotiday .navbar .mainNav ul {
		gap: 0;
	}
}
@media (max-width: 350px) {
	.hero-spotiday .navbar .mainNav a{
		padding: 0 0.5rem;
		text-align: center;
	}
	.hero-spotiday .navbar .mainNav a::before{
		display: none;
	}
	.hero-spotiday .navbar {
		gap: 0px;
		/**padding-right: 1.2rem;*/
	}
}
@media (max-width: 310px) {
  .hero-spotiday .navbar .mainNav a {
    padding: 0 0.5rem 0 1rem;
    text-align: left;
  }
}
