/* 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);
}

/* 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;
}

/* --- GRILLE 2x3 --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    row-gap: 50px;
    column-gap: 5px;
    padding: 20px;
    margin-top: 60px; /* Espace pour le titre */
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.circle img {
    width: 40%; /* Taille du PNG à l'intérieur du cercle */
    height: auto;
}

/* Couleurs des cercles (Exemple : dégradé alterné) */
.c1, .c2, .c3, .c4, .c5, .c6 { background-color: #a0b0e1; }

/* --- TITRE PRINCIPAL --- */
.main-title {
    position: absolute;
    top: 80px;
    width: 100%;
    text-align: center;
    font-family: LouisVuitton;
    color: #a0b0e1;
    font-size: 24px;
}

/* --- GIF EN BAS --- */
.footer-gif {
    position: absolute;
    bottom: 15px;
    width: 100px;
    display: flex;
    justify-content: center;
}

.footer-gif img {
    width: 130px;
    height: auto;
}

/* --- VUE DÉTAILS CENTRÉE --- */
#details-view {
    display: none;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    background-color: rgb(247, 247, 237);
    padding: 20px;
    text-align: center;
}

.details-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 350px; /* Évite que le texte soit trop large sur tablette */
    gap: 60px;       /* Crée un espace régulier entre PNG, Titre, Texte et Bouton */
}

.detail-image {
    width: 140px;    /* Un peu plus grand pour l'impact visuel */
    height: auto;
    object-fit: contain;
}

#detail-title {
    font-family: LouisVuitton;
    color: #a0b0e1;
    font-size: 1.8rem;
    margin: 0;
}

#detail-text {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-family: Vessel;
}

.pdf-link {
    display: inline-block;
    padding: 15px 30px;
    background-color: #a0b0e1;
    color: rgb(247, 247, 237);
    text-decoration: none;
    border-radius: 30px;
    font-family: LouisVuitton;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
    margin-top: 10px;
}

.pdf-link:active {
    transform: scale(0.95);
}