/*
 * JuriCampus Interface beta.424 — « Demande d'inscription » en ambiance tropicale.
 * Tons pastel (lagon, hibiscus, mangue, feuillage), arbre du voyageur et maki catta
 * dessinés pour JuriCampus. Les champs restent sur fond blanc, bordés et bien lisibles.
 * Tout est limité à .jc-registration : aucune autre page n'est touchée.
 */
.jc-registration {
    --trop-lagoon: #d6f2ec;
    --trop-lagoon-strong: #8fd3c3;
    --trop-leaf: #6fbf98;
    --trop-hibiscus: #f7b3c2;
    --trop-coral: #f2917f;
    --trop-mango: #ffd37a;
    --trop-sand: #fff4e2;
    --trop-ink: #12474a;
    --trop-ink-soft: #3f6664;
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    padding: clamp(16px, 3vw, 38px);
    border-radius: 34px;
    background:
        url(../img/tropical/leaves-corner.svg) left -46px top -40px / 250px auto no-repeat,
        url(../img/tropical/leaves-corner-br.svg) right -50px bottom -46px / 270px auto no-repeat,
        url(../img/tropical/hibiscus.svg) right 7% top 47% / 46px auto no-repeat,
        url(../img/tropical/hibiscus.svg) left 4% bottom 18% / 38px auto no-repeat,
        radial-gradient(circle at 12% 30%, rgba(255, 211, 122, .32), transparent 34%),
        radial-gradient(circle at 88% 70%, rgba(247, 179, 194, .30), transparent 36%),
        linear-gradient(160deg, #e4f6f1 0%, #fdeff1 46%, #fff3dd 100%);
}

/* beta.435 : « html body » devant les règles du bandeau, pour passer devant l'ambiance
   d'inscription du Core (image de fond, bandeau bleu nuit) chargée depuis que JuriCampus
   utilise la feuille publique du Core. */
/* ---- Bandeau d'en-tête : coucher de soleil pastel, arbre du voyageur et maki ---- */
html body .jc-registration .jc-registration-hero {
    display: block;
    min-height: 330px;
    padding: clamp(26px, 4vw, 46px);
    overflow: hidden;
    color: var(--trop-ink);
    background:
        url(../img/tropical/sun.svg) right clamp(250px, 30vw, 420px) top -34px / clamp(170px, 17vw, 230px) auto no-repeat,
        linear-gradient(115deg, #ffd9cc 0%, #ffe9c4 38%, #d4f1e6 72%, #bfe9e0 100%);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(242, 145, 127, .18);
}
html body .jc-registration .jc-registration-hero::before {
    position: absolute;
    right: clamp(120px, 15vw, 200px);
    bottom: -8px;
    width: clamp(240px, 26vw, 340px);
    height: clamp(257px, 27.8vw, 364px);
    content: "";
    background: url(../img/tropical/ravenala.svg?v=3) center bottom / contain no-repeat;
    pointer-events: none;
}
html body .jc-registration .jc-registration-hero::after {
    position: absolute;
    right: clamp(14px, 2.5vw, 36px);
    bottom: 0;
    width: clamp(128px, 13.5vw, 172px);
    height: clamp(122px, 12.9vw, 164px);
    content: "";
    /* beta.427 : photo de maki catta détourée, plus petite et légèrement estompée */
    background: url(../img/tropical/lemur-photo.webp) right bottom / contain no-repeat;
    border: 0;
    border-radius: 0;
    opacity: .86;
    filter: saturate(.82) contrast(.94) drop-shadow(0 6px 12px rgba(18, 71, 74, .14));
    pointer-events: none;
}
html body .jc-registration .jc-registration-hero__content { max-width: min(56%, 680px); }
html body .jc-registration .jc-registration-hero .jc-public-eyebrow { color: #c4557a; letter-spacing: .08em; }
html body .jc-registration .jc-registration-hero h2 { color: var(--trop-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
html body .jc-registration .jc-registration-hero__content > p { color: var(--trop-ink-soft); font-weight: 500; }

/* ---- Carte du formulaire : blanche, avec une frise lagon → hibiscus → mangue ---- */
.jc-registration #jc-demande-inscription-form {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 3.4vw, 38px);
    padding-top: clamp(34px, 4vw, 44px);
    gap: 22px 26px;
    background:
        url(../img/tropical/hibiscus.svg) right 26px top 30px / 34px auto no-repeat,
        url(../img/tropical/leaves-corner-br.svg) right -70px bottom -70px / 230px auto no-repeat,
        linear-gradient(180deg, #fff 0%, #fff 62%, #fff8ee 100%);
    border: 1px solid #d3eee5;
    border-radius: 26px;
    box-shadow: 0 22px 50px rgba(63, 142, 122, .13), 0 2px 0 rgba(255, 255, 255, .9) inset;
}
.jc-registration #jc-demande-inscription-form::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 10px;
    content: "";
    background: linear-gradient(90deg, var(--trop-lagoon-strong), var(--trop-hibiscus) 50%, var(--trop-mango));
}
.jc-registration #jc-demande-inscription-form .jc-field-legend { color: var(--trop-ink-soft); }
.jc-registration #jc-demande-inscription-form .jc-field label { color: var(--trop-ink); font-size: .98rem; }
.jc-registration #jc-demande-inscription-form .jc-field-required { color: #d8486e; text-decoration: none; border: 0; }
.jc-registration #jc-demande-inscription-form .jc-field-optional { color: #6b8a87; }
.jc-registration #jc-demande-inscription-form .jc-field-help { color: #4d6d6a; }

/* Champs : fond blanc franc, bordure lagon bien visible, focus corail. */
.jc-registration #jc-demande-inscription-form input:not([type="checkbox"]):not([type="radio"]),
.jc-registration #jc-demande-inscription-form select,
.jc-registration #jc-demande-inscription-form textarea,
.jc-registration #jc-demande-inscription-form .jc-phone-field__dial {
    min-height: 50px;
    color: #12373a;
    font-size: 16px;
    background-color: #fff;
    border: 1.5px solid #a7d7cb;
    border-radius: 14px;
    box-shadow: 0 2px 0 rgba(143, 211, 195, .25);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.jc-registration #jc-demande-inscription-form input::placeholder,
.jc-registration #jc-demande-inscription-form textarea::placeholder { color: #7f9d9a; }
.jc-registration #jc-demande-inscription-form input:hover,
.jc-registration #jc-demande-inscription-form select:hover,
.jc-registration #jc-demande-inscription-form textarea:hover { border-color: #7cc5b4; }
.jc-registration #jc-demande-inscription-form input:focus,
.jc-registration #jc-demande-inscription-form select:focus,
.jc-registration #jc-demande-inscription-form textarea:focus,
.jc-registration #jc-demande-inscription-form .jc-phone-field__dial:focus-within {
    border-color: var(--trop-coral);
    outline: none;
    box-shadow: 0 0 0 4px rgba(242, 145, 127, .22);
}
/* Le numéro de téléphone prend toute la largeur disponible. */
.jc-registration #jc-demande-inscription-form .jc-phone-field { max-width: none; }

/* Bandeau pastel pour la partie « règlement » et la case de confidentialité. */
.jc-registration #jc-demande-inscription-form p.jc-payment-fields { grid-column: 1 / -1; margin-top: -10px; }
.jc-registration #jc-demande-inscription-form .jc-payment-fields:not([hidden]) {
    padding: 18px 20px;
    background: linear-gradient(120deg, #fff6e4, #fdeef2);
    border-radius: 18px;
}
.jc-registration #jc-demande-inscription-form .jc-privacy-consent {
    padding: 18px 20px;
    color: var(--trop-ink);
    background: linear-gradient(120deg, #e6f6f1, #eef6ff);
    border: 1px solid #c4e7dc;
    border-radius: 18px;
}
.jc-registration #jc-demande-inscription-form .jc-privacy-consent a { color: #c4456c; }
.jc-registration #jc-demande-inscription-form .jc-privacy-consent input { accent-color: #e0708a; }

/* Bouton d'envoi : mangue → corail. */
.jc-registration #jc-demande-inscription-form .jc-form-actions .jc-btn {
    min-height: 54px;
    padding: 0 30px;
    color: #3d2612;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd56f, #ffb48a 55%, #f7a0a8);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(242, 145, 127, .32);
}
.jc-registration #jc-demande-inscription-form .jc-form-actions .jc-btn:hover,
.jc-registration #jc-demande-inscription-form .jc-form-actions .jc-btn:focus-visible {
    filter: brightness(1.04) saturate(1.05);
    transform: translateY(-1px);
}

/* ---- Messages et page « demande envoyée » ---- */
.jc-registration .jc-registration-message { border-radius: 16px; }
.jc-registration .jc-registration-confirmation__intro { background: #fff; border-color: #d3eee5; border-radius: 26px; }
.jc-registration .jc-registration-confirmation__art {
    background: url(../img/tropical/ravenala.svg) center 30% / 62% auto no-repeat, linear-gradient(160deg, #d9f2ea, #ffeedd);
    border-radius: 26px;
}
.jc-registration .jc-registration-confirmation__art svg { visibility: hidden; }
.jc-registration .jc-registration-steps li > span { color: var(--trop-ink); background: linear-gradient(135deg, #bfe9dd, #ffe3a8); }

/* ---- Zone étroite (tablette, téléphone, ou thème à colonne étroite) ---- */
@container (max-width: 860px) {
    html body .jc-registration .jc-registration-hero { min-height: 0; padding-bottom: 240px; }
    html body .jc-registration .jc-registration-hero__content { max-width: none; }
    html body .jc-registration .jc-registration-hero::before { right: 30%; width: 230px; height: 246px; }
    html body .jc-registration .jc-registration-hero::after { right: 6%; width: 140px; height: 134px; }
}
@container (max-width: 560px) {
    html body .jc-registration .jc-registration-hero { padding-bottom: 196px; border-radius: 22px; }
    html body .jc-registration .jc-registration-hero::before { right: auto; left: 2%; width: 190px; height: 204px; }
    html body .jc-registration .jc-registration-hero::after { right: 3%; width: 112px; height: 107px; }
    .jc-registration #jc-demande-inscription-form { padding: 38px 16px 24px; border-radius: 20px; background-size: 26px auto, 160px auto, auto; background-position: right 14px top 20px, right -60px bottom -60px, 0 0; }
    html body .jc-registration .jc-registration-hero { background-size: 110px auto, auto; background-position: right -14px top -18px, 0 0; }
}
@media (max-width: 600px) {
    .jc-registration { padding: 10px; border-radius: 24px; background-size: 150px auto, 160px auto, 30px auto, 26px auto, auto, auto, auto; }
}
@media (prefers-reduced-motion: reduce) {
    .jc-registration #jc-demande-inscription-form .jc-form-actions .jc-btn:hover { transform: none; }
}

/* beta.428 : bandes pastel tropicales entre les trois parties du formulaire
   (titres ajoutés par le Core 5.0.0-beta.471 : Vous / Votre adresse / Votre formation). */
.jc-registration #jc-demande-inscription-form .jc-registration-section {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 4px calc(-1 * clamp(26px, 3.4vw, 38px)) 0;
    padding: 10px clamp(26px, 3.4vw, 38px);
    color: var(--trop-ink);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    border-top: 1px solid rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .9);
}
.jc-registration #jc-demande-inscription-form .jc-registration-section span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: .82rem;
    background: var(--trop-leaf);
    border-radius: 50%;
}
.jc-registration #jc-demande-inscription-form .jc-registration-section.is-blue { background: linear-gradient(90deg, var(--trop-lagoon), rgba(214, 242, 236, .25)); }
.jc-registration #jc-demande-inscription-form .jc-registration-section.is-blue span { background: #3fa48e; }
.jc-registration #jc-demande-inscription-form .jc-registration-section.is-mint { background: linear-gradient(90deg, #fde2e8, rgba(253, 226, 232, .25)); }
.jc-registration #jc-demande-inscription-form .jc-registration-section.is-mint span { background: #e0778f; }
.jc-registration #jc-demande-inscription-form .jc-registration-section.is-vanilla { background: linear-gradient(90deg, #ffefc7, rgba(255, 239, 199, .25)); }
.jc-registration #jc-demande-inscription-form .jc-registration-section.is-vanilla span { background: #d9a031; }
