/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    /* Supprime le flash bleu au clic sur mobile */
}

@font-face {
    font-family: Vessel;
    src: url(Vessel-Regular.otf);
}

@font-face {
    font-family: LouisVuitton;
    src: url(LouisVuitton-Demi.otf);
}

body {
    font-family: Vessel;
    background-color: rgb(247, 247, 237);
    /* Couleur crème de ton image */
    height: 100vh;
    overflow: hidden;
    color: rgb(247, 247, 237);
}

/* HEADER (Drapeau) */
header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 37px;
    padding: 0;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* GESTION DES VUES (SPA) */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.view.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.view.active {
    opacity: 1;
    transform: scale(1);
}

.view.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

/* HOME VIEW - LES RONDS */
#home-view {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.circles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* Espace augmenté pour bien voir les transitions */
    padding-bottom: 20px;
}

.circle {
    width: 110px;
    /* Légèrement plus grand pour bien voir le dégradé */
    height: 110px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Pas de bordure, pour coller à ta nouvelle image de référence */
}

.circle:active {
    transform: scale(0.90) !important;
    /* L'effet de clic reste centré */
}

/* Positionnement Zig-Zag fluide */
/* On décale les impairs à gauche et les pairs à droite */
.circle:nth-child(odd) {
    transform: translateX(-30px);
}

.circle:nth-child(even) {
    transform: translateX(30px);
}

/* DÉGRADÉS MIS À JOUR 
   Note technique : Pour aller vers "transparent", j'utilise la couleur 
   de base avec 0 d'opacité (rgba) pour éviter un rendu grisâtre.
*/

/* Rond 1 : transparent -> Bleu (a0b0e1) */
.c1 {
    /* Le haut est le même bleu mais totalement transparent */
    background: linear-gradient(180deg, rgba(160, 176, 225, 0) 0%, #a0b0e1 100%);
}

/* Rond 2 : Bleu (a0b0e1) -> Jaune (f7e05b) */
.c2 {
    background: linear-gradient(180deg, #a0b0e1 0%, #f7e05b 100%);
}

/* Rond 3 : Jaune (f7e05b) -> Vert (a0d682) */
.c3 {
    background: linear-gradient(180deg, #f7e05b 0%, #a0d682 100%);
}

/* Rond 4 : Vert (a0d682) -> transparent */
.c4 {
    /* Le bas est le même vert mais totalement transparent */
    background: linear-gradient(180deg, #a0d682 0%, rgba(160, 214, 130, 0) 100%);
}


/* PLAYER VIEW */
#player-view {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(247, 247, 237);
    /* On s'assure que le fond reste le même */
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    /* Zone de clic plus grande */
}

.player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.play-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    /* Fond blanc ou légèrement transparent pour ressortir sur le fond crème */
    background-color: transparent;
    border: 0px solid rgba(0, 0, 0, 0.05);
    /* Bordure très subtile */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(160, 176, 225, 0.2);
    /* Ombre douce teintée de bleu */
    transition: transform 0.2s;
}

.play-circle:active {
    transform: scale(0.95);
}

/* Icônes Play/Pause */
.icon {
    transition: all 0.3s ease;
}

.icon.play {
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    border-left: 60px solid rgba(247, 247, 237);
    margin-left: 12px;
    /* Correction visuelle optique pour centrer le triangle */
}

.icon.pause {
    width: 20px;
    height: 60px;
    border-left: 16px solid rgba(247, 247, 237);
    border-right: 16px solid rgba(247, 247, 237);
    box-sizing: content-box;
    /* Important pour que width s'ajoute aux bordures */
}

/* Bouton d'aide repositionné */
.help-btn {
    position: fixed; /* Fixé par rapport au viewport */
    top: 20px;
    left: 20px;
    background:  #a0b0e1;
    border: 0px solid rgba(0,0,0,0.1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-family: Vessel;
    font-size: 20px;
    color: rgb(247, 247, 237);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 100; /* Au-dessus du header si besoin */
    transition: opacity 0.3s ease;
}

/* Classe pour cacher le bouton */
.help-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Vue Aide */
#help-view {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.help-content {
    max-width: 80%;
}

.help-content h2 {
    margin-bottom: 20px;
    color: #a0b0e1; /* On reprend le bleu du premier cercle */
    font-family: LouisVuitton;
}

.help-content p {
    line-height: 1.6;
    color: #555;
    font-family: Vessel;
}

.icon.hidden {
    display: none;
}