/* =========================================================
   STYLES COMMUNS
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef0f2;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
}

.page {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 45px;
    background: #f8f6ef;
}

.entete {
    width: 100%;
    background: #f8f6ef;
}

.zone-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 20px 32px;
    background: #f8f6ef;
}

.logo {
    display: block;
    width: 75%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.zone-banniere {
    width: 100%;
    padding: 0;
    background: #a8b57a;
    overflow: hidden;
}

.banniere {
    display: block;
    width: 100%;
    height: auto;
}

.bloc-concours {
    width: 78%;
    max-width: 570px;
    margin: 58px auto 0;
    padding: 32px 38px 36px;
    border: 2px solid #a4b66e;
    border-radius: 10px;
    background: #f8f6ef;
    text-align: center;
}

.bloc-concours h1 {
    margin: 0;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(54px, 10vw, 76px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
}

.bloc-concours h2 {
    margin: -4px 0 28px;
    color: #81401d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 8vw, 62px);
    font-style: italic;
    font-weight: bold;
    line-height: 0.95;
}

.introduction {
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.6;
}

.defis {
    margin-top: 0;
    text-align: left;
    font-size: 17px;
    line-height: 1.6;
}

.defis p {
    margin: 0 0 8px;
}

.defis ul {
    margin: 0;
    padding-left: 24px;
}

.bouton {
    display: inline-block;
    margin-top: 32px;
    padding: 17px 28px;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}

.bouton:hover {
    background: #8d9f58;
}

.page-inscription {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 38px 45px 55px;
    background: #f8f6ef;
}

.logo-inscription {
    display: block;
    width: 260px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 42px;
}

.titre-bienvenue {
    margin: 0 0 28px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 7vw, 52px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.5px;
    text-align: center;
}

.page-inscription .introduction {
    max-width: 500px;
    margin: 0 auto 38px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    text-align: center;
}

#formulaire-inscription {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

#formulaire-inscription .champ {
    margin-bottom: 25px;
}

#formulaire-inscription .champ label {
    display: block;
    margin-bottom: 9px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.4;
}

#formulaire-inscription .champ input {
    display: block;
    width: 100%;
    height: 43px;
    padding: 8px 12px;
    border: 1px solid #cfcbbf;
    border-radius: 6px;
    background: #fffefa;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

#formulaire-inscription .champ input:focus {
    outline: none;
    border-color: #a5b66d;
    box-shadow: 0 0 0 3px rgba(165, 182, 109, 0.2);
}

#formulaire-inscription .champ input::placeholder {
    color: #999999;
}

#formulaire-inscription .champ small {
    display: block;
    margin-top: 6px;
    color: #666666;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    line-height: 1.4;
}

#formulaire-inscription .consentement {
    margin-top: 32px;
    margin-bottom: 35px;
}

#formulaire-inscription .case-consentement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

#formulaire-inscription .case-consentement input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #a5b66d;
}

#formulaire-inscription .bouton-formulaire {
    display: block;
    width: 230px;
    margin: 0 auto;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

#formulaire-inscription .bouton-formulaire:hover {
    background: #8d9f58;
}


/* =========================================================
   PAGE MEMORY
   ========================================================= */

.page-memory {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
}

.logo-memory {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

.titre-memory {
    margin: 0 0 22px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 7vw, 50px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}

.zone-temps-memory {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 570px;
    margin: 0 auto 20px;
}

.libelle-temps {
    display: block;
    width: 100%;
    margin-top: 10px;
    color: #211d19;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    text-align: center;
}

.libelle-temps strong {
    color: #81401d;
    font-size: 21px;
}

.barre-temps-fond {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 20px;
    background: #deded5;
}

.barre-temps-remplissage {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #a5b66d;
    transition: width 0.1s linear;
}

.consigne-memory {
    margin: 0 auto 22px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.plateau-memory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
}

.carte-memory {
    position: relative;
    width: min(180px, 100%);
    aspect-ratio: 4 / 5;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
}

.carte-memory:focus {
    outline: none;
}

.carte-memory:focus-visible {
    outline: 3px solid #a5b66d;
    outline-offset: 3px;
    border-radius: 4px;
}

.carte-memory-interieur {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s ease;
}

.carte-memory.retournee .carte-memory-interieur,
.carte-memory.trouvee .carte-memory-interieur {
    transform: rotateY(180deg);
}

.face-carte {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    backface-visibility: hidden;
}

.face-carte img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.face-carte-dos {
    transform: rotateY(0deg);
}

.face-carte-verso {
    transform: rotateY(180deg);
}

.carte-memory.trouvee .face-carte {
    border: 3px solid #a5b66d;
}

.message-memory {
    min-height: 25px;
    margin: 22px auto 15px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.message-succes {
    color: #6f873b;
    font-weight: bold;
}

.message-erreur {
    color: #81401d;
    font-weight: bold;
}

.bouton-termine-memory {
    display: block;
    width: 230px;
    margin: 0 auto;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.bouton-termine-memory:hover:not(:disabled) {
    background: #8d9f58;
}

.bouton-termine-memory:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.instructions-progression-memory {
    max-width: 700px;
    margin: 12px auto;
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   PAGE PUZZLE
   ========================================================= */

.page-puzzle {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
}

.logo-puzzle {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

.titre-puzzle {
    margin: 0 0 22px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 7vw, 50px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}

body.page-puzzle-body .zone-temps-puzzle {
    display: block;
    width: 100%;
    margin: 0 auto 25px;
    color: #81401d;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
}

body.page-puzzle-body .conteneur-barre-temps {
    width: 100%;
    max-width: 450px;
    height: 12px;
    margin: 10px auto;
    overflow: hidden;
    border-radius: 6px;
    background-color: #e2dac9;
}

body.page-puzzle-body #barreTemps {
    width: 0%;
    height: 100%;
    background-color: #a5b66d;
    transition: width 1s linear;
}

.zone-chronometre-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 20px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}

.zone-chronometre-puzzle strong {
    color: #333333;
    font-size: 21px;
    font-weight: bold;
}

.barre-progression-remplissage-puzzle {
    height: 100%;
    background-color: #a5b66d;
    border-radius: 6px;
    transition: width 1s linear;
}

.consigne-puzzle {
    display: block;
    max-width: 700px;
    margin: 0 auto 20px;
    color: #333333;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.5;
    text-align: center;
}

.modele-puzzle h2 {
    margin-bottom: 15px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    text-align: center;
}

.image-modele-puzzle {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
}

.espace-jeu-puzzle {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    min-height: 1250px;
    margin: 30px auto 0;
    padding: 0;
    overflow: visible;
}

#pieces-puzzle,
.pieces-puzzle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: block;
    width: 100%;
    height: 1200px;
    min-height: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    pointer-events: none;
}

.zone-reconstitution-puzzle {
    position: absolute;
    top: 330px;
    left: 50%;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0;
    text-align: center;
    transform: translateX(-50%);
}

#plateau-puzzle,
.plateau-puzzle {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: #f7f1e5;
    border: 3px solid #8b6f47;
    border-radius: 8px;
    outline: 5px solid #e4dccb;
    outline-offset: 5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

#pieces-puzzle .piece-puzzle {
    position: absolute;
    z-index: 20;
    pointer-events: auto;
}

#pieces-puzzle .piece-active-puzzle {
    z-index: 1000;
}

#pieces-puzzle .piece-correcte-puzzle {
    z-index: 30;
}

.titre-plateau-puzzle {
    position: relative;
    z-index: 2;
    display: block;
    margin: 12px 0 0;
    padding: 0;
    color: #211d19;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.emplacement-puzzle {
    position: absolute;
    box-sizing: border-box;
    border: none;
    background: transparent;
    pointer-events: none;
}

.piece-puzzle {
    position: absolute;
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    transform-origin: center center;
    transition: filter 0.15s ease;
}

.piece-puzzle:hover {
    filter: brightness(1.06);
}

.piece-puzzle:active,
.piece-active-puzzle {
    z-index: 1000;
    cursor: grabbing;
    filter:
        brightness(1.08)
        drop-shadow(0 5px 6px rgba(0, 0, 0, 0.25));
}

.contour-piece-puzzle {
    fill: none;
    stroke: #59452f;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.piece-correcte-puzzle {
    animation: validation-piece-puzzle 0.55s ease;
    filter:
        drop-shadow(0 0 3px rgba(165, 182, 109, 0.95))
        drop-shadow(0 0 8px rgba(165, 182, 109, 0.75));
}

.piece-verrouillee-puzzle {
    cursor: grab;
}

#message-puzzle {
    min-height: 30px;
    margin: 25px auto 20px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
}

.message-succes-puzzle {
    display: block;
    min-height: 25px;
    margin-top: 18px;
    color: #a5b66d;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.fin-puzzle,
.conteneur-fin-puzzle {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 18px auto 0;
    padding: 0 20px 35px;
    box-sizing: border-box;
    text-align: center;
}

.fin-puzzle .message-fin-puzzle {
    margin: 0 auto 22px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
}

.fin-puzzle .instructions-fin-puzzle,
.fin-puzzle .suite-fin-puzzle {
    margin: 0 auto 18px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.fin-puzzle .suite-fin-puzzle {
    max-width: 620px;
}

#bouton-termine-puzzle,
.fin-puzzle .bouton-fin-puzzle {
    display: block;
    width: 230px;
    min-height: 46px;
    margin: 16px auto 0;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

#bouton-termine-puzzle:hover:not(:disabled),
.fin-puzzle .bouton-fin-puzzle:hover:not(:disabled) {
    background: #8d9f58;
}

#bouton-termine-puzzle:disabled,
.fin-puzzle .bouton-fin-puzzle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.image-finale-puzzle {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 8px;
    object-fit: contain;
}

@keyframes validation-piece-puzzle {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    45% {
        transform: scale(1.07);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.piece-finale-puzzle {
    animation: scintillement-puzzle 1s ease-in-out infinite alternate;
    filter:
        drop-shadow(0 0 4px rgba(165, 182, 109, 1))
        drop-shadow(0 0 12px rgba(165, 182, 109, 0.9))
        drop-shadow(0 0 20px rgba(255, 255, 220, 0.8));
}

@keyframes scintillement-puzzle {
    0% {
        opacity: 0.75;
        filter:
            drop-shadow(0 0 3px rgba(165, 182, 109, 0.6));
    }

    50% {
        opacity: 1;
        filter:
            drop-shadow(0 0 8px rgba(165, 182, 109, 1))
            drop-shadow(0 0 18px rgba(255, 255, 220, 0.9));
    }

    100% {
        opacity: 0.85;
        filter:
            drop-shadow(0 0 4px rgba(165, 182, 109, 0.7))
            drop-shadow(0 0 12px rgba(255, 255, 220, 0.7));
    }
}

.indices-aide-mots-croises {
    display: none;
    width: min(100%, 650px);
    margin: 25px auto 20px;
    padding: 18px 22px;
    box-sizing: border-box;

    border-radius: 12px;
    background-color: #f5f1e6;
    border: 1px solid #c8b98a;
}

.indices-aide-mots-croises h3 {
    margin: 0 0 15px;
    text-align: center;

    font-size: 20px;
    color: #6b8e23;
}

.indice-aide-mot {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 10px;
    padding: 8px 10px;

    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.65);
}

.indice-aide-mot:last-child {
    margin-bottom: 0;
}

.indice-aide-numero {
    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background-color: #6b8e23;
    color: white;

    font-weight: bold;
}

.indice-aide-texte {
    line-height: 1.4;
    color: #333;
}

/* =========================================================
   PAGE MOTS CROISÉS
   ========================================================= */

.page-mots-croises {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
}

.logo-mots-croises {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

.titre-mots-croises {
    margin: 0 0 22px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 7vw, 50px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}

body.page-mots-croises-body .consigne-mots-croises {
    display: block;
    max-width: 700px;
    margin: 0 auto 20px;
    color: #333333;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.5;
    text-align: center;
}

body.page-mots-croises-body .conteneur-barre-temps {
    width: 100%;
    max-width: 450px;
    height: 14px;
    margin: 12px auto 16px;
    overflow: hidden;
    border-radius: 7px;
    background-color: #e2dac9;
}

body.page-mots-croises-body #barreTemps {
    width: 0%;
    height: 100%;
    border-radius: 7px;
    background-color: #a3b18b;
    transition: width 1s linear;
}

body.page-mots-croises-body .zone-temps-mots-croises {
    display: block;
    width: 100%;
    margin: 0 auto 25px;
    color: #81401d;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

body.page-mots-croises-body .zone-jeu-mots-croises {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    width: 100%;
}

body.page-mots-croises-body .indices-mots-croises {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    width: 100%;
    max-width: 700px;
}

body.page-mots-croises-body .indice-mot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 60px;
    padding: 5px;
    background: #f1eadb;
    border: 1px solid #d8c8a9;
    border-radius: 8px;
}

body.page-mots-croises-body .indice-mot img {
    display: block !important;
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    flex: 0 0 55px;
    object-fit: contain;
    border-radius: 10px;
}

body.page-mots-croises-body .indice-contenu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    color: #81401d;
    font-family: Arial, sans-serif;
}

body.page-mots-croises-body .indice-numero {
    font-size: 16px;
    font-weight: bold;
}

.plateau-mots-croises {
    width: 100%;
    max-width: 626px;
    margin: 40px auto 25px;
    padding: 45px 25px 20px;
    background-color: #81401d;
    overflow: visible;
}

body.page-mots-croises-body .grille-mots-croises,
body.page-mots-croises-body #grilleMotsCroises {
    display: grid !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

body.page-mots-croises-body .grille-mots-croises .case-grille-vide {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: #81401d !important;
}

body.page-mots-croises-body .grille-mots-croises .case-lettre {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fffdf5 !important;
    border: 1px solid #81401d !important;
    box-sizing: border-box !important;
}

body.page-mots-croises-body .grille-mots-croises .case-lettre input {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: #81401d !important;
    font-family: Arial, sans-serif !important;
    font-size: max(16px, calc(var(--case) * 0.6)) !important;
    font-weight: bold !important;
    text-align: center !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
}

body.page-mots-croises-body .grille-mots-croises .case-lettre.selectionnee,
body.page-mots-croises-body #grilleMotsCroises .case-lettre.selectionnee {
    background: #eee4d5 !important;
}

body.page-mots-croises-body .grille-mots-croises .case-lettre.correcte,
body.page-mots-croises-body #grilleMotsCroises .case-lettre.correcte {
    background: #e5f4e5 !important;
}

body.page-mots-croises-body .grille-mots-croises .case-lettre.incorrecte,
body.page-mots-croises-body #grilleMotsCroises .case-lettre.incorrecte {
    background: #fbe6e6 !important;
}

body.page-mots-croises-body .grille-mots-croises .numero-mot,
body.page-mots-croises-body #grilleMotsCroises .numero-mot {
    position: absolute !important;
    top: 2px !important;
    left: 3px !important;
    z-index: 5 !important;
    color: #81401d !important;
    font-family: Arial, sans-serif !important;
    font-size: max(7px, calc(var(--case) * 0.28)) !important;
    font-weight: bold !important;
    line-height: 1 !important;
    pointer-events: none !important;
}

body.page-mots-croises-body .boutons-mots-croises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

body.page-mots-croises-body .bouton-mots-croises {
    min-height: 50px;
    padding: 12px 25px;
    border: 0;
    border-radius: 10px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.bouton-termine-mots-croises {
    display: block;
    width: 230px;
    margin: 0 auto;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.bouton-termine-mots-croises:hover:not(:disabled) {
    background: #8d9f58;
}

.bouton-termine-mots-croises:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.page-mots-croises-body .message-mots-croises {
    min-height: 25px;
    margin-top: 18px;
    color: #a5b66d;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#suite-jeu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    text-align: center;
}

#suite-jeu p {
    max-width: 600px;
    margin-bottom: 15px;
    color: #333333;
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}


/* =========================================================
   PAGE QUIZ
   ========================================================= */

.page-quiz {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
}

.logo-quiz {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

.titre-quiz {
    margin: 0 0 22px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 7vw, 50px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}

body.page-quiz-body .consigne-quiz {
    display: block;
    max-width: 700px;
    margin: 0 auto 20px;
    color: #333333;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.5;
    text-align: center;
}

body.page-quiz-body .conteneur-barre-temps {
    width: 100%;
    max-width: 450px;
    height: 14px;
    margin: 12px auto 16px;
    overflow: hidden;
    border-radius: 7px;
    background-color: #e2dac9;
}

body.page-quiz-body #barreTemps {
    width: 0%;
    height: 100%;
    border-radius: 7px;
    background-color: #a3b18b;
    transition: width 1s linear;
}

body.page-quiz-body .zone-temps-quiz {
    display: block;
    width: 100%;
    margin: 0 auto 25px;
    color: #81401d;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

body.page-quiz-body .question-quiz {
    margin: 0 0 25px;
    padding: 22px;
    border: 2px solid #d8d1c2;
    border-radius: 12px;
    background-color: #ffffff;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.page-quiz-body .question-quiz h2 {
    margin: 0 0 18px;
    color: #81401d;
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1.4;
}

body.page-quiz-body .reponses-quiz {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.page-quiz-body .reponse-quiz {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 13px 15px;
    border: 2px solid #d8d1c2;
    border-radius: 10px;
    background-color: #ffffff;
    color: #81401d;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

body.page-quiz-body .reponse-quiz:hover {
    border-color: #a5b66d;
    background-color: #f5f7ed;
    transform: translateY(-1px);
}

body.page-quiz-body .reponse-quiz input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.page-quiz-body .reponse-quiz.reponse-selectionnee {
    border-color: #81401d;
    background-color: #eee4d5;
    box-shadow: 0 0 0 2px rgba(129, 64, 29, 0.12);
}

body.page-quiz-body .reponse-quiz.reponse-selectionnee::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    min-width: 23px;
    border-radius: 50%;
    background-color: #81401d;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

body.page-quiz-body .question-quiz textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #cfc6b5;
    border-radius: 8px;
    background-color: #ffffff;
    color: #81401d;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

body.page-quiz-body .aide-question-quiz {
    margin: 0 0 12px;
    color: #6e604f;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.4;
}

body.page-quiz-body .question-quiz.question-correcte {
    border-color: #a5b66d;
    background-color: #e8f5e8;
}

body.page-quiz-body .question-quiz.question-correcte .reponse-quiz {
    border-color: #a5b66d;
}

body.page-quiz-body .question-quiz.question-incorrecte {
    border-color: #c94b4b;
    background-color: #fbeaea;
}

body.page-quiz-body .question-quiz.question-incorrecte .reponse-quiz {
    border-color: #c94b4b;
}

body.page-quiz-body
.question-quiz.question-correcte
.reponse-quiz.reponse-selectionnee {
    border-color: #a5b66d;
    background-color: #e5f4e5;
}

body.page-quiz-body
.question-quiz.question-incorrecte
.reponse-quiz.reponse-selectionnee {
    border-color: #c94b4b;
    background-color: #fbe6e6;
}

body.page-quiz-body
.question-quiz.question-correcte
.reponse-quiz.reponse-selectionnee::before {
    background-color: #a5b66d;
}

body.page-quiz-body
.question-quiz.question-incorrecte
.reponse-quiz.reponse-selectionnee::before {
    background-color: #c94b4b;
}

body.page-quiz-body .actions-quiz {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 20px;
}

body.page-quiz-body .bouton-quiz {
    padding: 13px 24px;
    border: none;
    border-radius: 8px;
    background-color: #a5b66d;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

body.page-quiz-body .bouton-quiz:hover {
    background-color: #663116;
}

body.page-quiz-body .bouton-quiz:disabled {
    opacity: 0.6;
    cursor: default;
}

body.page-quiz-body .message-quiz {
    min-height: 25px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
}

body.page-quiz-body .message-erreur-quiz {
    color: #b33636;
}

body.page-quiz-body .message-attention-quiz {
    color: #81401d;
}


/* =========================================================
   PAGE CHERCHE & TROUVE
   ========================================================= */

.page-cherche-et-trouve {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
}

.logo-cherche-et-trouve {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

.titre-cherche-et-trouve {
    margin: 0 0 22px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 7vw, 50px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}

.zone-temps-cherche-et-trouve {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 570px;
    margin: 0 auto 20px;
}

.zone-temps-cherche-et-trouve .barre-temps-fond {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 20px;
    background: #deded5;
}

.zone-temps-cherche-et-trouve .barre-temps-remplissage {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #a5b66d;
    transition: width 0.1s linear;
}

.zone-temps-cherche-et-trouve .libelle-temps {
    display: block;
    width: 100%;
    margin-top: 10px;
    color: #211d19;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    text-align: center;
}

.zone-temps-cherche-et-trouve .libelle-temps strong {
    color: #81401d;
    font-size: 21px;
}

.consigne-cherche-et-trouve {
    margin: 0 auto 10px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.element-a-trouver {
    margin: 0 auto 18px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.zone-photo-cherche-et-trouve {
    position: relative;
    left: 50%;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: visible;
    text-align: center;
    transform: translateX(-50%);
}

.photo-cherche-et-trouve {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain;
}

.zone-cible {
    position: absolute;
    z-index: 5;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.zone-cible:hover {
    background: transparent;
}

.zone-cible:focus {
    outline: none;
}

.zone-cible:focus-visible {
    outline: 3px solid rgba(165, 182, 109, 0.8);
}

.progression-cherche-et-trouve {
    margin: 12px auto 0;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.message-cherche-et-trouve {
    min-height: 25px;
    margin: 22px auto 15px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.message-cherche-et-trouve.message-succes {
    color: #6f873b;
    font-weight: bold;
}

.message-cherche-et-trouve.message-erreur {
    color: #81401d;
    font-weight: bold;
}

.instructions-progression-cherche-et-trouve {
    max-width: 700px;
    margin: 12px auto;
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.bouton-termine-cherche-et-trouve {
    display: block !important;
    width: 230px;
    margin: 18px auto 0 !important;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.bouton-termine-cherche-et-trouve:hover:not(:disabled) {
    background: #8d9f58;
}

.bouton-termine-cherche-et-trouve:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.page-progression-body {
    margin: 0;
    background: #eef0f2;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
}

body.page-progression-body .page-progression {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
    box-sizing: border-box;
}

body.page-progression-body .logo-progression {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 24px;
}

body.page-progression-body .titre-progression {
    margin: 0 0 22px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 7vw, 50px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}

body.page-progression-body .participant-progression {
    width: 100%;
    max-width: 570px;
    margin: 0 auto 30px;
    text-align: center;
}

body.page-progression-body .participant-progression p {
    margin: 0;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.5;
}

body.page-progression-body .participant-progression p + p {
    margin-top: 5px;
}

body.page-progression-body .participant-progression strong {
    color: #81401d;
    font-weight: bold;
}

body.page-progression-body .progression-globale {
    width: 100%;
    max-width: 570px;
    margin: 0 auto 35px;
    text-align: center;
}

body.page-progression-body .progression-globale h2 {
    margin: 0 0 12px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

body.page-progression-body .nombre-jeux-termines {
    margin: 0 0 12px;
    color: #211d19;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.4;
}

body.page-progression-body .barre-progression-fond {
    width: 100%;
    height: 14px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #deded5;
}

body.page-progression-body .barre-progression-remplissage {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background: #a5b66d;
    transition: width 0.4s ease;
}

body.page-progression-body .liste-jeux-progression {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
}

body.page-progression-body .liste-jeux-progression > h2 {
    margin: 0 0 18px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

body.page-progression-body .jeu-progression {
    width: 100%;
    margin: 0 0 14px;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #d8d1c2;
    border-radius: 10px;
    box-sizing: border-box;
}

body.page-progression-body .jeu-progression-entete {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

body.page-progression-body .jeu-progression-entete h3 {
    flex: 1;
    margin: 0;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
}

body.page-progression-body .statut-jeu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: #a5b66d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

body.page-progression-body .resultat-jeu {
    margin: 6px 0 0 38px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
}

body.page-progression-body .jeu-progression.termine {
    border-color: #a5b66d;
    background: #f5f8ec;
}

body.page-progression-body .jeu-progression.termine .statut-jeu {
    color: #6f873b;
}

body.page-progression-body .jeu-progression.termine .resultat-jeu {
    color: #6f873b;
    font-weight: bold;
}

body.page-progression-body .message-fin-progression {
    width: 100%;
    max-width: 570px;
    margin: 30px auto 25px;
    padding: 22px 20px;
    background: #f1eadb;
    border: 2px solid #a5b66d;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
}

body.page-progression-body .message-fin-progression h2 {
    margin: 0 0 10px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

body.page-progression-body .message-fin-progression p {
    margin: 0;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.5;
}

body.page-progression-body .actions-progression {
    width: 100%;
    margin: 30px auto 0;
    text-align: center;
}

body.page-progression-body .bouton-progression {
    display: block;
    width: 230px;
    min-height: 46px;
    margin: 0 auto;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

body.page-progression-body .bouton-progression:hover {
    background: #8d9f58;
}

body.page-progression-body [hidden] {
    display: none !important;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {
    body.page-progression-body .page-progression {
        padding: 25px 18px 40px;
    }

    body.page-progression-body .logo-progression {
        width: 220px;
        max-width: 80%;
        margin-bottom: 22px;
    }

    body.page-progression-body .titre-progression {
        font-size: 2.1rem;
        margin-bottom: 22px;
    }

    body.page-progression-body .participant-progression {
        margin-bottom: 28px;
    }

    body.page-progression-body .participant-progression p {
        font-size: 16px;
    }

    body.page-progression-body .progression-globale {
        margin-bottom: 30px;
    }

    body.page-progression-body .progression-globale h2,
    body.page-progression-body .liste-jeux-progression > h2 {
        font-size: 19px;
    }

    body.page-progression-body .nombre-jeux-termines {
        font-size: 16px;
    }

    body.page-progression-body .jeu-progression {
        padding: 14px;
        margin-bottom: 11px;
    }

    body.page-progression-body .jeu-progression-entete h3 {
        font-size: 15px;
    }

    body.page-progression-body .statut-jeu {
        width: 25px;
        height: 25px;
        font-size: 22px;
    }

    body.page-progression-body .resultat-jeu {
        margin-left: 34px;
        font-size: 15px;
    }

    body.page-progression-body .message-fin-progression {
        padding: 20px 15px;
    }

    body.page-progression-body .message-fin-progression h2 {
        font-size: 21px;
    }

    body.page-progression-body .message-fin-progression p {
        font-size: 16px;
    }

    body.page-progression-body .bouton-progression {
        width: 220px;
    }
}

.page-fin {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-fin {
    display: block;
    width: 245px;
    max-width: 75%;
    height: auto;
    margin: 0 auto 30px;
}

.bloc-fin {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    padding: 35px 30px 40px;
    background: #f8f6ef;
    border: 2px solid #a5b66d;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
}

.icone-fin {
    margin: 0 0 15px;
    color: #a5b66d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 52px;
    line-height: 1;
}

.bloc-fin h1 {
    margin: 0 0 18px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 7vw, 52px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.bloc-fin h2 {
    max-width: 500px;
    margin: 0 auto 28px;
    color: #81401d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
}

.message-fin-principal {
    margin: 0 0 10px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
}

.message-fin-secondaire {
    margin: 0 0 25px;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.5;
}

.bloc-tirage {
    width: 100%;
    margin: 25px auto;
    padding: 20px;
    background: #f1eadb;
    border: 1px solid #d8c8a9;
    border-radius: 10px;
    box-sizing: border-box;
}

.bloc-tirage h3 {
    margin: 0 0 12px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
}

.bloc-tirage p {
    margin: 8px 0;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
}

.recap-participant {
    width: 100%;
    margin: 25px auto;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #d8d1c2;
    border-radius: 10px;
    box-sizing: border-box;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
}

.recap-participant p {
    margin: 7px 0;
}

.recap-participant span {
    margin-left: 4px;
}

.bouton-fin {
    display: block;
    width: 230px;
    min-height: 46px;
    margin: 28px auto 0;
    padding: 15px 20px;
    border: none;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.bouton-fin:hover {
    background: #8d9f58;
}


/* =====================================================
   VERSION MOBILE
   ===================================================== */

@media (max-width: 600px) {
    .page-fin {
        padding: 25px 18px 40px;
    }

    .logo-fin {
        width: 220px;
        max-width: 80%;
        margin-bottom: 25px;
    }

    .bloc-fin {
        padding: 30px 18px 35px;
    }

    .icone-fin {
        font-size: 45px;
    }

    .bloc-fin h1 {
        font-size: 2.1rem;
        margin-bottom: 16px;
    }

    .bloc-fin h2 {
        font-size: 19px;
        margin-bottom: 24px;
    }

    .message-fin-principal {
        font-size: 17px;
    }

    .message-fin-secondaire {
        font-size: 16px;
    }

    .bloc-tirage {
        padding: 18px 15px;
    }

    .bloc-tirage h3 {
        font-size: 19px;
    }

    .bloc-tirage p {
        font-size: 15px;
    }

    .recap-participant {
        padding: 16px 12px;
        font-size: 15px;
    }

    .bouton-fin {
        width: 220px;
    }
}
/* ===== Responsive : grille des mots croisés =====
   --case = taille d'une case, calculée pour que les 16 colonnes tiennent
   dans l'écran (36 px maximum, comme la maquette d'origine). */
.plateau-mots-croises {
    --case: min(36px, calc((min(100vw, 700px) - 106px) / 16));
}

@media (max-width: 600px) {
    /* Sur téléphone, le plateau marron va jusqu'aux bords de l'écran
       pour laisser un maximum de place aux cases. */
    .plateau-mots-croises {
        --case: min(36px, calc((100vw - 16px) / 16));
        width: calc(100% + 56px);
        max-width: none;
        margin: 30px -28px 25px;
        padding: 30px 8px 12px;
    }
}

/* ===== Responsive : cherche et trouve =====
   Le cadre a toujours exactement la taille de la photo (4:5), sinon les
   zones à toucher (en % du cadre) ne tombent plus sur les bons objets.
   56vh = 70vh x 4/5 : la photo tient en hauteur dans l'écran. */
.zone-photo-cherche-et-trouve {
    width: min(100%, 600px, 56vh);
}

.photo-cherche-et-trouve {
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* ===== Inscription : code de participation / reprise de partie ===== */
#formulaire-inscription [hidden] {
    display: none;
}

#formulaire-inscription #code-participation {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#formulaire-inscription .bouton-formulaire:disabled {
    opacity: 0.6;
    cursor: wait;
}

.message-formulaire {
    margin: 20px 0 0;
    padding: 12px 14px;
    border-left: 4px solid #81401d;
    border-radius: 6px;
    background: #f1ede2;
    color: #81401d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.5;
}

.lien-mode {
    margin: 26px 0 0;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.lien-mode a {
    color: #81401d;
    font-weight: bold;
}

/* Bandeau affiché si l'e-mail avait déjà un compte (inscription hors ligne) */
.bandeau-code {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 12px 16px;
    background: #81401d;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.bandeau-code a {
    color: #ffffff;
    font-weight: bold;
}

/* =========================================================
   PAGES LÉGALES (règlement, données personnelles)
   ========================================================= */
.page-legale {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 28px 45px;
    background: #f8f6ef;
    box-sizing: border-box;
    color: #211d19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.65;
}

.page-legale .logo-legale {
    display: block;
    width: 245px;
    max-width: 75%;
    margin: 0 auto 22px;
}

.page-legale h1 {
    margin: 0 0 6px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 7vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.page-legale .sous-titre-legal {
    margin: 0 0 30px;
    color: #6d655d;
    font-size: 15px;
    text-align: center;
}

.page-legale h2 {
    margin: 32px 0 10px;
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1.3;
}

.page-legale p,
.page-legale li {
    margin: 0 0 12px;
}

.page-legale ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.page-legale a {
    color: #81401d;
    font-weight: bold;
}

.page-legale table {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
    font-size: 15px;
}

.page-legale th,
.page-legale td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2ddd0;
    text-align: left;
    vertical-align: top;
}

.page-legale th {
    color: #81401d;
    font-family: Arial, Helvetica, sans-serif;
}

.page-legale .encadre-legal {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid #a5b66d;
    border-radius: 6px;
    background: #f1ede2;
}

/* Informations à confirmer par l'organisateur avant la mise en ligne */
.a-completer {
    padding: 0 3px;
    border-radius: 3px;
    background: #ffe36e;
    color: #211d19;
}

.page-legale .retour-legal {
    display: block;
    width: fit-content;
    margin: 36px auto 0;
    padding: 14px 26px;
    border-radius: 11px;
    background: #a5b66d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

/* Liens légaux en bas de l'accueil */
.liens-legaux {
    margin: 26px 0 0;
    color: #6d655d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.liens-legaux a {
    color: #81401d;
}

.mention-sante {
    margin: 10px 0 0;
    color: #6d655d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: center;
}

#formulaire-inscription .case-consentement a {
    color: #81401d;
    font-weight: bold;
}

/* Case facultative (accord pour recevoir des e-mails), sous la case du règlement */
#formulaire-inscription .case-facultative {
    margin-top: 14px;
}

#formulaire-inscription #lien-code-oublie {
    display: inline-block;
    padding: 6px 0;
    color: #81401d;
    font-weight: bold;
}

/* Pied de page légal (toutes les pages), dans le prolongement de la colonne */
.pied-legal {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 6px 28px 30px;
    background: #f8f6ef;
    box-sizing: border-box;
}

.pied-legal .liens-legaux {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid #e2ddd0;
}

/* Logo cliquable : retour à l'accueil (le lien occupe toute la largeur,
   le logo garde sa taille et sa position d'origine) */
.lien-logo {
    display: block;
    width: 100%;
    text-decoration: none;
}
