/* ========================================
   GLOBAL 
   ======================================== */
main {
	background-color: var(--color-bg-black);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
	font-style:italic;
    color: var(--color-grey);
	font-family: var(--font-eyebrow);
    font-size:clamp(1.3rem, 2.3vw,2rem);
    font-weight: 500;
    letter-spacing: -0.1rem;
    text-transform: uppercase;
}

.section-home__black {
    background-color: var(--color-black);
	color:var(--color-white);
	
}
.section-home__lightgrey {
    background-color: var(--color-text-muted);
	color:var(--color-white);
	
}
.section-home__orange {
    background-color: var(--color-accent);
	color:var(--color-white);
	
}
.section-home__grey {
    background-color: var(--color-grey);
	color:var(--color-white);
	
}
.section-home__white {
    background-color: var(--color-white);
	color:var(--color-white);
	
}

.section-home__dark {
    background-color: var(--color-bg);
	color:var(--color-white);
}

.section-home__bright {
    background-color: var(--color-bg-light);
	color:var(--color-white);
}


.section-description {
    color: var(--color-text-muted);
}

.section-title {
    /*color: var(--color-white);*/
    font-family: var(--font-rajdhani);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.3rem;
    line-height: 0.95;
	text-align:center;
	display: block;
	margin:1rem auto 0 auto;
	text-transform:uppercase;
}
.section-title-nextrace {
	margin-bottom:2rem;
}

.home__links-footer {
	padding:1rem;
	margin:auto;
	margin-top:2rem;
	text-align:center;
	background-color:var(--color-accent);
	width:fit-content;
}
.home__links-footer a {
	font-size:clamp(0.95rem, 1.2vw, 1.2rem);
	font-weight:600;
	font-family: var(--font-rajdhani);
	letter-spacing:-0.05rem;
	padding:0;
	color:var(--color-black);
	min-height:0;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    --hero-intro-offset-y: 5rem;
	
	--hero-logo-offset-x: 0rem;
    --hero-logo-offset-y: -10svh;
    
    --hero-action-bottom: 5rem;

    display: flex;
    min-height: 100svh;
    overflow: hidden;
    position: relative;


    --hero-logo-offset-y: -6rem;
    --hero-action-bottom: 3rem;
}

.hero::before {
    background-image:
       linear-gradient(
            90deg,
            rgba(16, 29, 48, 0.7) 0%,
            rgba(16, 29, 48, 0.3) 33%,
            rgba(16, 29, 48, 0.3) 66%,
            rgba(16, 29, 48, 0.7) 100%
        ),
        url("/assets/images/hero/hero.png");

    background-size:
        100% 100%,
        cover;

    background-position:
        center,28%;

    background-repeat:
        no-repeat,
        no-repeat;

    content: "";
    inset: 0;
    position: absolute;
    z-index: 0;
}

.hero .container {
    inset: 0;
    margin-inline: auto;
    position: absolute;
    z-index: 2;
}


.hero__title--logo {
    left: 50%;
    margin: 0;
    position: absolute;
    top: clamp(15rem, 50%, 50%);
    transform: translate(
        calc(-50% + var(--hero-logo-offset-x)),
        calc(-50% + var(--hero-logo-offset-y))
    );
    z-index: 1;
}

.hero__logotype {
    
	--hero-logo-min-width: 22rem;
	--hero-logo-width: 94vw;
    --hero-logo-max-width: 80rem;
	
	display: block;
	width:clamp(
		var(--hero-logo-min-width), 
		var(--hero-logo-width), 
		var(--hero-logo-max-width));
    height: auto;
}


.hero__action {
    
	--hero-action-bottom: 8svh;
	
	bottom: var(--hero-action-bottom);

    left: 50%;
    position: absolute;

    transform: translateX(-50%);
}
.hero__action .btn {
    
	--min: 0.8rem;
	--target: 1.6vw;
    --max: 1.2rem;
	
	font-family: var(--font-aldrich);
	font-size:clamp(
		var(--min), 
		var(--target), 
		var(--max));
	letter-spacing:-0.05rem;
	font-weight:500;
	padding:1.5rem 0.8rem ;
	min-width:10rem;
	min-height:0;
}


@keyframes hero-content-in {

    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


 

/* ========================================
   IDENTITY
   ======================================== */


/* ========================================
   NEXT RACE — EVENT STRIP
   ======================================== */

.next-race {
    position: relative;
	padding-bottom:5rem;
}

.next-race__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.next-race__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);

    background-color: #0049b3;
}

.next-race__visual {
    position: absolute;
    z-index: 0;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.45)
        contrast(1.05)
        brightness(0.7);

    transform: scale(1.02);
    transition: transform 700ms ease;
}

.next-race__shade {
    position: absolute;
    z-index: 1;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(8, 16, 28, 0.88) 0%,
            rgba(8, 16, 28, 0.76) 45%,
            rgba(8, 16, 28, 0.92) 100%
        );
}

.next-race__content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;

    padding: 1.5rem 1rem;
}

.next-race__date {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;

    width: fit-content;
    padding-bottom: 0.55rem;

    border-bottom: 0.15rem solid var(--color-accent);

    color: var(--color-white);
}

.next-race__date-day {
    font-family: var(--font-aldrich);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.85;
	color: var(--color-muted);
}

.next-race__date-month,
.next-race__date-year {
    font-family: var(--font-aldrich);
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0rem;
    line-height: 1;
    text-transform: uppercase;
}

.next-race__date-month {
    color: var(--color-muted);
}

.next-race__date-year {
    color: var(--color-muted);
}

@media (max-width:35rem){
	
	.next-race__date-year::before {
		content:"| ";
	}
	
	
	
}






.next-race__main {
    min-width: 0;
}

.next-race__event {
    margin: 0;

    color: var(--color-white);

    font-family: var(--font-rajdhani);
    font-size: clamp(2rem, 9vw, 3.1rem);
    font-style: italic;
    font-weight: 800;

    letter-spacing: -0.045em;
    line-height: 0.95;

    text-transform: uppercase;
    text-wrap: balance;
}

.next-race__circuit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin: 0.65rem 0 0;

    color: var(--color-text-muted);

    font-family: var(--font-barlow);
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 500;
}

.next-race__flag {
    flex: 0 0 auto;
    font-size: 1.1em;
    line-height: 1;
}

.next-race__game {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;

    gap: 0.75rem;
}

.next-race__game-logo {
    display: block;

    width: auto;
    max-width: 5rem;
    max-height: 2rem;

    object-fit: contain;

    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.30));
}

.next-race__categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.3rem;
}

.next-race__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 1.5rem;

    padding: 0.22rem 0.4rem;

    border-top: 2px solid currentColor;

    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 800;

    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;

    white-space: nowrap;
}

.next-race__category--hy {
    color: var(--color-hy);
}

.next-race__category--lmp2,
.next-race__category--lmp2elms {
    color: var(--color-lmp2);
}

.next-race__category--lmp3 {
    color: var(--color-lmp3);
}

.next-race__category--lmgt3 {
    color: var(--color-lmgt3);
}

.next-race__category--gte {
    color: var(--color-gte);
}

.next-race__empty {
    padding: 2rem;

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);

    color: var(--color-text-muted);
}

@media (hover: hover) {
    .next-race__card:hover .next-race__visual {
        transform: scale(1.045);
    }
}


/* ========================================
   PARTNERS
   ======================================== */

.partners {
    overflow: hidden;
    position: relative;
}


.partners__heading {
    display:block;
	text-align:center;
}

.partners__heading .section-description {
    line-height: 1.7;
    margin-top: 1.5rem;
    max-width: 28rem;
}

.partners__layout {
    align-items: center;
	display:block;


    grid-template-columns: 1fr;
}




/* ========================================
   RESULTS — COMPACT LIST
   ======================================== */

.results {
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 5rem;
}

.results__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-list {
    border-top: 1px solid var(--color-border);
}

.result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.75rem;
    min-width: 0;
    border-bottom: 1px solid var(--color-border);
}

.result-row__main {
    min-width: 0;
    padding: 1.1rem 1rem 1.1rem 0;
}

.result-row__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.result-row__game-logo {
    display: block;
    width: auto;
    max-width: 2.8rem;
    max-height: 1.3rem;
    object-fit: contain;
}

.result-row__date {
    color: var(--color-text-muted);
    font-family: var(--font-rajdhani);
    font-size: 0.78rem;
    font-weight: 600;
}

.result-row__event {
    margin: 0;
    color: var(--color-accent);
    font-family: var(--font-rajdhani);
    font-size: clamp(1.25rem, 6vw, 1.65rem);
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.result-row__details {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
    color: var(--color-text-muted);
    font-family: var(--font-barlow);
    font-size: 0.9rem;
    line-height: 1.35;
}

.result-row__track {
    color: var(--color-white);
    font-weight: 600;
}

.result-row__separator {
    color: var(--color-grey);
}

.result-row__drivers {
    min-width: 0;
}

.result-row__position {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    border-left: 1px solid var(--color-border);
    color: var(--color-accent);
    background-color: var(--color-black);
    text-align: center;
}


.result-row__position strong {
    font-family: var(--font-rajdhani);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.result-row__position sup {
    position: relative;
    top: -0.45em;

    margin-left: 0.08em;

    font-size: 0.45em;
    letter-spacing: 0;
}

.results__footer {
    margin-top: 1.5rem;
}

.results__empty {
    margin: 0;
    padding: 2rem;
    border-top: 0.18rem solid var(--color-accent);
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    text-align: center;
}

@media (hover: hover) {
    .result-row:hover {
        background-color: rgba(255, 255, 255, 0.025);
    }
}


/* ========================================
   TEAM — IDENTITÉ
   ======================================== */

.identite-preview {
    padding-top:0;
}

.team-identity-row {
    color: var(--color-white);
	padding:3rem 0;
	border-top:1px solid var(--color-muted);
}

.team-identity-row .container {
	border-bottom:1px solid var(--color-grey);
	padding:2rem 0 5rem 0;
}
.team-identity-row .container-last {
	border-bottom:0;
	padding-top:0
}

.team-identity-row__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;


    grid-template-columns: 1fr;
    gap: 3rem;
}


.identite__header {
	
	text-align:center;
	
}


.identite__header>p:nth-child(3) {	
	font-size:clamp(1rem, 2.1vw, 1.3rem);
	color: var(--color-white);
	text-align:center;
	font-weight:700;
	padding-bottom:1rem;
}

.staff_list {
	letter-spacing:-0.0rem;
	text-align:center !important;
	margin:0;
	font-family:var(--font-rajdhani);
	
}

.team-story__subtitle {
	color: var(--color-accent) !important;
	font-weight:700;
	display:block;
	text-align:center !important;
	font-size:clamp(1.1rem, 5vw, 1.4rem);
}

.team-identity__title {
	
	color: var(--color-white);

    font-family: var(--font-rajdhani);
    font-size: clamp(2.5rem, 3vw, 3rem);
    font-weight: 800;

    letter-spacing: -0.045em;
    line-height: 0.95;
    text-transform: uppercase;
	font-style:italic;
		margin:auto;
}

.team-games__header {
    margin:auto;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	text-align:center;
}
.team-games__header h2 {
	display:block;
	text-align:center;
}
.team-games__title {
    margin: 0;

    
}
/* Ligne 01 — Pôles */

/* ========================================
   IDENTITÉ — LAYOUT 2 PÔLES
   ======================================== */

.team-poles-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.team-poles-layout__content {
    min-width: 0;
}

.team-poles-layout .team-games__header {
    margin: 0 0 2rem;
    text-align: left;
}

.team-poles-layout .team-games__header h2 {
    text-align: center;
}

.team-poles-layout .team-games__cards {
    
    margin: 0 auto;
    max-width: 100%;
}




.team-poles-layout,
.team-association {
    grid-template-columns: 1fr;
    gap: 3rem;
}



.team-games__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(1.5rem, 3vw, 3rem);

    max-width: 33rem;
	margin:auto;


    grid-template-columns: 1fr;
}

.team-pole-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
	background-color:var(--color-bg-light);
	border-radius:1rem;	
	padding:2rem;
	padding-top:2.5rem;
	max-width:10rem;
}



.team-pole-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 auto;

}

.team-pole-card__logo {
    display: block;

    width: auto;

    object-fit: contain;

    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.25));


    max-width: 8rem;
}

.team-pole-card__title {
    
	margin:0 auto;
	text-align:center;
    color: var(--color-white);

    font-family: var(--font-rajdhani);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 800;

    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
}

.team-pole-card__platform {
    margin:0.1rem auto;
	
	text-align:center;
    color: var(--color-accent);

    font-family: var(--font-barlow);
    font-size: 1rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* Ligne 02 — Story / History */
.team-story,
.team-history {
    min-width: 0;
}

.team-story .eyebrow,
.team-history .eyebrow {
    margin: 0 0 1.25rem;
}

.team-story__title {
    margin: 0 auto 2rem auto;    
	display:block;
}

.team-story h2 {
    text-align:center !important;
	padding-top:0 !important;
}

.team-story__content {
    min-width: 0;
    
}

.team-story__content h2 {
   
	display:block;
	text-align:center;
	margin-bottom:1rem;
}

.team-story__content p {
    margin: 0;
    color: var(--color-white);
    font-size: clamp(1rem, 2vw,1.1rem);
    line-height: 1.75;
	
	text-align:start;
}

.team-story__content p + p {
    margin-top: 1.5rem;
}


.team-history {
    padding-left: clamp(0rem, 2vw, 2rem);


    padding-left: 0;
}

/*-----------*/

.timeline {
    position: relative;
    margin-top: 1rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4.5rem;
    width: 1px;
    background-color: var(--color-border);


    left: 3.5rem;
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 2rem;
    padding-block: 2rem;
	padding-top:0rem;
	padding-bottom:1rem;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1.25rem;
}

.timeline__item::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: 4.18rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: var(--color-accent);


    left: 3.18rem;
}

.timeline__year {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 1.1rem);;
    font-weight: 800;
}

.timeline__content h3 {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-barlow);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.timeline__content p {
    margin-top: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.3;
	font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Ligne 03 — Philosophy */
.team-identity-row--philosophy .team-identity-row__grid {
    align-items: center;
}

.team-story__highlight {
    margin: 0 auto;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-align: left;
    text-transform: uppercase;


    font-size: clamp(2.4rem, 11vw, 4rem);
}

.team-identity-row--philosophy .team-story__highlight {
    grid-row: 1;
}




/* ========================================
   IDENTITÉ — ASSOCIATION
   ======================================== */

.team-association {
    
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.team-association__visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
	max-width:clamp(8rem,15vw, 15rem);
	background-color:var(--color-white);
	padding:1rem;
	text-align:center;
	margin:auto;
	margin-top:3rem;
}

.team-association__logo {
    display: block;

    width: 100%;
    max-height: 6rem;

    object-fit: contain;
    object-position: left center;

    transition: transform var(--transition-normal);


}

.team-association__content {
    
}

.team-association__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.team-association__logo-link {
    display: block;

    width: min(100%, 22rem);
}

.team-association__logo-link:hover .team-association__logo {
    transform: scale(1.03);
}







/* ========================================
   PARTNERS
   ======================================== */




.partners-content__temporary {
	text-align:center;
	display: block;
	font-size:1rem;
	color:var(--color-white);
	padding: 1rem 0;
	font-weight:500;
	font-family:var(--font-body);
	line-height:1.5;
}

.partners-preview__marker {
    background-color: var(--color-accent);
    height: 2px;
	margin:auto;
    margin-block: 2rem;
    width: 4rem;
}