* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.5s ease;
    background-color: #000;
}

body.theme-day {
    background-color: #fff;
}

body.theme-night {
    background-color: #000;
}

.container {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.title {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    transition: color 0.5s ease;
}

body.theme-day .title {
    color: #000;
}

body.theme-night .title {
    color: #fff;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 4rem;
    background-color: #fff;
    margin-left: 5px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
    transition: background-color 0.5s ease;
}

body.theme-day .cursor {
    background-color: #000;
}

body.theme-night .cursor {
    background-color: #fff;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.container.move-up {
    transform: translateY(-8vh);
    transition: transform 1.5s ease;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 1rem;
    opacity: 0;
    transition: color 0.5s ease;
}

body.theme-day .subtitle {
    color: #000;
}

body.theme-night .subtitle {
    color: #fff;
}

.subtitle.show {
    animation: fadeIn 1s forwards;
}

.glass-container {
    opacity: 0;
    transform: scale(0.8);
    margin-top: 2rem;
}

.glass-container.show {
    animation: glassAppear 1s forwards;
}

@keyframes glassAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glass-window {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem 4rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.menu-options {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-icon {
    width: 80px;
    height: 80px;
}

.menu-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    transition: color 0.5s ease;
}

body.theme-night .menu-label {
    color: #fff;
}

body.theme-day .menu-label {
    color: #333;
}

.menu-icon {
    transition: stroke 0.5s ease;
}

body.theme-night .menu-icon circle,
body.theme-night .menu-icon ellipse,
body.theme-night .menu-icon path,
body.theme-night .menu-icon rect,
body.theme-night .menu-icon line {
    stroke: #fff;
}

body.theme-day .menu-icon circle,
body.theme-day .menu-icon ellipse,
body.theme-day .menu-icon path,
body.theme-day .menu-icon rect,
body.theme-day .menu-icon line {
    stroke: #333;
}

.hidden {
    display: none;
}

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

body.theme-day .theme-toggle {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

body.theme-night .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-toggle.show {
    animation: fadeIn 1s forwards;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.theme-icon {
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

/* Page header */
.page-title {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: bold;
    z-index: 10;
    transition: color 0.5s ease;
}

body.theme-day .page-title {
    color: #000;
}

body.theme-night .page-title {
    color: #fff;
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

body.theme-day .back-button {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #000;
}

body.theme-night .back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.back-button:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Page Mon Univers */
.themes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 0 auto;
    padding-top: 8rem;
    position: relative;
}

/* Images de fond pour les thèmes */
.theme-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: -1;
    pointer-events: none;
}

.theme-background.active {
    opacity: 0.3;
}

body.theme-day .theme-background.active {
    opacity: 0.2;
}

.theme-background.bg-retrograming {
    background-image: url('./medias/images/retrogaming.jpg');
}

.theme-background.bg-electronique {
    background-image: url('./medias/images/electronics.jpg');
}

.theme-background.bg-velo {
    background-image: url('./medias/images/velo.jpg');
}

.theme-background.bg-cinema {
    background-image: url('./medias/images/cinema.jpeg');
}

.theme-background.bg-musique {
    background-image: url('./medias/images/music.jpg');
}

.theme-background.bg-rally {
    background-image: url('./medias/images/rally.jpg');
}

.theme-background.bg-informatique {
    background-image: url('./medias/images/informatique.jpeg');
}

.hover-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    min-height: 4rem;
    transition: all 0.3s ease;
}

body.theme-day .hover-title {
    color: #000;
}

body.theme-night .hover-title {
    color: #fff;
}

.themes-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
}

.theme-box {
    width: 160px;
    height: 160px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-box svg {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 3;
}

.theme-box:hover {
    transform: translateY(-10px) scale(1.1);
    z-index: 10;
}

/* Retrograming - Écran Cathodique / CRT */
@keyframes crt-flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

.theme-box.retro {
    background: radial-gradient(ellipse at center, #0d1b1b 0%, #050a0a 100%);
    border: 6px solid #1a1a1a;
    box-shadow: 
        inset 0 0 50px rgba(0, 217, 255, 0.1),
        0 0 30px rgba(0, 217, 255, 0.3),
        0 0 5px #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: #00d9ff;
    text-shadow: 
        0 0 5px #00d9ff,
        0 0 10px #00d9ff,
        0 0 20px #00bfff;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    animation: crt-flicker 4s infinite;
}

.theme-box.retro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

.theme-box.retro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.hover-title.theme-retrograming {
    font-family: 'Press Start 2P', cursive;
    color: #00d9ff;
    text-shadow: 
        0 0 10px #00d9ff,
        0 0 20px #00d9ff,
        0 0 30px #00bfff;
    animation: crt-flicker 3s infinite;
}

/* Électronique - Fond vert simple */
.theme-box.electronique {
    background: linear-gradient(135deg, #0a4d0a, #1a7a1a);
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px #00ff00, inset 0 0 20px rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.hover-title.theme-électronique {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
}

/* Vélo - Minimaliste */
.theme-box.velo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

body.theme-day .theme-box.velo {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: #000;
}

body.theme-night .theme-box.velo {
    color: #fff;
}

.hover-title.theme-vélo {
    font-family: Arial, sans-serif;
}

/* Cinéma - Bande de film */
.theme-box.cinema {
    background: #c0c0c0;
    border: 15px solid #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    color: #1a1a1a;
    font-weight: bold;
    position: relative;
    overflow: visible;
}

.theme-box.cinema::before {
    content: '';
    position: absolute;
    left: -15px;
    top: -15px;
    bottom: -15px;
    width: 15px;
    background: 
        radial-gradient(circle at center, #000 40%, transparent 40%) 0 2px,
        #1a1a1a;
    background-size: 15px 15px;
    background-repeat: repeat-y;
}

.theme-box.cinema::after {
    content: '';
    position: absolute;
    right: -15px;
    top: -15px;
    bottom: -15px;
    width: 15px;
    background: 
        radial-gradient(circle at center, #000 40%, transparent 40%) 0 2px,
        #1a1a1a;
    background-size: 15px 15px;
    background-repeat: repeat-y;
    pointer-events: none;
}

.hover-title.theme-cinéma {
    color: #FFD700;
    font-family: 'Times New Roman', serif;
}

/* Musique - Punk/Rock */
.theme-box.musique {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px #ff0000;
    color: #fff;
    font-family: Impact, sans-serif;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.theme-box.musique::after {
    content: '♫';
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.hover-title.theme-musique {
    color: #ff0000;
    font-family: Impact, sans-serif;
    text-transform: uppercase;
}

/* Rally - Traces de pneu réalistes */
.theme-box.rally {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    border: 3px solid #ff6b00;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    color: #ff6b00;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.theme-box.rally::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 40px;
    transform: translateY(-50%) rotate(-15deg);
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 3px,
            rgba(255, 107, 0, 0.3) 3px,
            rgba(255, 107, 0, 0.3) 4px,
            transparent 4px,
            transparent 8px,
            rgba(255, 107, 0, 0.3) 8px,
            rgba(255, 107, 0, 0.3) 9px,
            transparent 9px,
            transparent 12px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 107, 0, 0.15) 0px,
            rgba(255, 107, 0, 0.15) 2px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    opacity: 0.8;
}

.theme-box.rally::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 40px;
    transform: translateY(-50%) rotate(-15deg);
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 5px,
            rgba(255, 107, 0, 0.2) 5px,
            rgba(255, 107, 0, 0.2) 6px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 5px,
            rgba(255, 107, 0, 0.2) 5px,
            rgba(255, 107, 0, 0.2) 6px
        );
    pointer-events: none;
    opacity: 0.6;
}

.hover-title.theme-rally {
    color: #ff6b00;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Informatique - Terminal/Réseau */
.theme-box.informatique {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #00d9ff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.1);
    color: #00d9ff;
    font-family: 'Courier New', monospace;
    position: relative;
}

.theme-box.informatique::before {
    content: '< / >';
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hover-title.theme-informatique {
    color: #00d9ff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

/* Conteneur commun pour toutes les pages thématiques */
.theme-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 2rem 4rem 2rem;
}

.theme-article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.theme-day .theme-article {
    background: rgba(0, 0, 0, 0.05);
}

.theme-article:hover {
    transform: translateY(-3px);
}

.theme-article-header {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.theme-article-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.theme-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-article-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.theme-article-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

body.theme-day .theme-article-date {
    color: #666;
}

body.theme-night .theme-article-date {
    color: #aaa;
}

.theme-article-arrow {
    font-size: 1.5rem;
    align-self: center;
    transition: transform 0.3s ease;
}

.theme-article.open .theme-article-arrow {
    transform: rotate(180deg);
}

.theme-article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.theme-article.open .theme-article-content {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.theme-article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

body.theme-day .theme-article-content p {
    color: #333;
}

body.theme-night .theme-article-content p {
    color: #ddd;
}

/* Page Retrogaming - Style CRT */
.retrogaming-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./medias/images/retrogaming.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

body.theme-day .retrogaming-page-background {
    opacity: 0.2;
}

.retrogaming-article {
    border: 2px solid #00d9ff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.retrogaming-article-header:hover {
    background: rgba(0, 217, 255, 0.1);
}

.retrogaming-article-thumbnail {
    background: radial-gradient(ellipse at center, #0d1b1b 0%, #050a0a 100%);
    border: 2px solid #00d9ff;
}

.retrogaming-article-title {
    color: #00d9ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #00d9ff;
}

.retrogaming-article-arrow {
    color: #00d9ff;
}

/* Page Électronique - Style circuit imprimé */
.electronique-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./medias/images/electronics.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

body.theme-day .electronique-page-background {
    opacity: 0.2;
}

.electronique-article {
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.electronique-article-header:hover {
    background: rgba(0, 255, 0, 0.1);
}

.electronique-article-thumbnail {
    background: linear-gradient(135deg, #0a4d0a, #1a7a1a);
    border: 2px solid #00ff00;
}

.electronique-article-title {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.electronique-article-arrow {
    color: #00ff00;
}

/* Page Cinéma - Style bande de film */
.cinema-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./medias/images/cinema.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

body.theme-day .cinema-page-background {
    opacity: 0.2;
}

.cinema-article {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.cinema-article-header:hover {
    background: rgba(255, 215, 0, 0.1);
}

.cinema-article-thumbnail {
    background: #c0c0c0;
    border: 2px solid #1a1a1a;
}

.cinema-article-title {
    color: #FFD700;
    font-family: 'Times New Roman', serif;
    text-shadow: 0 0 10px #FFD700;
}

.cinema-article-arrow {
    color: #FFD700;
}

/* Page Musique - Style rock/punk */
.musique-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./medias/images/music.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

body.theme-day .musique-page-background {
    opacity: 0.2;
}

.musique-article {
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.musique-article-header:hover {
    background: rgba(255, 0, 0, 0.1);
}

.musique-article-thumbnail {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    border: 2px solid #ff0000;
}

.musique-article-title {
    color: #ff0000;
    font-family: Impact, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 10px #ff0000;
}

.musique-article-arrow {
    color: #ff0000;
}

/* Page Informatique - Style terminal */
.informatique-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./medias/images/informatique.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

body.theme-day .informatique-page-background {
    opacity: 0.2;
}

.informatique-article {
    border: 2px solid #00d9ff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.informatique-article-header:hover {
    background: rgba(0, 217, 255, 0.1);
}

.informatique-article-thumbnail {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #00d9ff;
}

.informatique-article-title {
    color: #00d9ff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #00d9ff;
}

.informatique-article-arrow {
    color: #00d9ff;
}

/* Page Rally */
.rally-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./medias/images/rally.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

body.theme-day .rally-page-background {
    opacity: 0.2;
}

.rally-page-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 10rem 2rem 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    height: calc(100vh - 14rem);
    overflow: hidden;
}

.rally-articles {
    overflow-y: auto;
    padding-right: 1rem;
}

.rally-article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #ff6b00;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

body.theme-day .rally-article {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #ff6b00;
}

.rally-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(255, 107, 0, 0.5);
}

.rally-article-header {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rally-article-header:hover {
    background: rgba(255, 107, 0, 0.1);
}

.rally-article-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2c2c2c, #4a4a4a);
    border: 2px solid #ff6b00;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.rally-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rally-article-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b00;
    margin-bottom: 0.5rem;
}

.rally-article-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

body.theme-day .rally-article-date {
    color: #666;
}

body.theme-night .rally-article-date {
    color: #aaa;
}

.rally-article-arrow {
    font-size: 1.5rem;
    color: #ff6b00;
    align-self: center;
    transition: transform 0.3s ease;
}

.rally-article.open .rally-article-arrow {
    transform: rotate(180deg);
}

.rally-article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.rally-article.open .rally-article-content {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.rally-article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

body.theme-day .rally-article-content p {
    color: #333;
}

body.theme-night .rally-article-content p {
    color: #ddd;
}

.rally-live-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid #ff6b00;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
    overflow-y: auto;
}

body.theme-day .rally-live-container {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #ff6b00;
}

.rally-live-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b00;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rally-event-name {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 0, 0.2);
    border-radius: 10px;
    border: 1px solid #ff6b00;
}

body.theme-day .rally-event-name {
    color: #000;
}

body.theme-night .rally-event-name {
    color: #fff;
}

.rally-leaderboard {
    margin-top: 1.5rem;
}

.rally-position {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff6b00;
    transition: all 0.3s ease;
}

.rally-position:hover {
    background: rgba(255, 107, 0, 0.2);
    transform: translateX(5px);
}

.rally-position.first {
    border-left-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.rally-position.second {
    border-left-color: #C0C0C0;
}

.rally-position.third {
    border-left-color: #CD7F32;
}

.rally-rank {
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    color: #ff6b00;
}

.rally-driver {
    flex: 1;
    font-weight: bold;
}

body.theme-day .rally-driver {
    color: #000;
}

body.theme-night .rally-driver {
    color: #fff;
}

.rally-time {
    font-family: 'Courier New', monospace;
    color: #ff6b00;
    font-weight: bold;
}

.rally-api-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px dashed #ff6b00;
    font-size: 0.9rem;
    line-height: 1.6;
}

body.theme-day .rally-api-info {
    color: #333;
}

body.theme-night .rally-api-info {
    color: #ddd;
}

/* Page Projets */
.projects-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 2rem 4rem 2rem;
}

.sort-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.theme-day .sort-button {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #000;
}

body.theme-night .sort-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.sort-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

body.theme-day .sort-button:hover {
    background: rgba(0, 0, 0, 0.15);
}

.sort-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sort-button.asc .sort-arrow {
    transform: rotate(180deg);
}

.project-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.theme-day .project-block {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.project-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.theme-day .project-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    transition: color 0.5s ease;
}

body.theme-day .project-title {
    color: #000;
}

body.theme-night .project-title {
    color: #fff;
}

.project-date {
    font-size: 1rem;
    opacity: 0.7;
    transition: color 0.5s ease;
}

body.theme-day .project-date {
    color: #666;
}

body.theme-night .project-date {
    color: #aaa;
}

.project-arrow {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

body.theme-day .project-arrow {
    color: #000;
}

body.theme-night .project-arrow {
    color: #fff;
}

.project-block.open .project-arrow {
    transform: rotate(180deg);
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.project-block.open .project-content {
    max-height: 2000px;
    padding: 0 2rem 2rem 2rem;
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    transition: color 0.5s ease;
}

body.theme-day .project-content p {
    color: #333;
}

body.theme-night .project-content p {
    color: #ddd;
}

.project-content h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    transition: color 0.5s ease;
}

body.theme-day .project-content h4 {
    color: #000;
}

body.theme-night .project-content h4 {
    color: #fff;
}

.project-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.project-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

body.theme-day .project-content li {
    color: #333;
}

body.theme-night .project-content li {
    color: #ddd;
}

/* Page Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
}

body.theme-day .contact-form {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.5s ease;
}

body.theme-day .form-group label {
    color: #000;
}

body.theme-night .form-group label {
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.theme-day .form-group input,
body.theme-day .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid #00d9ff;
    border-radius: 10px;
    color: #00d9ff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.error-bubble {
    position: absolute;
    top: -35px;
    left: 0;
    background: #ff0000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.error-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ff0000;
}

.error-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff0000 !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3) !important;
}

/* Page Vélo */
.velo-page-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 10rem 2rem 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    height: calc(100vh - 14rem);
    overflow: hidden;
}

.velo-articles {
    overflow-y: auto;
    padding-right: 1rem;
}

.velo-article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.theme-day .velo-article {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.velo-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.velo-article-header {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.velo-article-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.theme-day .velo-article-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.velo-article-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border: 2px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

body.theme-night .velo-article-thumbnail {
    background: linear-gradient(135deg, #2c2c2c, #4a4a4a);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.velo-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.velo-article-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

body.theme-day .velo-article-title {
    color: #000;
}

body.theme-night .velo-article-title {
    color: #fff;
}

.velo-article-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

body.theme-day .velo-article-date {
    color: #666;
}

body.theme-night .velo-article-date {
    color: #aaa;
}

.velo-article-arrow {
    font-size: 1.5rem;
    align-self: center;
    transition: all 0.3s ease;
}

body.theme-day .velo-article-arrow {
    color: #000;
}

body.theme-night .velo-article-arrow {
    color: #fff;
}

.velo-article.open .velo-article-arrow {
    transform: rotate(180deg);
}

.velo-article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.velo-article.open .velo-article-content {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.velo-article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

body.theme-day .velo-article-content p {
    color: #333;
}

body.theme-night .velo-article-content p {
    color: #ddd;
}

.velo-right-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.velo-map-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.theme-day .velo-map-container {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.velo-map-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    transition: color 0.5s ease;
}

body.theme-day .velo-map-title {
    color: #000;
}

body.theme-night .velo-map-title {
    color: #fff;
}

#veloMap {
    flex: 1;
    border-radius: 10px;
    min-height: 300px;
}

.velo-stats-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
}

body.theme-day .velo-stats-container {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.velo-stats-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: color 0.5s ease;
}

body.theme-day .velo-stats-title {
    color: #000;
}

body.theme-night .velo-stats-title {
    color: #fff;
}

.velo-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.velo-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

body.theme-day .velo-stat {
    background: rgba(0, 0, 0, 0.03);
}

.velo-stat:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.velo-stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

body.theme-day .velo-stat-label {
    color: #666;
}

body.theme-night .velo-stat-label {
    color: #aaa;
}

.velo-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.5s ease;
}

body.theme-day .velo-stat-value {
    color: #000;
}

body.theme-night .velo-stat-value {
    color: #fff;
}

.velo-api-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(135, 206, 250, 0.1);
    border-radius: 10px;
    border: 1px dashed rgba(135, 206, 250, 0.5);
    font-size: 0.85rem;
    line-height: 1.6;
}

body.theme-day .velo-api-info {
    color: #333;
}

body.theme-night .velo-api-info {
    color: #ddd;
}

/* Responsive */
@media (max-width: 1200px) {
    .rally-page-container,
    .velo-page-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .rally-live-container {
        max-height: 400px;
    }

    .velo-right-panel {
        flex-direction: row;
        height: 400px;
    }

    .velo-map-container,
    .velo-stats-container {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .cursor {
        height: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .menu-options {
        gap: 1.5rem;
    }

    .menu-item {
        padding: 1rem;
    }

    .menu-icon {
        width: 60px;
        height: 60px;
    }

    .menu-label {
        font-size: 1rem;
    }

    .themes-row {
        gap: 1rem;
    }

    .theme-box {
        width: 120px;
        height: 120px;
    }

    .hover-title {
        font-size: 2rem;
    }

    .rally-article-thumbnail,
    .velo-article-thumbnail,
    .theme-article-thumbnail {
        width: 80px;
        height: 60px;
    }

    .rally-article-title,
    .velo-article-title,
    .theme-article-title {
        font-size: 1.2rem;
    }
}
