/*
Theme Name: Corvus
Theme URI: https://example.com/
Author: Corvus
Description: Thème WordPress personnalisé pour la page d'accueil Enquête de CORVUS.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Arbutus&family=Jim+Nightshade&family=Special+Elite&display=swap');


/* ========================================
   RÉGLAGES GÉNÉRAUX
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #171717;
    background: #fff;
    font-family: 'Special Elite', Georgia, "Times New Roman", serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* ========================================
   PAGE D'ACCUEIL
======================================== */

.corvus-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;

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

    color: #fff;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.55)
        ),
        url("img/Pageaccueil.png") center center / cover no-repeat;
}


/* Tableau d'enquête */

.corvus-board {
    position: absolute;
    z-index: -1;
    width: min(63vw, 790px);
    height: 365px;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid #17272a;
    border-radius: 3px;

    background:
        repeating-linear-gradient(
            7deg,
            transparent 0 28px,
            rgba(255,255,255,.035) 29px 30px
        ),
        linear-gradient(135deg, #65472f, #b68c60 45%, #4b3427);

    box-shadow: 0 0 0 2px #29393b, 0 25px 45px #0009;
}

.corvus-board::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            30deg,
            transparent 49.7%,
            #a52c20 49.9%,
            #a52c20 50.4%,
            transparent 50.6%
        ),
        linear-gradient(
            145deg,
            transparent 48.8%,
            #a52c20 49%,
            #a52c20 49.5%,
            transparent 49.7%
        ),
        linear-gradient(
            72deg,
            transparent 54%,
            #a52c20 54.2%,
            #a52c20 54.6%,
            transparent 54.8%
        );

    opacity: .8;
}


/* Documents sur le tableau */

.corvus-paper {
    position: absolute;
    width: 95px;
    min-height: 65px;
    padding: 9px 6px;
    color: #26231f;
    background: #d5d0bd;
    border: 1px solid #8b8778;
    box-shadow: 2px 4px 8px #0006;

    font: 11px/1.2 Georgia, serif;
    text-align: center;

    transform: rotate(var(--r, -5deg));
}

.corvus-paper:nth-child(1) {
    top: 20px;
    left: 4%;
    --r: -8deg;
}

.corvus-paper:nth-child(2) {
    top: 25px;
    left: 26%;
    --r: 5deg;
}

.corvus-paper:nth-child(3) {
    top: 17px;
    left: 49%;
    --r: -4deg;
}

.corvus-paper:nth-child(4) {
    top: 28px;
    right: 5%;
    --r: 8deg;
}

.corvus-paper:nth-child(5) {
    top: 145px;
    left: 7%;
    --r: 6deg;
}

.corvus-paper:nth-child(6) {
    top: 155px;
    left: 38%;
    --r: -3deg;
}

.corvus-paper:nth-child(7) {
    top: 148px;
    right: 8%;
    --r: 5deg;
}

.corvus-paper:nth-child(8) {
    bottom: 18px;
    left: 18%;
    --r: -7deg;
}

.corvus-paper:nth-child(9) {
    bottom: 22px;
    right: 20%;
    --r: 4deg;
}


/* Silhouette du détective d'origine */

.corvus-detective {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 365px;

    background: linear-gradient(
        90deg,
        #050b0d,
        #1b2426 48%,
        #070d0f
    );

    clip-path: polygon(
        38% 0,
        62% 0,
        76% 12%,
        86% 44%,
        100% 100%,
        0 100%,
        14% 44%,
        24% 12%
    );
}

.corvus-detective::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 48px;
    width: 64px;
    height: 72px;
    border-radius: 48% 48% 42% 42%;
    background: #080d0f;
}


/* Logo */

.corvus-brand {
    position: absolute;
    top: 14px;
    left: 20px;
    width: 87px;
    height: 87px;

    display: grid;
    place-content: center;

    text-align: center;
    color: #fff;
    background: #3f70b8;
    border: 2px solid #dbe5f4;

    font: bold 11px Arial, sans-serif;
    letter-spacing: 1px;
}

.corvus-brand span {
    font-size: 22px;
}


/* ========================================
   TITRE ET BOUTON
======================================== */

.corvus-hero-content {
    position: relative;
    z-index: 3;

    width: min(90%, 760px);
    margin-top: 10px;

    text-align: center;
    text-shadow: 0 2px 5px #000;
}

.corvus-hero h1 {
    margin: 0 0 14px;

    font-family: 'Arbutus', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: .5px;

    text-shadow: 2px 3px 0 #111, -1px -1px 0 #111;
}

.corvus-subtitle {
    margin: 0;
	font-family: 'Special Elite', serif;
  	font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: normal;
}

.corvus-learn {
    display: inline-block;
    margin-top: 25px;
    padding: 11px 22px;

    border-radius: 24px;

    color: #171717;
    background: #eee;

    text-decoration: none;
    font-size: 13px;
    text-shadow: none;

    transition: transform .2s, background .2s;
}

.corvus-learn:hover {
    transform: translateY(-2px);
    background: #fff;
}


/* ========================================
   BULLE DE DIALOGUE
======================================== */

.corvus-speech {
    position: absolute;
    z-index: 5;

    left: 45%;
    bottom:135px;

    width: min(57%, 550px);
    padding: 30px 24px;

    border-radius: 30px;

    color: #181818;
    background: #fff;

    text-align: center;
    font-size: 15px;
    line-height: 1.35;

    box-shadow: 0 4px 18px #0002;
}

/* Pointe de la bulle */

.corvus-speech::after {
    content: "";
    position: absolute;
    right: -170px;
    top: 40px;

    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 180px solid #fff;
}


/* ========================================
   MASCOTTE CORVUS — IMAGE DOC.PNG
======================================== */

/* Le robot est une image dans le HTML :
   on conserve son positionnement sans afficher
   les anciennes pièces du robot CSS. */

.corvus-robot {
    position: absolute;
    z-index: 4;

    right: 2.5%;
    bottom: 0;

    width: clamp(115px, 16vw, 220px);
    height: auto;

    text-align: center;
    filter: drop-shadow(0 4px 4px #0008);
}

.corvus-robot-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Masque les éléments de l'ancien robot CSS */

.corvus-hat,
.corvus-robot-head,
.corvus-eye,
.corvus-moustache,
.corvus-robot-body {
    display: none;
}


/* ========================================
   RÈGLES DU JEU
======================================== */

.corvus-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 5% 50px;
}

.corvus-main h2 {
    margin: 0 0 14px;
    text-align: center;
    font-family: 'Arbutus', cursive;
    font-size: 2rem;
}

.corvus-main h3 {
    margin: 18px 0 4px;
    font-family: 'Arbutus', cursive;
    font-size: 1.12rem;
}

.corvus-main p {
    margin: 4px 0;
    line-height: 1.16;
}

.corvus-rules {
    font-size: 14px;
}


/* ===== SECTION INSCRIPTION CORVUS ===== */

.corvus-signup-area {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 50px;
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

/* Partie gauche : message et Glitch */

.corvus-character-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.corvus-message {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 24px 30px;
    box-sizing: border-box;
    border-radius: 65px;
    background-color: #f0f0f0;
    color: #111;
    font-size: 15px;
    line-height: 1.25;
}

.corvus-message::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 60px;
    width: 0;
    height: 0;
    border-top: 35px solid #f0f0f0;
    border-right: 45px solid transparent;
}

.corvus-robot2 {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-top: 25px;
}

.corvus-robot-image2 {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Partie droite : formulaire */

.corvus-signup-form {
    width: 100%;
    max-width: 530px;
    justify-self: center;
    padding: 30px 55px 18px;
    box-sizing: border-box;
    border-radius: 42px;
    background-color: #67bce0;
    color: #071d2a;
}

.corvus-signup-form h2 {
    color: #071d2a;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: normal;
    text-align: center;
}

.corvus-form-group {
    margin-bottom: 20px;
}

.corvus-form-group label {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #071d2a;
}

.corvus-form-group label span,
.corvus-required span {
    color: #f00000;
    font-weight: bold;
}

.corvus-form-group input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    box-sizing: border-box;
    border: none;
    border-radius: 30px;
    background: #fff;
    color: #111;
    font-size: 16px;
    outline: none;
}

.corvus-form-group input:focus {
    box-shadow: 0 0 0 3px rgba(40, 20, 190, 0.25);
}

.corvus-required {
    margin: 44px 0 40px;
    font-size: 11px;
    color: #071d2a;
}

.corvus-submit {
    display: block;
    min-width: 145px;
    margin: 0 auto;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    background-color: #2100bd;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.corvus-submit:hover {
    background-color: #160080;
    transform: translateY(-2px);
}

/* Adaptation aux écrans plus petits */

@media (max-width: 900px) {
    .corvus-signup-area {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 30px 20px;
    }

    .corvus-character-message {
        align-items: center;
    }

    .corvus-message {
        max-width: 530px;
        font-size: 22px;
    }

    .corvus-robot2 {
        align-self: flex-start;
        margin-left: 10px;
    }

    .corvus-signup-form {
        max-width: 530px;
        padding: 35px 35px 25px;
    }
}

@media (max-width: 480px) {
    .corvus-message {
        padding: 24px;
        border-radius: 38px;
        font-size: 19px;
    }

    .corvus-signup-form {
        padding: 30px 22px;
        border-radius: 30px;
    }

    .corvus-signup-form h2 {
        margin-bottom: 35px;
    }

    .corvus-form-group label {
        margin-bottom: 12px;
    }

    .corvus-required {
        margin: 30px 0;
    }
}
/* ========================================
   ADAPTATION MOBILE
======================================== */

@media (max-width: 700px) {

    .corvus-hero {
        min-height: 100vh;
        min-height: 100svh;

        align-items: flex-start;
        background-position: center center;
    }

    .corvus-board {
        top: 95px;
        width: 92%;
        height: 300px;
    }

    .corvus-paper {
        width: 66px;
        min-height: 48px;
        padding: 5px 3px;
        font-size: 8px;
    }

    .corvus-detective {
        height: 350px;
        width: 130px;
    }

    .corvus-brand {
        top: 12px;
        left: 12px;
        width: 68px;
        height: 68px;
        font-size: 8px;
    }

    .corvus-brand span {
        font-size: 17px;
    }

    .corvus-hero-content {
        margin-top: 205px;
        width: 92%;
        align-self: flex-start;
    }

    .corvus-hero h1 {
        font-size: 2rem;
    }

    .corvus-subtitle {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .corvus-speech {
        left: 5%;
        bottom: 55px;
        width: 78%;
        padding: 20px 16px;
        font-size: 13px;
    }

    .corvus-speech::after {
        display: none;
    }

    .corvus-robot {
        right: 1%;
        bottom: 0;
        width: 115px;
        transform: none;
    }

    .corvus-main {
        padding: 18px 6% 35px;
    }

    .corvus-main h2 {
        font-size: 1.7rem;
    }

    .corvus-signup-area {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .corvus-message {
        width: 100%;
        font-size: 16px;
    }

    .corvus-signup {
        padding: 25px 8%;
    }
}


/* ========================================
   PETITS ÉCRANS
======================================== */

@media (max-width: 380px) {

    .corvus-hero-content {
        margin-top: 185px;
    }

    .corvus-hero h1 {
        font-size: 1.75rem;
    }

    .corvus-subtitle {
        font-size: 1.35rem;
    }

    .corvus-speech {
        left: 4%;
        bottom: 45px;
        width: 76%;
        padding: 14px 12px;
        font-size: 11px;
    }

    .corvus-robot {
        width: 95px;
    }

    .corvus-signup {
        padding: 22px 6%;
    }
}


/* ========================================
   INSCRIPTION : BULLE, GLITCH ET FORMULAIRE
======================================== */

.corvus-signup-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 35px;
}

/* Regroupe la bulle et Glitch dans la colonne de gauche */
.corvus-character-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

/* Bulle de dialogue */
.corvus-character-message .corvus-message {
    position: relative;
    width: 100%;
    max-width: 490px;
    margin: 0;
    justify-self: auto;
}

/* Pointe dirigée vers Glitch */
.corvus-character-message .corvus-message::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 13%;
    width: 0;
    height: 0;
    border-top: 28px solid #f0f0f0;
    border-right: 0;
    border-left: 35px solid transparent;
}

/* Glitch placé sous la pointe */
.corvus-robot2 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    padding-left: 8%;
    position: relative;
    z-index: 2;
}

.corvus-robot-image2 {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

/* Formulaire à droite */
.corvus-signup {
    width: 100%;
    max-width: 440px;
    min-width: 0;
    justify-self: center;
    box-sizing: border-box;
}

/* Adaptation mobile */
@media (max-width: 700px) {
    .corvus-signup-area {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .corvus-character-message {
        grid-column: 1;
    }

    .corvus-character-message .corvus-message {
        max-width: 490px;
    }

    .corvus-robot2 {
        max-width: 490px;
        padding-left: 8%;
    }

    .corvus-robot-image2 {
        width: 150px;
    }

    .corvus-signup {
        grid-column: 1;
        max-width: 440px;
    }
}




/* ========================================
   PAGE PLAN — THÈME CORVUS
   Image Polaroid en fond plein écran
======================================== */

/* Conteneur général */
.corvus-plan-page {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fond plein écran */
.corvus-plan-board {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    margin: 0;
    padding: 60px 25px;

    box-sizing: border-box;

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

    background-image: var(--corvus-plan-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;

    overflow: hidden;
}

/* Voile léger pour rendre le texte lisible */
.corvus-plan-board::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: rgba(20, 15, 10, 0.25);

    pointer-events: none;
}

/* Panneau contenant le texte et les étapes */

.corvus-plan-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 950px;
margin-bottom : 100px; 
    padding: 40px;

    box-sizing: border-box;

    /* Fond blanc très transparent */
    background: rgba(255, 255, 255, 0.20);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}


/* ========================================
   TITRE ET INTRODUCTION
======================================== */

.corvus-plan-header {
    text-align: center;
}

.corvus-plan-header h1 {
    margin: 0 0 18px;

    font-size: 30px;
    line-height: 1.2;

    color: #202020;
}

.corvus-plan-header p {
    max-width: 700px;
    margin: 0 auto;

    font-size: 16px;
    line-height: 1.8;

    color: #38332e;
}

/* ========================================
   GRILLE DES ÉTAPES
======================================== */

.corvus-plan-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    align-items: start;
    justify-items: center;

    width: 80%;
    margin: 0px auto;
}

/* Chaque étape */
.corvus-plan-step {
    display: flex;
    flex-direction: column;
    align-items: center;
margin-bottom: 15px; 
    width: 100%;
    text-align: center;
}

/* Cercles des étapes */
.corvus-plan-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 66px;

    box-sizing: border-box;
    border-radius: 50%;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Étape disponible */
.corvus-plan-circle.is-current {
    background: #252525;
    color: #fff;

    border: 3px solid #252525;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Étapes verrouillées */
.corvus-plan-circle.is-locked {
    background: rgba(232, 232, 232, 0.95);
    color: #666;

    border: 2px solid #bcbcbc;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Numéro */
.corvus-plan-number {
    font-size: 25px;
    font-weight: 700;
}

/* Icône cadenas */
.corvus-plan-lock {
    display: block;
    width: 27px;
    height: 27px;
}

/* Libellés */
.corvus-plan-step-label {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 5px;

    margin: 12px 0 0;

    font-size: 14px;
    line-height: 1.5;

    color: #302b26;
}

.corvus-plan-step-label span {
    font-weight: 700;
}

/* ========================================
   MESSAGE DE MISSION
======================================== */

.corvus-plan-message {
    margin-top: 35px;
    padding-top: 20px;

    text-align: center;

    border-top: 1px solid rgba(50, 40, 30, 0.2);
}

.corvus-plan-message p {
    margin: 8px 0;

    color: #38332e;
    font-size: 14px;
    line-height: 1.7;
}

.corvus-plan-message strong {
    letter-spacing: 2px;
    font-size: 12px;
}

/* ========================================
   TABLETTES
======================================== */

@media (max-width: 900px) {
    .corvus-plan-board {
        padding: 40px 20px;
    }

    .corvus-plan-panel {
        max-width: 750px;
        padding: 30px 25px;
    }

    .corvus-plan-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 15px;
    }
}

/* ========================================
   MOBILES
======================================== */

@media (max-width: 600px) {
    .corvus-plan-board {
        min-height: 100vh;
        min-height: 100svh;

        padding: 25px 12px;

        align-items: flex-start;
        background-position: center center;
    }

    .corvus-plan-panel {
        padding: 25px 15px;

        background: rgba(255, 255, 255, 0.92);
        border-radius: 6px;
    }

    .corvus-plan-header {
        margin-bottom: 28px;
    }

    .corvus-plan-header h1 {
        font-size: 28px;
    }

    .corvus-plan-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    .corvus-plan-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 25px 10px;
        margin: 25px auto;
    }

    .corvus-plan-circle {
        width: 56px;
        height: 56px;
    }

    .corvus-plan-number {
        font-size: 22px;
    }

    .corvus-plan-lock {
        width: 24px;
        height: 24px;
    }

    .corvus-plan-step-label {
        font-size: 13px;
    }

    .corvus-plan-message {
        margin-top: 25px;
    }
}







/* =========================================
   CORVUS - MODÈLE COMMUN DES ÉNIGMES
========================================= */

.corvus-game-page {
    font-family: Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
}

/* BARRE SUPÉRIEURE ET PROGRESSION (8 ÉTAPES) */

.corvus-game-header {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 76px;
    padding: 10px 28px;
    background: #b7b5b5;
}

.corvus-game-logo {
    flex: 0 0 auto;
}

.corvus-game-logo img {
    display: block;
    width: 64px;
    height: auto;
}

.corvus-progress {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    flex: 1 1 auto;
    max-width: 820px;
    min-width: 0;
    margin: 0 auto;
    min-height: 44px;
}

/* La ligne relie le centre des premier et dernier cercles. */
.corvus-progress::before,
.corvus-progress::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 6.25%;
    height: 3px;
    transform: translateY(-50%);
    z-index: -1;
}

.corvus-progress::before {
    right: 6.25%;
    background: #2100ad;
}

/* La fraction correspond aux étapes déjà validées (0 à 7). */
.corvus-progress::after {
    width: var(--corvus-progress-width, 0%);
    background: #ffa638;
}

.corvus-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2100ad;
    color: white;
    font: bold 13px Arial, sans-serif;
}

.corvus-progress-step.completed {
    background: #ffa638;
    color: #171717;
}

.corvus-progress-step.current {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.corvus-progress-step.locked {
    background: #2100ad;
}

/* MISE EN PAGE PRINCIPALE */

.corvus-game-layout {
    display: grid;
    grid-template-columns: 57% 43%;
    min-height: calc(100vh - 76px);
}

/* IMAGE */

.corvus-game-visual {
    min-height: 550px;
    background: #ececec;
    overflow: hidden;
}

.corvus-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENU DROIT */

.corvus-game-content {
    display: flex;
    flex-direction: column;
    padding: 44px 30px 26px;
    gap: 28px;
}

.corvus-game-counter {
    font-size: 16px;
    margin: 0;
}

.corvus-game-title {
    font-family: "Courier New", monospace;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
    color: #080808;
}

.corvus-game-description {
    font-size: 17px;
    line-height: 1.45;
}

.corvus-game-description p {
    margin: 0;
}

/* BOUTON PRINCIPAL */

.corvus-game-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 82px;
    padding: 16px;
    background: #ffa638;
    color: #111;
    border-radius: 10px;
    font-size: clamp(18px, 2vw, 26px);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.corvus-game-launch:hover {
    background: #f39420;
    color: #111;
}

/* INDICE DE DOC */

.corvus-game-hint {
    border: 1px solid #444;
    border-radius: 11px;
    padding: 18px 24px;
    font-size: 16px;
}

.corvus-game-hint-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.corvus-game-hint p {
    margin: 0 0 0 24px;
    line-height: 1.45;
}

/* RETOUR AU PLAN */

.corvus-game-back {
    display: block;
    margin-top: auto;
    margin-left: auto;
    min-width: 260px;
    padding: 13px 28px;
    background: #2100ad;
    color: white;
    border-radius: 10px;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
}

.corvus-game-back:hover {
    background: #310bd4;
    color: white;
}

/* VERSION TABLETTE ET MOBILE */

@media (max-width: 900px) {

    .corvus-game-header {
        gap: 15px;
        padding: 12px;
    }

    .corvus-game-layout {
        grid-template-columns: 1fr;
    }

    .corvus-game-visual {
        min-height: 300px;
        max-height: 420px;
    }

    .corvus-game-content {
        padding: 28px 20px;
    }

    .corvus-game-back {
        margin-top: 20px;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {

    .corvus-game-logo img {
        width: 42px;
    }

    .corvus-game-header {
        gap: 8px;
    }

    .corvus-game-title {
        font-size: 30px;
    }

    .corvus-game-launch {
        min-height: 65px;
    }
}



/* ========================================
   CORVUS - PLAN INTERACTIF
======================================== */

/* Étape terminée */

.corvus-plan-circle.is-finished {
    background: #ffa638;
    border: 3px solid #ffa638;
    color: #171717;
}

.corvus-plan-check {
    font-size: 30px;
    font-weight: bold;
}

/* Étape en cours */

a.corvus-plan-circle.is-current {
    text-decoration: none;
    cursor: pointer;
}

a.corvus-plan-circle.is-current:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(255, 166, 56, 0.35);
}

a.corvus-plan-circle.is-current:focus-visible {
    outline: 3px solid #ffa638;
    outline-offset: 4px;
}

/* Étape verrouillée */

.corvus-plan-circle.is-locked {
    cursor: not-allowed;
}

/* Affichage du statut */

.corvus-plan-step-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.corvus-plan-status {
    font-size: 13px;
}

/* Bouton de fin */

.corvus-plan-finish {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 26px;
    background: #2100bd;
    color: white;
    border-radius: 12px;
    text-decoration: none;
}

.corvus-plan-finish:hover {
    background: #160080;
    color: white;
}


/* Barre de progression : écrans étroits */
@media (max-width: 700px) {
    .corvus-game-header {
        gap: 12px;
        padding: 12px;
    }

    .corvus-game-logo img {
        width: 42px;
    }

    .corvus-progress {
        min-height: 34px;
    }

    .corvus-progress-step {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .corvus-progress-step {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}




/* ========================================
   CORVUS - PAGE D'ACTIVITÉ
======================================== */

.corvus-activity-page {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f0f0f0;
    font-family: Arial, sans-serif;
}

.corvus-activity-card {
    width: 100%;
    max-width: 660px;
    padding: 45px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.corvus-activity-step {
    margin: 0 0 15px;
    color: #2100ad;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

.corvus-activity-card h1 {
    margin: 0 0 15px;
    font-size: clamp(25px, 4vw, 36px);
    color: #171717;
}

.corvus-activity-intro {
    color: #555;
    line-height: 1.6;
}

.corvus-activity-question {
    margin: 30px 0;
    padding: 25px;
    background: #f6f3ff;
    border-left: 5px solid #2100ad;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
}

.corvus-activity-question p {
    margin: 0;
}

.corvus-activity-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.corvus-activity-form label {
    font-weight: bold;
}

.corvus-activity-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #aaa;
    border-radius: 8px;
    font-size: 18px;
}

.corvus-activity-form button {
    margin-top: 10px;
    padding: 18px;
    border: none;
    border-radius: 10px;
    background: #ffa638;
    color: #171717;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.corvus-activity-form button:hover {
    background: #f39420;
}

.corvus-activity-error {
    color: #b00020;
    font-weight: bold;
}

.corvus-activity-back {
    display: inline-block;
    margin-top: 30px;
    color: #2100ad;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 600px) {
    .corvus-activity-card {
        padding: 25px;
    }
}


/* IMAGE DE L'ACTIVITÉ */

.corvus-activity-visual {
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.corvus-activity-image {
    display: block;
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

/* BOUTON RETOUR AU PLAN */

.corvus-activity-plan {
    display: block;
    margin-top: 20px;
    padding: 13px 20px;
    background: #2100ad;
    color: white;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.corvus-activity-plan:hover {
    background: #310bd4;
    color: white;
}