:root {
    --position-bn: 50%;
    /* ==================================================
       REGLAGES FACILES - ORDINATEUR + TABLETTE
       ================================================== */
    --taille-score-bonus: 26px;
    --taille-valeur-score-bonus: 30px;
    --taille-six-puces: 18px;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100dvh;
    padding: 78px 0 24px;
    background-color: #10141c;
    background-image: url("../images/site/fond.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* --------------------------------------------------
   Bandeau haut
-------------------------------------------------- */
#bandeauHaut {
    direction: ltr;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
    font-family: Arial, sans-serif;
}
#marqueSite {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
#logoSite {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}
#nomSite {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.75);
    animation: apparitionStarDuo 0.9s ease-out;
}
@keyframes apparitionStarDuo {
    0% {
        opacity: 0;
        transform: scale(0.75);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* --------------------------------------------------
   Titre
-------------------------------------------------- */
#titreSite {
    position: relative;
    width: min(900px, calc(100% - 40px));
    margin: 6px auto 22px;
    z-index: 300;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 400;
    text-align: center;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.75);
}
/* --------------------------------------------------
   Grille
-------------------------------------------------- */
#cadreGrille {
    position: relative;
    width: 667px;
    height: 667px;
    flex: 0 0 auto;
}
#zoneGrille {
    position: relative;
    width: 667px;
    height: 667px;
    cursor: pointer;
    transform-origin: top left;
}
#grille {
    position: relative;
    width: 667px;
    height: 667px;
}
.cube {
    position: absolute;
    width: 64px;
    height: 64px;
    transition:
        left 0.12s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}
.cube img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.cube.selectionne {
    transform: scale(1.08);
    filter: brightness(1.25);
    z-index: 10;
}
.cube.explosion {
    animation: explosion 0.18s forwards;
}
@keyframes explosion {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    35% {
        transform: scale(1.35) rotate(9deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(25deg);
        opacity: 0;
    }
}
#voile {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 8px;
    transition: opacity 0.25s ease;
    z-index: 100;
}
#play {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-family: Arial, sans-serif;
    font-size: 46px;
    color: #10141c;
    padding-left: 7px;
}
#voile.cache {
    opacity: 0;
    pointer-events: none;
}
/* --------------------------------------------------
   Boutons de navigation
   Indépendants du contenu (grille, classement, etc.)
-------------------------------------------------- */
#navigationPage {
    position: fixed;
    inset: 0;
    z-index: 450;
    pointer-events: none;
}
.bn {
    position: fixed;
    top: var(--position-bn);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 180;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.48);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background * 0.2s ease;
}
/* Position des chevrons uniquement */
.bn span {
    position: relative;
    top: -3px;
    line-height: 1;
}
.bn-gauche {
    left: 10px;
    padding: 0;
    text-indent: -1px;
    line-height: 27px;
}
.bn-droite {
    right: 10px;
    padding: 0;
    text-indent: 1px;
    line-height: 27px;
}
.bn:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.07);
}
.bn.cache {
    opacity: 0;
    pointer-events: none;
}
.bn.inactif {
    opacity: 0.35;
    cursor: default;
}
/* --------------------------------------------------
   Score / Bonus
-------------------------------------------------- */
.infoScoreBonus {
    font-size: var(--taille-score-bonus) !important;
}
.infoScoreBonus strong {
    font-size: var(--taille-valeur-score-bonus) !important;
}
/* --------------------------------------------------
   Présentation du jeu
-------------------------------------------------- */
#presentationJeu {
    width: min(667px, calc(100% - 20px));
    margin: 16px auto 0;
    font-family: Arial, sans-serif;
    font-size: var(--taille-six-puces);
    line-height: 1.35;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 7px rgba(0, 0, 0, 0.7);
}
#presentationJeu ul {
    margin: 0;
    padding-left: 24px;
}
#presentationJeu li {
    white-space: normal;
    overflow-wrap: break-word;
}
/* --------------------------------------------------
   Langues
-------------------------------------------------- */
#langueZone {
    position: relative;
    z-index: 400;
    font-family: Arial, sans-serif;
    flex: 0 0 auto;
}
#btLangue {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    box-shadow: none;
}
#btLangue:hover {
    transform: scale(1.05);
}
#drapeauLangue {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
}
#menuLangues {
    direction: ltr;
    position: absolute;
    top: 58px;
    right: 0;
    display: none;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 4px 10px;
    width: 440px;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(92, 92, 92, 0.96);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}
#menuLangues.ouvert {
    display: grid;
}
.choixLangue {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: white;
    padding: 7px 5px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    white-space: nowrap;
}
.choixLangue:hover {
    background: rgba(255, 255, 255, 0.16);
}
.choixLangue .drapeau {
    display: inline-block;
    width: 28px;
    height: 19px;
    margin-right: 7px;
    object-fit: contain;
    vertical-align: middle;
}
/* --------------------------------------------------
   Téléchargements
-------------------------------------------------- */
#telechargements {
    direction: ltr;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    z-index: 300;
}
.storePlaceholder {
    min-width: 135px;
    padding: 10px 14px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 7px rgba(0, 0, 0, 0.7);
}
/* --------------------------------------------------
   Page Contact
-------------------------------------------------- */
.pageContact {
    width: min(667px, calc(100% - 20px));
    min-height: 667px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.contactCarte {
    width: min(520px, calc(100% - 110px));
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.contactCarte h1 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 32px;
}
.contactCarte p {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.4;
}
.contactCarte a {
    color: white;
}
.formContact {
    margin-top: 24px;
}
.formContact label {
    display: block;
    margin: 14px 0 6px;
    font-size: 17px;
}
.formContact input,
.formContact textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 9px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 17px;
}
.formContact textarea {
    min-height: 120px;
    resize: vertical;
}
.formContact button {
    display: block;
    margin: 16px auto 0;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #10141c;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.copyrightContact {
    margin-top: 24px !important;
    font-size: 15px !important;
    opacity: 0.85;
    text-align: center;
}
/* --------------------------------------------------
   Téléphone / tablette étroite
-------------------------------------------------- */
@media (max-width: 620px) {
    :root {
        /* ==============================================
           REGLAGES FACILES - TELEPHONE
           ============================================== */
        --taille-score-bonus: 30px;
        --taille-valeur-score-bonus: 34px;
        --taille-six-puces: 16px;
    }
    body {
        padding-top: 68px;
        padding-bottom: 18px;
        background-attachment: scroll;
    }
    #bandeauHaut {
        height: 62px;
        padding: 7px 10px;
    }
    #logoSite {
        width: 48px;
        height: 48px;
    }
    #nomSite {
        font-size: 28px;
    }
    #titreSite {
        width: calc(100% - 30px);
        max-width: 390px;
        margin-top: 4px;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.35;
        font-weight: 400;
        text-align: center;
    }
    #presentationJeu {
        width: calc(100% - 30px);
        max-width: 390px;
        margin-top: 6px;
        font-size: var(--taille-six-puces);
        line-height: 1.2;
    }
    #presentationJeu ul {
        padding-left: 20px;
    }
    #presentationJeu li {
        white-space: normal;
        overflow-wrap: break-word;
    }
    #btLangue {
        width: 48px;
        height: 48px;
    }
    #menuLangues {
        width: min(92vw, 390px);
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
    #telechargements {
        gap: 10px;
        margin-top: 8px;
    }
    .storePlaceholder {
        min-width: 0;
        width: 135px;
        padding: 9px 8px;
        font-size: 16px;
    }
    .pageContact {
        width: calc(100% - 20px);
        min-height: calc(100vh - 86px);
    }
    .contactCarte {
        width: calc(100% - 92px);
        padding: 22px 18px;
    }
    .contactCarte h1 {
        font-size: 27px;
    }
    .contactCarte p {
        font-size: 16px;
    }
}
/* Écrans mobiles avec peu de hauteur disponible
   On ne réduit plus les polices : la page peut défiler verticalement. */
@media (max-width: 620px) and (max-height: 750px) {
    #titreSite {
        margin-top: -4px;
        margin-bottom: 4px;
    }
    #presentationJeu {
        margin-top: 4px;
    }
    #telechargements {
        margin-top: 6px;
    }
}
/* ==========================================
   TABLETTE - ACCUEIL
   ========================================== */
@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) {
    body {
        padding-top: 70px;
        padding-bottom: 12px;
    }
    #titreSite {
        margin-top: 4px;
        margin-bottom: 12px;
        font-size: 22px;
        line-height: 1.2;
    }
    #presentationJeu {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.2;
    }
    #telechargements {
        margin-top: 8px;
    }
}
/* ==================================================
   TABLETTE PAYSAGE + PC : MEME PRESENTATION CENTRALE
   Les telephones et tablettes portrait restent inchanges.
   ================================================== */
@media (min-width: 800px) and (min-height: 600px) and (orientation: landscape) {
    body {
        background-color: #000;
        background-image: none;
        overflow-x: hidden;
    }
    body::before {
        content: "";
        position: fixed;
        inset: 0 auto 0 50%;
        transform: translateX(-50%);
        width: min(var(--largeur-fond-paysage), 100%);
        background: #10141c url("../images/site/fond.png") center center / cover no-repeat;
        pointer-events: none;
        z-index: 0;
    }
    body > * {
        position: relative;
        z-index: 1;
    }
    #bandeauHaut {
        position: fixed;
        top: 0;
        left: 50%;
        width: min(var(--largeur-fond-paysage), 100%);
        transform: translateX(-50%);
        z-index: 500;
    }
    #navigationPage {
        position: fixed;
        z-index: 450;
    }
    #navigationPage .bn-gauche {
        left: calc(50% - min(var(--largeur-fond-paysage), 100vw) / 2 + 12px);
    }
    #navigationPage .bn-droite {
        right: calc(50% - min(var(--largeur-fond-paysage), 100vw) / 2 + 12px);
    }
    #titreSite {
        width: min(580px, calc(100% - 40px));
    }
    #presentationJeu {
        width: min(520px, calc(100% - 40px));
        margin-top: 8px;
        line-height: 1.2;
        flex-shrink: 0;
    }
    #telechargements {
        margin-top: 10px;
        flex-shrink: 0;
    }
}
/* Tablette en paysage : fond central de 620 px */
@media (min-width: 800px) and (max-width: 1400px) and (min-height: 600px) and (orientation: landscape) {
    :root {
        --largeur-fond-paysage: 620px;
    }
    #titreSite {
        font-size: 19px;
        margin-bottom: 6px;
    }
}
/* PC : fond central plus large, avec bandes noires */
@media (min-width: 1401px) and (min-height: 600px) {
    :root {
        --largeur-fond-paysage: 800px;
    }
}
:root {
    --position-bn: 50%;
    /* ==================================================
       REGLAGES FACILES - ORDINATEUR + TABLETTE
       ================================================== */
    --taille-score-bonus: 26px;
    --taille-valeur-score-bonus: 30px;
    --taille-six-puces: 18px;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100dvh;
    padding: 78px 0 24px;
    background-color: #10141c;
    background-image: url("../images/site/fond.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* --------------------------------------------------
   Bandeau haut
-------------------------------------------------- */
#bandeauHaut {
    direction: ltr;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
    font-family: Arial, sans-serif;
}
#marqueSite {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
#logoSite {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}
#nomSite {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.75);
    animation: apparitionStarDuo 0.9s ease-out;
}
@keyframes apparitionStarDuo {
    0% {
        opacity: 0;
        transform: scale(0.75);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* --------------------------------------------------
   Titre
-------------------------------------------------- */
#titreSite {
    position: relative;
    width: min(900px, calc(100% - 40px));
    margin: 6px auto 22px;
    z-index: 300;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 400;
    text-align: center;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.75);
}
/* --------------------------------------------------
   Grille
-------------------------------------------------- */
#cadreGrille {
    position: relative;
    width: 667px;
    height: 667px;
    flex: 0 0 auto;
}
#zoneGrille {
    position: relative;
    width: 667px;
    height: 667px;
    cursor: pointer;
    transform-origin: top left;
}
#grille {
    position: relative;
    width: 667px;
    height: 667px;
}
.cube {
    position: absolute;
    width: 64px;
    height: 64px;
    transition:
        left 0.12s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}
.cube img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.cube.selectionne {
    transform: scale(1.08);
    filter: brightness(1.25);
    z-index: 10;
}
.cube.explosion {
    animation: explosion 0.18s forwards;
}
@keyframes explosion {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    35% {
        transform: scale(1.35) rotate(9deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(25deg);
        opacity: 0;
    }
}
#voile {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 8px;
    transition: opacity 0.25s ease;
    z-index: 100;
}
#play {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-family: Arial, sans-serif;
    font-size: 46px;
    color: #10141c;
    padding-left: 7px;
}
#voile.cache {
    opacity: 0;
    pointer-events: none;
}
/* --------------------------------------------------
   Boutons de navigation
   Indépendants du contenu (grille, classement, etc.)
-------------------------------------------------- */
#navigationPage {
    position: fixed;
    inset: 0;
    z-index: 450;
    pointer-events: none;
}
.bn {
    position: fixed;
    top: var(--position-bn);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 180;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.48);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background * 0.2s ease;
}
/* Position des chevrons uniquement */
.bn span {
    position: relative;
    top: -3px;
    line-height: 1;
}
.bn-gauche {
    left: 10px;
    padding: 0;
    text-indent: -1px;
    line-height: 27px;
}
.bn-droite {
    right: 10px;
    padding: 0;
    text-indent: 1px;
    line-height: 27px;
}
.bn:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.07);
}
.bn.cache {
    opacity: 0;
    pointer-events: none;
}
.bn.inactif {
    opacity: 0.35;
    cursor: default;
}
/* --------------------------------------------------
   Score / Bonus
-------------------------------------------------- */
.infoScoreBonus {
    font-size: var(--taille-score-bonus) !important;
}
.infoScoreBonus strong {
    font-size: var(--taille-valeur-score-bonus) !important;
}
/* --------------------------------------------------
   Présentation du jeu
-------------------------------------------------- */
#presentationJeu {
    width: min(667px, calc(100% - 20px));
    margin: 16px auto 0;
    font-family: Arial, sans-serif;
    font-size: var(--taille-six-puces);
    line-height: 1.35;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 7px rgba(0, 0, 0, 0.7);
}
#presentationJeu ul {
    margin: 0;
    padding-left: 24px;
}
#presentationJeu li {
    white-space: normal;
    overflow-wrap: break-word;
}
/* --------------------------------------------------
   Langues
-------------------------------------------------- */
#langueZone {
    position: relative;
    z-index: 400;
    font-family: Arial, sans-serif;
    flex: 0 0 auto;
}
#btLangue {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    box-shadow: none;
}
#btLangue:hover {
    transform: scale(1.05);
}
#drapeauLangue {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
}
#menuLangues {
    direction: ltr;
    position: absolute;
    top: 58px;
    right: 0;
    display: none;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 4px 10px;
    width: 440px;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(92, 92, 92, 0.96);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}
#menuLangues.ouvert {
    display: grid;
}
.choixLangue {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: white;
    padding: 7px 5px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    white-space: nowrap;
}
.choixLangue:hover {
    background: rgba(255, 255, 255, 0.16);
}
.choixLangue .drapeau {
    display: inline-block;
    width: 28px;
    height: 19px;
    margin-right: 7px;
    object-fit: contain;
    vertical-align: middle;
}
/* --------------------------------------------------
   Téléchargements
-------------------------------------------------- */
#telechargements {
    direction: ltr;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    z-index: 300;
}
.storePlaceholder {
    min-width: 135px;
    padding: 10px 14px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 0 7px rgba(0, 0, 0, 0.7);
}
/* --------------------------------------------------
   Page Contact
-------------------------------------------------- */
.pageContact {
    width: min(667px, calc(100% - 20px));
    min-height: 667px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.contactCarte {
    width: min(520px, calc(100% - 110px));
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.contactCarte h1 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 32px;
}
.contactCarte p {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.4;
}
.contactCarte a {
    color: white;
}
.formContact {
    margin-top: 24px;
}
.formContact label {
    display: block;
    margin: 14px 0 6px;
    font-size: 17px;
}
.formContact input,
.formContact textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 9px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 17px;
}
.formContact textarea {
    min-height: 120px;
    resize: vertical;
}
.formContact button {
    display: block;
    margin: 16px auto 0;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #10141c;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.copyrightContact {
    margin-top: 24px !important;
    font-size: 15px !important;
    opacity: 0.85;
    text-align: center;
}
/* --------------------------------------------------
   Téléphone / tablette étroite
-------------------------------------------------- */
@media (max-width: 620px) {
    :root {
        /* ==============================================
           REGLAGES FACILES - TELEPHONE
           ============================================== */
        --taille-score-bonus: 30px;
        --taille-valeur-score-bonus: 34px;
        --taille-six-puces: 16px;
    }
    body {
        padding-top: 68px;
        padding-bottom: 18px;
        background-attachment: scroll;
    }
    #bandeauHaut {
        height: 62px;
        padding: 7px 10px;
    }
    #logoSite {
        width: 48px;
        height: 48px;
    }
    #nomSite {
        font-size: 28px;
    }
    #titreSite {
        width: calc(100% - 30px);
        max-width: 390px;
        margin-top: 4px;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.35;
        font-weight: 400;
        text-align: center;
    }
    #presentationJeu {
        width: calc(100% - 30px);
        max-width: 390px;
        margin-top: 6px;
        font-size: var(--taille-six-puces);
        line-height: 1.2;
    }
    #presentationJeu ul {
        padding-left: 20px;
    }
    #presentationJeu li {
        white-space: normal;
        overflow-wrap: break-word;
    }
    #btLangue {
        width: 48px;
        height: 48px;
    }
    #menuLangues {
        width: min(92vw, 390px);
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
    #telechargements {
        gap: 10px;
        margin-top: 8px;
    }
    .storePlaceholder {
        min-width: 0;
        width: 135px;
        padding: 9px 8px;
        font-size: 16px;
    }
    .pageContact {
        width: calc(100% - 20px);
        min-height: calc(100vh - 86px);
    }
    .contactCarte {
        width: calc(100% - 92px);
        padding: 22px 18px;
    }
    .contactCarte h1 {
        font-size: 27px;
    }
    .contactCarte p {
        font-size: 16px;
    }
}
/* Écrans mobiles avec peu de hauteur disponible
   On ne réduit plus les polices : la page peut défiler verticalement. */
@media (max-width: 620px) and (max-height: 750px) {
    #titreSite {
        margin-top: -4px;
        margin-bottom: 4px;
    }
    #presentationJeu {
        margin-top: 4px;
    }
    #telechargements {
        margin-top: 6px;
    }
}
/* ==========================================
   TABLETTE - ACCUEIL
   ========================================== */
@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) {
    body {
        padding-top: 70px;
        padding-bottom: 12px;
    }
    #titreSite {
        margin-top: 4px;
        margin-bottom: 12px;
        font-size: 22px;
        line-height: 1.2;
    }
    #presentationJeu {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.2;
    }
    #telechargements {
        margin-top: 8px;
    }
}
/* ==================================================
   TABLETTE PAYSAGE + PC : MEME PRESENTATION CENTRALE
   Les telephones et tablettes portrait restent inchanges.
   ================================================== */
@media (min-width: 800px) and (min-height: 600px) and (orientation: landscape) {
    body {
        background-color: #000;
        background-image: none;
        overflow-x: hidden;
    }
    body::before {
        content: "";
        position: fixed;
        inset: 0 auto 0 50%;
        transform: translateX(-50%);
        width: min(var(--largeur-fond-paysage), 100%);
        background: #10141c url("../images/site/fond.png") center center / cover no-repeat;
        pointer-events: none;
        z-index: 0;
    }
    body > * {
        position: relative;
        z-index: 1;
    }
    #bandeauHaut {
        position: fixed;
        top: 0;
        left: 50%;
        width: min(var(--largeur-fond-paysage), 100%);
        transform: translateX(-50%);
        z-index: 500;
    }
    #navigationPage {
        position: fixed;
        z-index: 450;
    }
    #navigationPage .bn-gauche {
        left: calc(50% - min(var(--largeur-fond-paysage), 100vw) / 2 + 12px);
    }
    #navigationPage .bn-droite {
        right: calc(50% - min(var(--largeur-fond-paysage), 100vw) / 2 + 12px);
    }
    #titreSite {
        width: min(580px, calc(100% - 40px));
    }
    #presentationJeu {
        width: min(520px, calc(100% - 40px));
        margin-top: 8px;
        line-height: 1.2;
        flex-shrink: 0;
    }
    #telechargements {
        margin-top: 10px;
        flex-shrink: 0;
    }
}
/* Tablette en paysage : fond central de 620 px */
@media (min-width: 800px) and (max-width: 1400px) and (min-height: 600px) and (orientation: landscape) {
    :root {
        --largeur-fond-paysage: 620px;
    }
    #titreSite {
        font-size: 19px;
        margin-bottom: 6px;
    }
}
/* PC : fond central plus large, avec bandes noires */
@media (min-width: 1401px) and (min-height: 600px) {
    :root {
        --largeur-fond-paysage: 800px;
    }
}

/* Liens des quatre dernieres puces : lisibilite sur fond etoile */
#presentationJeu a.lienMenu,
#presentationJeu a.lienMenu:visited {
    color: #fff !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.8);
    text-underline-offset: 2px;
}
#presentationJeu a.lienMenu:hover,
#presentationJeu a.lienMenu:focus-visible {
    color: #ccecff !important;
    text-decoration-color: currentColor;
}
