/* ===== STRUCTURE GLOBALE ===== */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #222;
}

/* ----- HEADER ----- */
.jc-header {
    background: #f04f9a;
    color: #fff;
    padding: 10px 20px;
}
.jc-header-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}
.jc-header-img {
    height: 100px;
    border-radius: 8px;
}
.jc-header-text h1 {
    margin: 0;
    font-size: 1.6rem;
}
.jc-header-text p {
    margin: 4px 0 0;
}

/* ----- MAIN ----- */
.jc-main {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px 40px;
}

/* ----- FOOTER ----- */
.jc-footer {
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    color: #666;
}

/* ===== CARTES ===== */
.jc-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.jc-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.jc-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* ===== SECTIONS CONDITIONS ===== */
.jc-conditions {
    margin-top: 30px;
}
.jc-conditions h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}
.jc-conditions h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ===== ACCORDÉONS (DETAILS / SUMMARY) ===== */
.jc-conditions details {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.jc-conditions summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.jc-conditions summary::-webkit-details-marker {
    display: none;
}

.jc-conditions summary::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: #f04f9a;
}

.jc-conditions details[open] summary::after {
    content: "−";
}

.jc-conditions details p,
.jc-conditions details ul {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* ===== LISTES LOTS & RÈGLES ===== */
.jc-lots,
.jc-rules {
    padding-left: 18px;
    margin: 10px 0;
}
.jc-lots li,
.jc-rules li {
    margin-bottom: 10px;
}

/* ===== FORMULAIRE ===== */
.jc-form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.jc-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.jc-form input[type="text"],
.jc-form input[type="email"],
.jc-form select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border-radius: 6px;
    border: 2px solid #ddd;
    box-sizing: border-box;
}

.jc-form input:focus,
.jc-form select:focus {
    border-color: #f04f9a;
    outline: none;
}

.jc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== CHECKBOX ===== */
.jc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.jc-checkbox input {
    margin-top: 3px;
}

/* ===== BOUTON ===== */
.jc-btn {
    background: #f04f9a;
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}
.jc-btn:hover {
    background: #d53f86;
	 text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
}

/* ===== ALERTES ===== */
.jc-alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.92rem;
}
.jc-alert-error {
    background: #ffe5e5;
    color: #a30000;
}
.jc-alert-success {
    background: #e3ffe7;
    color: #006622;
}

/* ===== GRATTAGE ===== */
.ticket-container {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}
.ticket-bg {
    width: 100%;
}
#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
}
#gain-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    text-align: center;
    font-size: 0.9rem;
    color: #000;
    pointer-events: none;
}
.jc-grattage-section {
    text-align: center;
}
.jc-note {
    margin-top: 15px;
    font-size: 0.9rem;
}
/* ===== LIENS – CONDITIONS GÉNÉRALES (PC UNIQUEMENT) ===== */
@media (hover: hover) and (pointer: fine) {

    .jc-form a,
    .jc-conditions a {
        color: #f04f9a;
        text-decoration: none;
        font-weight: 500;
    }

    .jc-form a:hover,
    .jc-conditions a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
}


/* ===== MOBILE – ERGONOMIE RENFORCÉE ===== */
/* ===== MOBILE – FORMULAIRE & MENU FRIENDLY ===== */
/* ===== MOBILE – LISIBILITÉ MAXIMALE ===== */
@media (max-width: 1000px) {

    /* ----- BASE TEXTE ----- */
    body {
        font-size: 2.5rem;      /* GROS TEXTE */
        line-height: 1.75;
    }

    /* ===== MENU (CARTES) ===== */
    .jc-home-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jc-card {
        padding: 28px;
        border-radius: 20px;
    }

    .jc-card h2 {
        font-size: 2.5rem;
        margin-bottom: 14px;
    }

    .jc-card p {
        font-size: 2.5rem;
        line-height: 1.6;
    }

    /* ===== FORMULAIRE ===== */
    .jc-form {
        padding: 22px;
    }

    .jc-form label {
        font-size: 2.5rem;
        margin-bottom: 18px;
    }

    /* 1 CHAMP PAR LIGNE */
    .jc-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jc-form input[type="text"],
    .jc-form input[type="email"],
    .jc-form select {
        font-size: 2.5rem;
        padding: 20px 18px;     /* CHAMPS GÉANTS */
        border-radius: 14px;
        min-height: 60px;       /* TACTILE OK */
    }

    /* ===== CHECKBOX ===== */
    .jc-checkbox {
        font-size: 2.5rem;
        line-height: 1.6;
        gap: 16px;
    }

    .jc-checkbox input {
        width: 26px;
        height: 26px;
    }

    /* ===== BOUTON ===== */
    .jc-btn {
        width: 100%;
        padding: 22px;
        font-size: 2.5rem;
        border-radius: 999px;
        margin-top: 22px;
    }

    /* ===== CONDITIONS / ACCORDÉONS ===== */
    .jc-conditions summary {
        font-size: 2.5rem;
        padding: 14px 0;
    }

    .jc-conditions details p,
    .jc-conditions details ul {
        font-size: 2.5rem;
        line-height: 1.8;
    }

    .jc-lots li,
    .jc-rules li {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

