
/* =========================================
   TAKERU ONLINE
   Feuille de style principale
   ========================================= */

/* BASE */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, sans-serif;
    color: white;
    background-color: #10151e;
}

/* =========================================
   ARRIÈRE-PLAN
   ========================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    background-image: url("../images/fond.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Voile sombre pour la lisibilité */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: rgba(0, 0, 0, 0.20);
    pointer-events: none;
}

/* =========================================
   PAGE D'ACCUEIL
   ========================================= */

.accueil {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 20px 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   PHOTO DE PROFIL
   ========================================= */

.profil {
    width: 110px;
    height: 110px;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.55),
        0 0 22px rgba(255, 255, 255, 0.20);

    background: rgba(15, 20, 30, 0.45);

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   TITRE DU SITE
   ========================================= */

.titre {
    width: 100%;
    max-width: 520px;
    margin-top: 22px;
    text-align: center;
}

.titre img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   TEXTE DE PRÉSENTATION
   ========================================= */

.presentation {
    width: 100%;
    max-width: 650px;
    margin-top: 20px;
    padding: 0 15px;
    text-align: center;
}

.presentation p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #ffffff;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* =========================================
   RÉSEAUX SOCIAUX
   ========================================= */

.reseaux {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;

    max-width: 100%;
    margin-top: 25px;
    padding: 12px 22px;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.20);

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.35),
        0 0 18px rgba(255, 255, 255, 0.12);
}

.reseaux a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #ffffff;
    font-size: 24px;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        text-shadow 0.2s ease;
}

.reseaux a:hover,
.reseaux a:focus-visible {
    transform: scale(1.15);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}


/* =========================================
   CARROUSEL DES CATÉGORIES
   ========================================= */

.categories-section {
    width: 100%;
    margin-top: 35px;
    text-align: center;
    overflow: hidden;
}

.categories-carousel {
    --category-size: 185px;

    display: flex;
    align-items: center;
    gap: 28px;

    width: 100%;

    padding-top: 35px;
    padding-bottom: 35px;
    padding-left: calc(50% - var(--category-size) / 2);
    padding-right: calc(50% - var(--category-size) / 2);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-y;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.categories-carousel.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

/* Vignettes */

.category-card {
    width: var(--category-size);
    height: var(--category-size);
    flex: 0 0 var(--category-size);

    padding: 0;

    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;

    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;

    opacity: 0.55;
    transform: scale(0.82);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    scroll-snap-align: center;
    cursor: pointer;
}

.category-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    user-select: none;
    pointer-events: none;
}

/* Vignette sélectionnée */

.category-card.active {
    opacity: 1;
    transform: scale(1);

    border-color: rgba(255, 255, 255, 0.98);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(255, 255, 255, 0.32),
        0 0 20px rgba(255, 255, 255, 0.16);
}

/* Titre de la catégorie */

.category-title {
    min-height: 45px;
    margin: 5px 15px 0;

    color: white;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    letter-spacing: 3px;

    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.85);
}

/* Indication de navigation */

.carousel-help {
    margin-top: 10px;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.75;

    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

/* =========================================
   CARROUSEL - TABLETTE
   ========================================= */

@media (max-width: 1024px) {
    .categories-carousel {
        --category-size: 155px;
        gap: 24px;
    }
}

/* =========================================
   BOUTON RETOUR EN HAUT
   ========================================= */

#retour-haut {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: white;
    font-size: 28px;
    line-height: 1;

    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.35),
        0 0 18px rgba(255, 255, 255, 0.12);

    text-shadow: 0 0 7px rgba(255, 255, 255, 0.5);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#retour-haut.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#retour-haut:hover {
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.55),
        0 0 24px rgba(255, 255, 255, 0.22);
}

/* Adaptation smartphone */

@media (max-width: 600px) {
    #retour-haut {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 25px;
    }
}


/* =========================================
   PIED DE PAGE
   ========================================= */

.footer {
    width: 100%;
    padding: 25px 20px 20px;
    text-align: center;

    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.footer p {
    margin: 3px 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}


/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 600px) {

    .accueil {
        padding: 25px 16px 40px;
    }

    .profil {
        width: 90px;
        height: 90px;
    }

    .titre {
        margin-top: 18px;
    }

    .presentation {
        margin-top: 15px;
        padding: 0 5px;
    }

    .presentation p {
        font-size: 14px;
        line-height: 1.6;
    }

    .reseaux {
        gap: 15px;
        padding: 10px 15px;
        margin-top: 20px;
    }

    .reseaux a {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }


    /* Carrousel sur smartphone */

    .categories-section {
        margin-top: 25px;
    }

    .categories-carousel {
        --category-size: 120px;
        gap: 16px;
        padding-top: 20px;
        padding-bottom: 25px;
    }

    .category-card {
        border-radius: 20px;
    }

    .category-title {
        min-height: 36px;
        letter-spacing: 2px;
    }

    .carousel-help {
        font-size: 0.8rem;
    }


}
