@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,700;1,600;1,900&display=swap');

:root {
    --coul-prim: #d62000;
    --coul-prim-surv: #ff4d4d;
    --coul-fond-sombre: #000000;
    --coul-fond-panneau: #1a1a1a;
    --coul-txt-princ: #ffffff;
    --coul-txt-muet: #e0e0e0;
    --coul-bord-clair: rgba(255, 255, 255, 0.1);
    --coul-bord-moy: rgba(255, 255, 255, 0.3);
    --fond-verre: rgba(0, 0, 0, 0.8);
    --fond-verre-fort: rgba(0, 0, 0, 0.75);
    --flou-std: 10px;
    --police-princ: 'Montserrat', sans-serif;
    --z-nav: 1000;
    --z-superpos: 1500;
    --z-charg: 2000;
    --z-modale: 11000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--coul-prim) var(--coul-fond-panneau);
}

html.snap-active {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

body {
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--police-princ);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: var(--coul-fond-sombre);
}

::-webkit-scrollbar-track {
    background: var(--coul-fond-panneau);
    border-left: 1px solid var(--coul-bord-clair);
}

::-webkit-scrollbar-thumb {
    background-color: var(--coul-prim);
    border-radius: 4px;
    border: 1px solid var(--coul-fond-sombre);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--coul-prim-surv);
    box-shadow: 0 0 10px rgba(255, 40, 0, 0.6);
}

.btn-red {
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--coul-prim);
    color: var(--coul-txt-princ);
    text-decoration: none;
    font-family: var(--police-princ);
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    font-size: 16px;
    border: none;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(255, 40, 0, 0.3);
}

.btn-red:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: #ffffff;
    color: var(--coul-prim);
    text-shadow: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-red-small {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--coul-prim); 
    color: #fff;
    border: 1px solid var(--coul-prim);
    text-decoration: none;
    font-family: var(--police-princ);
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    font-size: 12px;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    margin-top: auto;
}

.btn-red-small:hover {
    transform: scale(1.05);
    background-color: #ffffff;
    color: var(--coul-prim);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes fadeOutOverlay {
    to { opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeFast {
    to { opacity: 0; }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes borderApparition {
    to { opacity: 1; }
}

@keyframes headerFadeIn {
    to { opacity: 1; }
}

@keyframes slideFlow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes spinPneu {
    to { transform: rotate(360deg); }
}

@keyframes pneuIntro {
    0% { opacity: 0; transform: translate(-50%, 100vh) scale(0.5) rotate(0deg); }
    40%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(1440deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(1800deg); }
}

@keyframes borderFinalState {
    to {
        border-width: 1.5px;
        border-color: var(--coul-bord-moy);
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

@keyframes slowZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes f1SimpleArrivalLeft {
    0% { opacity: 0; transform: translateX(-120%) skewX(10deg); }
    85% { opacity: 1; transform: translateX(5px) skewX(0deg); }
    100% { transform: translateX(0) skewX(0); opacity: 1; }
}

@keyframes contentFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollAnim {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownExit {
    from { transform: translateY(0); }
    to { transform: translateY(20px); opacity: 0; }
}

header {
    position: fixed;
    top: 20px;
    z-index: var(--z-nav);
    width: 96%;
    max-width: 1200px;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    border: 1px solid transparent;
    opacity: 0;
    overflow: visible;
    animation: headerFadeIn 0.8s ease forwards 0s, borderFinalState 0.3s forwards 1.2s;
}

header.header-accueil {
    animation-delay: 3.2s, 5.5s;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #e60000;
    z-index: 100;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 10px;
    animation: slideFlow 1s cubic-bezier(0.45, 0, 0.15, 1) forwards 0.2s, fadeFast 0.5s ease forwards 1.2s;
}

header.header-accueil::before {
    animation-delay: 3.5s, 5.5s;
}

header nav {
    position: absolute;
    inset: 0;
    z-index: 2;
}

header nav::before,
header nav::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 20px;
    width: calc((100vw - 100%) / 2 - 29.5px);
    pointer-events: none;
    border: solid var(--coul-bord-moy);
    border-width: 0;
    box-sizing: border-box;
    z-index: 1001;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style: none;
    gap: 40px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--coul-txt-princ);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: headerFadeIn 0.5s ease forwards 1s;
}

header.header-accueil nav ul li a {
    animation-delay: 4.2s;
}

header nav ul li a:hover {
    color: #ff3333;
}

header nav ul li a.active {
    background-color: var(--coul-txt-princ);
    color: var(--coul-fond-sombre) !important;
    border: 2px solid var(--coul-txt-princ);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
    padding: 40px;
    width: 96%;
    max-width: 1400px;
    margin: 110px auto 20px auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

main.mode-accueil {
    background-color: transparent !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

main h1 {
    font-size: 48px;
    font-style: italic;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--coul-prim);
    padding-bottom: 10px;
    display: inline-block;
}

.global-border-overlay {
    position: fixed;
    inset: 10px;
    z-index: 9999;
    pointer-events: none;
    border: 1px solid var(--coul-bord-moy);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: borderApparition 1s ease forwards 3.2s;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modale);
    animation: fadeIn 0.4s ease-out;
}

.modal-box {
    background: var(--coul-fond-panneau);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    max-width: 450px;
    width: 90%;
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    transform: translateY(0);
    animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-box h3 {
    font-family: var(--police-princ);
    font-size: 28.8px;
    text-transform: uppercase;
    font-style: italic;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 1);
}

.modal-box p {
    font-family: var(--police-princ);
    color: #bbb;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-box .btn-red {
    min-width: 150px;
}

.modal-overlay.closing {
    animation: fadeOutOverlay 0.5s ease forwards;
    pointer-events: none;
}

.modal-overlay.closing .modal-box {
    animation: slideDownExit 0.5s ease forwards;
}

footer {
    margin-top: auto;
    width: 100%;
    background-color: #080808;
    color: #999;
    text-align: center;
    padding: 30px 20px;
    font-family: var(--police-princ);
    font-size: 14.4px;
    letter-spacing: 1px;
    border-top: 4px solid var(--coul-prim);
    position: relative;
    z-index: 10000;
    scroll-snap-align: end;
}

footer p:last-of-type {
    margin-bottom: 7px;
}

footer a {
    display: inline-block;
    margin: 0 4px;
    font-family: var(--police-princ);
    text-decoration: none;
    color: var(--coul-txt-muet);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--coul-prim);
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--coul-fond-sombre);
    z-index: var(--z-superpos);
    animation: fadeOutOverlay 0.8s ease forwards 3s;
    pointer-events: none;
}

#intro-pneu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: var(--z-charg);
    pointer-events: none;
    animation: pneuIntro 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

#intro-pneu img {
    width: 150px;
    height: auto;
    display: block;
    animation: spinPneu 1.5s linear infinite;
}

.slide {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: var(--coul-fond-sombre);
    border-top: 4px solid var(--coul-prim);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    z-index: 10;
}

.slide:first-child { border-top: none; box-shadow: none; z-index: 10; }
.slide:nth-of-type(2) { z-index: 20; }
.slide:nth-of-type(3) { z-index: 30; }
.slide:nth-of-type(4) { z-index: 40; }
.slide:nth-of-type(5) { z-index: 50; }

.slide:nth-of-type(5) .slide-bg {
    filter: blur(2px);
    transform: scale(1.02);
}

.slide-bg, .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-video {
    filter: blur(8px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    background: var(--fond-verre);
    padding: 60px;
    border-radius: 4px;
    text-align: center;
    border-left: 5px solid var(--coul-prim);
    backdrop-filter: blur(var(--flou-std));
    max-width: 900px;
    border: 1px solid var(--coul-bord-clair);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.slide h1, .slide h2 {
    font-size: 56px;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 1);
    color: #fff;
    line-height: 1.1;
}

.slide p {
    font-size: 22.4px;
    color: #ddd;
    margin-bottom: 30px;
    font-weight: 500;
}

.zoom-anim {
    animation: slowZoom 20s ease-in-out infinite;
    will-change: transform;
}

.lcp-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#f1-slide {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.f1-layout {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 90%;
    max-width: 1400px;
    gap: 50px;
}

.f1-text-content, .f1-3d-box {
    background: var(--fond-verre-fort);
    backdrop-filter: blur(2px);
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.f1-text-content {
    flex: 1;
    padding: 50px;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.f1-text-content h2 {
    font-size: 48px;
    margin-bottom: 25px;
    color: #fff;
    font-style: italic;
    text-transform: uppercase;
}

.f1-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.f1-details ul li {
    font-size: 17.6px;
    color: #ccc;
    margin-bottom: 10px;
    padding-left: 20px;
    border-left: 2px solid #555;
}

.f1-details .highlight-text {
    color: var(--coul-prim);
    font-weight: 700;
    font-style: italic;
    font-size: 19.2px;
    margin-top: 20px;
}

.f1-3d-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.f1-3d-box::before, .f1-3d-box::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(10px);
    z-index: 0;
    opacity: 0.7;
}

.f1-3d-box canvas {
    position: relative;
    z-index: 10;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.model-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: var(--fond-verre);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    opacity: 0;
    animation: fadeIn 1s ease forwards 4s;
}

.scroll-indicator span {
    display: block;
    width: 50px;
    height: 50px;
    border-bottom: 5px solid #fff;
    border-right: 5px solid #fff;
    transform: rotate(45deg);
    margin: -15px auto;
    animation: scrollAnim 2s infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: -0.4s; }

.ferrari-slide-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2%;
}

.ferrari-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.ferrari-left-col {
    flex: 0 0 auto;
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.drivers-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.boss-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.driver-card {
    background: var(--fond-verre);
    backdrop-filter: blur(10px); 
    border-radius: 10px;
    border: none;
    width: 220px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.driver-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 40, 0, 0.5);
    z-index: 10;
}

.driver-card.highlight {
    border-bottom: none; 
}

.driver-card:first-child {
    border-bottom: none; 
}

.driver-card.team-principal {
    border-bottom: none; 
    width: 200px;
}

.driver-img {
    height: 240px;
    width: 100%;
}

.driver-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.driver-info {
    padding: 15px;
    text-align: center;
    position: relative;
}

.driver-info h3 {
    font-family: var(--police-princ);
    font-size: 16px;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.driver-number {
    position: absolute;
    top: -30px;
    right: 10px;
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 4px 8px rgba(0,0,0,0.8);
    font-family: 'Montserrat', sans-serif;
}

.role {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--coul-prim);
    font-weight: 700;
    letter-spacing: 2px;
}

.ferrari-tech-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    padding: 50px;
    border-radius: 8px;
    color: var(--coul-txt-muet);
}

.ferrari-tech-box h2 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #fff;
    text-align: left;
    font-style: italic;
    text-transform: uppercase;
}

.ferrari-tech-box .intro-strong {
    font-size: 20px;
    color: var(--coul-prim);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 25px;
    display: block;
}

.ferrari-tech-box p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ddd;
    text-align: justify;
}

.specs-mini-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
    list-style: none;
    gap: 20px;
}

.specs-mini-grid li {
    text-align: center;
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.specs-mini-grid li:last-child {
    border: none;
}

.specs-mini-grid span {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--coul-prim);
    font-style: italic;
}

.specs-mini-grid small {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #aaa;
    margin-top: 5px;
}

.table-container {
    width: 100%;
    margin: 30px 0;
    background: var(--fond-verre);
    backdrop-filter: blur(var(--flou-std));
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--coul-txt-muet);
    overflow-x: auto;
    display: block;
    opacity: 0;
    will-change: transform, opacity;
    animation: f1SimpleArrivalLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

table.data-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    clear: both;
}

.data-table thead th {
    color: var(--coul-prim);
    text-transform: uppercase;
    font-size: 12.8px;
    letter-spacing: 1.5px;
    font-weight: 800;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333 !important;
    position: relative;
    font-style: italic;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 15px;
    color: var(--coul-txt-muet);
    font-weight: 500;
    font-size: 14.4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    background-color: transparent !important;
    white-space: nowrap;
    vertical-align: middle;
}

.data-table td:first-child {
    font-weight: 800;
    font-style: italic;
    font-size: 16px;
    color: #fff;
    border-left: none;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.data-table td:last-child {
    border-right: 1px solid transparent;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.data-table tbody tr {
    background-color: transparent !important;
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0;
    animation: contentFadeUp 0.4s ease-out forwards;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.5s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.55s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.6s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.65s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.7s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.75s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.8s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.85s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.9s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.95s; }
.data-table tbody tr:nth-child(n+11) { animation-delay: 1s; }

.dataTables_wrapper {
    font-family: var(--police-princ) !important;
    color: #bbb;
    width: 100%;
    font-size: 14.4px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--coul-txt-muet) !important;
    margin-bottom: 20px;
    font-weight: 500;
}

.dataTables_wrapper input,
.dataTables_wrapper select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--coul-txt-princ) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    outline: none;
    margin-left: 10px;
    font-family: var(--police-princ);
    font-style: italic;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dataTables_wrapper input:focus,
.dataTables_wrapper select:focus {
    border-color: var(--coul-prim) !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 0 10px rgba(255, 40, 0, 0.4);
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--coul-bord-clair) !important;
    border-radius: 4px !important;
    margin: 0 2px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    font-family: var(--police-princ) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    text-transform: uppercase;
    font-size: 13.6px;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover {
    background: #222 !important;
    color: var(--coul-prim) !important;
    border-color: var(--coul-prim) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--coul-prim) !important;
    color: white !important;
    border: 1px solid var(--coul-prim) !important;
    font-weight: 900 !important;
    box-shadow: 0 0 15px rgba(255, 40, 0, 0.5);
    transform: scale(1.05);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    color: #777 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.dt-buttons .dt-button {
    background: transparent !important;
    color: var(--coul-prim) !important;
    border: 1px solid var(--coul-prim) !important;
    border-radius: 4px !important;
    font-size: 12.8px !important;
    text-transform: uppercase;
    font-family: var(--police-princ) !important;
    font-style: italic;
    font-weight: 800;
    padding: 8px 18px !important;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.dt-buttons .dt-button:hover {
    background: var(--coul-prim) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 40, 0, 0.6);
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--coul-bord-clair) !important;
}

.galerie-container {
    background: var(--fond-verre);
    backdrop-filter: blur(10px);
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    padding: 40px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    will-change: transform, opacity;
    animation: f1SimpleArrivalLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.intro-text p {
    color: var(--coul-txt-muet);
    font-size: 18px;
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
}

.separator {
    width: 100%;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.galerie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.grid-item {
    flex: 0 0 300px;
    height: 200px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.4s; }
.grid-item:nth-child(2) { animation-delay: 0.5s; }
.grid-item:nth-child(3) { animation-delay: 0.6s; }
.grid-item:nth-child(4) { animation-delay: 0.7s; }
.grid-item:nth-child(5) { animation-delay: 0.8s; }
.grid-item:nth-child(n+6) { animation-delay: 0.9s; }

.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(0%);
}

.overlay-icon {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    opacity: 0;
    transition: 0.3s;
}

.overlay-icon i {
    color: #fff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

.grid-item:hover .image-wrapper {
    border-color: var(--coul-prim);
    box-shadow: 0 0 20px rgba(255, 40, 0, 0.3);
}

.grid-item:hover img {
    transform: scale(1.1);
    filter: grayscale(100%);
}

.grid-item:hover .overlay-icon {
    opacity: 1;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.overlay-icon .material-symbols-outlined {
    font-size: 48px;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.grid-item:hover .overlay-icon .material-symbols-outlined {
    color: var(--coul-prim);
}

.upload-section {
    text-align: center;
    max-width: 600px;
    margin: 40px auto 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 1s;
}

.upload-section h2 {
    text-transform: uppercase;
    font-style: italic;
    color: #fff;
    margin-bottom: 25px;
    font-size: 24px;
}

.file-input-wrapper {
    margin-bottom: 25px;
    position: relative;
}

.input-file { 
    display: none;
}

.btn-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    border: 1px dashed #666;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    background: transparent;
    width: 100%;
}

.btn-file .material-symbols-outlined {
    font-size: 24px;
    color: #aaa;
    transition: color 0.3s ease;
}

.btn-file:hover {
    border-color: var(--coul-prim);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-file:hover .material-symbols-outlined {
    color: var(--coul-prim);
    transform: none;
}

.btn-file.file-selected {
    border-color: var(--coul-prim);
    color: var(--coul-prim);
    background: rgba(255, 40, 0, 0.1);
    border-style: solid;
}

.btn-file.file-selected .material-symbols-outlined {
    color: var(--coul-prim);
}

.modal {
    display: none;
    position: fixed;
    z-index: 12000;
    inset: 0;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--coul-prim);
    box-shadow: 0 0 50px rgba(255, 40, 0, 0.5);
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 12001;
}

.close-modal:hover {
    color: var(--coul-prim);
    transform: scale(1.2);
}

.partner-section {
    width: 100%;
    background: var(--fond-verre);
    backdrop-filter: blur(var(--flou-std));
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    will-change: transform, opacity;
    animation: f1SimpleArrivalLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.section-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--coul-bord-clair);
    padding-bottom: 15px;
}

.partner-section h2 {
    font-family: var(--police-princ);
    font-size: 32px;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.partner-section p {
    color: var(--coul-txt-muet);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--coul-bord-clair);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    animation: contentFadeUp 0.6s ease-out forwards;
}

.member-card:hover {
    transform: translateY(-10px);
    border-color: var(--coul-prim);
    box-shadow: 0 10px 20px rgba(255, 40, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.member-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 2px solid var(--coul-prim);
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-info {
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-info h3 {
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.member-info .role {
    display: block;
    color: var(--coul-prim);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.content-wrapper {
    margin-top: 20px;
    opacity: 0;
    animation: contentFadeUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

.content-wrapper h3 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 10px;
    border-left: 3px solid var(--coul-prim);
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(255,40,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

.doc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.doc-info ul {
    list-style: none;
    padding: 0;
}

.doc-info ul li {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    animation: contentFadeUp 0.5s ease-out forwards;
}

.doc-info ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--coul-prim);
    margin-right: 10px;
    transform: rotate(45deg);
    box-shadow: 0 0 5px var(--coul-prim);
}

.partner-section .member-card:nth-child(1) { animation-delay: 0.7s; }
.partner-section .member-card:nth-child(2) { animation-delay: 0.8s; }
.partner-section .member-card:nth-child(3) { animation-delay: 0.9s; }
.partner-section .member-card:nth-child(4) { animation-delay: 1.0s; }

.doc-info ul li:nth-child(1) { animation-delay: 1.1s; }
.doc-info ul li:nth-child(2) { animation-delay: 1.2s; }
.doc-info ul li:nth-child(3) { animation-delay: 1.3s; }
.doc-info ul li:nth-child(4) { animation-delay: 1.4s; }

.doc-action {
    opacity: 0;
    animation: contentFadeUp 0.6s ease-out forwards;
    animation-delay: 1.6s;
}

.contact-container {
    background: var(--fond-verre);
    backdrop-filter: blur(var(--flou-std));
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    padding: 40px;
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    will-change: transform, opacity;
    animation: f1SimpleArrivalLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.contact-container h2,
.contact-container .form-row,
.contact-container .form-group,
.contact-container .btn-submit-container {
    opacity: 0;
    animation: contentFadeUp 0.4s ease-out forwards;
}

.contact-container h2 {
    animation-delay: 0.5s;
    font-family: var(--police-princ);
    font-size: 40px;
    text-transform: uppercase;
    font-style: italic;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.contact-container .form-grid > .form-row { animation-delay: 0.55s; }
.contact-container .form-grid > .form-group:nth-of-type(2) { animation-delay: 0.6s; }
.contact-container .form-grid > .form-group:nth-of-type(3) { animation-delay: 0.65s; }
.contact-container .btn-submit-container { animation-delay: 0.7s; }

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-container label {
    font-family: var(--police-princ);
    font-size: 14.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-container label span {
    color: var(--coul-prim);
}

.contact-container input[type="text"],
.contact-container input[type="email"],
.contact-container textarea {
    background-color: var(--coul-fond-panneau);
    border: 1px solid #333;
    color: var(--coul-txt-princ);
    padding: 12px 15px;
    border-radius: 4px;
    font-family: var(--police-princ);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-container input::placeholder,
.contact-container textarea::placeholder {
    color: #555;
    font-style: italic;
}

.contact-container input:focus,
.contact-container textarea:focus {
    border-color: var(--coul-prim);
    box-shadow: 0 0 10px rgba(255, 40, 0, 0.3);
}

.contact-container textarea {
    min-height: 150px;
    resize: none;
}

.btn-submit-container {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 20px; }
    .contact-container { padding: 25px 20px; }
}

.credits-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--fond-verre);
    backdrop-filter: blur(var(--flou-std));
    border: 1px solid var(--coul-bord-clair);
    border-left: 5px solid var(--coul-prim);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    will-change: transform, opacity;
    animation: f1SimpleArrivalLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.credit-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--coul-bord-clair);
    border-left: 4px solid #444;
    padding: 20px 25px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: contentFadeUp 0.4s ease-out forwards;
}

.credit-item:nth-child(1) { animation-delay: 0.5s; }
.credit-item:nth-child(2) { animation-delay: 0.55s; }
.credit-item:nth-child(3) { animation-delay: 0.6s; }
.credit-item:nth-child(4) { animation-delay: 0.65s; }
.credit-item:nth-child(5) { animation-delay: 0.7s; }
.credit-item:nth-child(6) { animation-delay: 0.75s; }
.credit-item:nth-child(n+7) { animation-delay: 0.8s; }

.credit-item:hover {
    transform: translateX(10px);
    border-left-color: var(--coul-prim);
    background: rgba(30, 30, 30, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.credit-icon {
    font-size: 32px !important;
    margin-right: 25px;
    color: var(--coul-txt-muet);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.credit-item:hover .credit-icon {
    color: var(--coul-prim);
}

.credit-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.credit-author {
    font-size: 12.8px;
    color: var(--coul-prim);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.credit-desc {
    font-size: 17.6px;
    color: #fff;
    font-style: italic;
    font-weight: 500;
}

.credit-link {
    text-decoration: none;
    color: #aaa;
    font-size: 13.6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.credit-item:hover .credit-link {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.credit-link:hover {
    background-color: var(--coul-prim) !important;
    border-color: var(--coul-prim) !important;
    font-weight: bold;
}

.calendar-wrapper-carousel {
    width: 100%;
    max-width: 1600px;
    padding: 0 40px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
    background: var(--fond-verre);
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 5px solid var(--coul-prim);
    backdrop-filter: blur(10px);
}

.carousel-header h2 {
    font-size: 42px;
    margin: 0;
    color: #fff;
    font-style: italic;
    text-transform: uppercase;
}

.carousel-nav {
    display: flex;
    gap: 15px;
}

.nav-arrow {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-arrow:hover {
    background: var(--coul-prim);
    border-color: var(--coul-prim);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 40, 0, 0.5);
}

.carousel-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}
.carousel-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}
.carousel-container::-webkit-scrollbar-thumb {
    background: var(--coul-prim);
    border-radius: 4px;
}

.carousel-card {
    flex: 0 0 280px;
    height: 380px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.carousel-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--coul-prim);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.round-badge {
    background: var(--coul-prim);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    font-style: italic;
}

.flag-icon {
    height: 22px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: block;
}

.track-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    transition: 0.5s;
}

.carousel-card:hover .track-visual {
    transform: scale(1.1) rotate(-5deg);
}

.track-visual img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
}

.card-info {
    text-align: center;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.country-name {
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.circuit-name {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 12px;
}

.date-badge {
    display: inline-block;
    border: 1px solid var(--coul-prim);
    color: var(--coul-prim);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.carousel-card:hover .date-badge {
    background: var(--coul-prim);
    color: #fff;
}

.doc-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--coul-bord-clair);
    border-left: 4px solid #444;
    padding: 15px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.doc-row:hover {
    border-left-color: var(--coul-prim);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.doc-label h3 {
    font-family: var(--police-princ);
    font-size: 16px;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.doc-type {
    display: block;
    font-size: 10px;
    color: var(--coul-prim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.doc-row .btn-red-small {
    margin: 0;
    font-size: 11px;
    padding: 10px 20px;
    min-width: 130px;
    text-align: center;
    box-shadow: none;
}

.doc-row .btn-red-small:hover {
    box-shadow: 0 0 15px rgba(255, 40, 0, 0.4);
}