/* Suppression de l'effet de zoom */
html {
    height: 100%;
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Assure que le corps prend toute la hauteur */
    display: flex;
    flex-direction: column;
}

/* Quadrillage de fond */
body {
    background: linear-gradient(90deg, #eeeeee 1px, transparent 1px),
                linear-gradient(180deg, #eeeeee 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: Arial, sans-serif;
}

/* En-tête */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    z-index: 10;
    position: relative;
    background: transparent;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    margin-left: auto; 
    display: flex;
    background: transparent; /* Suppression du fond blanc */
    box-shadow: none; /* Suppression de l'ombre */
    z-index: 1000;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-bottom: none; /* Suppression de la bordure */
    background: transparent; /* Fond transparent */
}

.nav-links a:hover {
    color: #ff5c8d;
}

.social-icons {
    margin-left: auto;
    display: flex;
    gap: 16px;
}

.social-icons a {
    margin: 0;
}

.social-icons img {
    width: 25px;
    height: 25px;
}

/* Conteneur du logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 75px;
    height: auto;
    display: block;
}

/* Grille principale */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Header mobile */
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
        margin: 15px 0; /* Ajoute de l'espace autour du header */
    }

    .hamburger-menu {
        order: 1;
        margin: 0;
    }

    .logo-container {
        order: 2;
        justify-content: center;
    }

    .logo {
        width: 60px;
        height: auto;
    }

    .social-icons {
        order: 3;
        margin: 0;
        gap: 8px;
    }

    .social-icons img {
        width: 20px;
        height: 20px;
    }

    /* Navigation mobile */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        box-sizing: border-box;
    }

    /* Grille mobile */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 25px; /* Augmente l'espace entre les cartes */
        padding: 25px 15px; /* Augmente le padding vertical */
        margin: 20px auto; /* Ajoute de l'espace autour de la grille */
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    /* Ajustement des cartes pour mobile */
    .card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 150px;
        margin-bottom: 10px; /* Ajoute un peu d'espace sous chaque carte */
    }

    /* Footer mobile */
    footer {
        width: 100%;
        padding: 30px 20px; /* Augmente le padding vertical */
        box-sizing: border-box;
        text-align: center;
        margin: 20px 0 0 0; /* Ajoute de l'espace au-dessus du footer */
    }

    footer p {
        margin: 0;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1240px) {
    .grid-container {
        padding: 0 20px;
    }
}

/* Cases */
.card {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: #fff;
    border-radius: 8px;
    font-size: 1.2rem;
}

/* Couleurs des cases */
.card.purple {
    background-color: #e0bbff;
}

.card.pink {
    background-color: #ffb3ba;
}

.card.green {
    background-color: #baffc9;
}

.card.blue {
    background-color: #bae1ff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Large et medium styles */
.card.a {
    grid-column: span 2;
    grid-row: span 2;
}

.card.b {
    grid-column: span 1;
    grid-row: span 1;
}

.card.c {
    grid-column: span 2;
    grid-row: span 1;
}

.card.d {
    grid-column: span 1;
    grid-row: span 2;
}

/* Footer */
footer {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    font-size: 0.9rem;
    color: #555;
    margin-top: auto;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    color: #ff5c8d;
}

footer p {
    margin: 0;
    width: auto;
    text-align: center;
}

/* Styles spécifiques à l'horloge */

.clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    color: white;
    text-align: center;
}

.faded {
    opacity: 0.3;
}


/* Styles spécifiques à la page discord */

.gif img {
    max-width: 100%; /* Le GIF prendra jusqu'à 100% de la largeur du conteneur */
    max-height: 500px; /* Définit une hauteur maximale (optionnelle) */
    width: auto; /* Ajuste la largeur automatiquement */
    height: auto; /* Garde les proportions */
    display: block; /* Nécessaire pour centrer avec margin */
    margin: 0 auto; /* Centre horizontalement */
    border-radius: 8px; /* Coins arrondis pour un style moderne (optionnel) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre pour un effet visuel */
}

/* Styles spécifiques à la page de contacte */

.gras {
    font-size: 2rem;
    color: #0a0a0a;
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
}

.sous-texte {
    font-size: 1.5rem;
    color: #0a0a0a;
    margin-bottom: 60px;
    text-align: center;
}

/* Styles spécifiques à la page des mentions légales */

.mentions-legales-body {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    color: #333;
}

.mentions-legales-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mentions-title {
    font-size: 2rem;
    color: #ff5c8d;
    margin-bottom: 20px;
    text-align: center;
}

.mentions-list {
    margin-top: 20px;
    padding-left: 20px;
    list-style: disc;
    line-height: 1.6;
}

.mentions-list li a {
    color: #007bff;
    text-decoration: none;
}

.mentions-list li a:hover {
    text-decoration: underline;
}

.login-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.login-card form {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.login-card h3 {
    color: #fff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-card .form-group {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-card input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.login-card .login-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-card .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.login-card .login-btn:active {
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.2s ease-in-out 0s 2;
}

/* Styles pour la page de connexion réussie */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%);
    backdrop-filter: blur(10px);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

.success-icon::before {
    content: "✓";
    color: white;
    font-size: 3rem;
}

.success-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.success-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.return-button {
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.return-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Styles pour la timeline */
.timeline-container {
    min-height: 100%;
    padding: 160px 20px 100px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #e0bbff, #ffb3ba, #baffc9, #bae1ff);
    z-index: 0;
}

.timeline-item {
    margin-bottom: 80px;
    position: relative;
    width: 100%;
    opacity: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-left: auto;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0bbff;
    right: -40px;
    z-index: 2;
}

.timeline-item:nth-child(2) .timeline-content::before {
    background: #ffb3ba;
}

.timeline-item:nth-child(3) .timeline-content::before {
    background: #baffc9;
}

.timeline-item:nth-child(4) .timeline-content::before {
    background: #bae1ff;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: auto;
    left: -40px;
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 15px;
    background: #e0bbff;
    color: #333;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-item:nth-child(2) .timeline-content .date {
    background: #ffb3ba;
}

.timeline-item:nth-child(3) .timeline-content .date {
    background: #baffc9;
}

.timeline-item:nth-child(4) .timeline-content .date {
    background: #bae1ff;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animation des éléments */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--order) * 0.2s);
}

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

/* Responsive design */
@media (max-width: 768px) {
    .timeline-container {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .timeline {
        padding-bottom: 60px;
    }
    
    .timeline-item {
        margin-bottom: 60px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
}

/* Style des liens de navigation */
.nav-links {
    margin-left: auto; 
    display: flex;
    background: transparent; /* Suppression du fond blanc */
    box-shadow: none; /* Suppression de l'ombre */
    z-index: 1000;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border-bottom: none; /* Suppression de la bordure */
    background: transparent; /* Fond transparent */
}

.nav-links a:hover {
    color: #ff5c8d;
}

/* Styles pour le menu hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Media queries pour le responsive design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        width: calc(100% - 40px);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        transition: left 0.3s ease;
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .hamburger-menu {
        display: flex;
    }

    .social-icons {
        margin-left: 15px;
    }

    /* Centrage de la grille */
    .grid-container {
        padding: 0 20px;
        margin: 0 auto;
    }

    /* Centrage du footer */
    footer {
        text-align: center;
        padding: 0 15px;
    }

    footer p {
        width: 100%;
        text-align: center;
    }
}

/* Styles pour l'écran de chargement */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff5c8d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classe pour cacher l'écran de chargement */
.hidden {
    opacity: 0;
    pointer-events: none;
}
