.btcrgpd,
.btcrgpd * {
    box-sizing: border-box;
}

.btcrgpd {
    --btcrgpd-green: #132e20;
    --btcrgpd-green-deep: #0f2e1d;
    --btcrgpd-border: rgba(180, 210, 53, .58);
    --btcrgpd-accent: #b4d235;
    --btcrgpd-accent-dark: #7f9f16;
    --btcrgpd-cream: #eef5da;
    --btcrgpd-cream-light: #f7faec;
    --btcrgpd-muted: #8fa47f;
    --btcrgpd-danger: #ff5263;
    --btcrgpd-white: #ffffff;
    width: 100%;
    padding: clamp(18px, 3vw, 42px);
    background: transparent;
    color: var(--btcrgpd-white);
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif;
}

.btcrgpd__inner {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px) clamp(20px, 5vw, 54px);
    border: 1px solid var(--btcrgpd-border);
    border-radius: 38px;
    background: rgba(15, 46, 29, .82);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.btcrgpd__title {
    max-width: 900px;
    margin: 0 auto;
    color: var(--btcrgpd-white) !important;
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif !important;
    font-size: clamp(2.15rem, 4.2vw, 4rem);
    font-style: normal;
    font-weight: 800 !important;
    font-synthesis: none;
    line-height: 1.02;
    letter-spacing: .01em;
    text-align: center;
}

.btcrgpd__title-line {
    display: block;
    width: 58px;
    height: 3px;
    margin: 24px auto 44px;
    border-radius: 999px;
    background: var(--btcrgpd-accent);
}

.btcrgpd__form {
    display: grid;
    gap: 24px;
}

.btcrgpd__grid {
    display: grid;
    gap: 20px;
}

.btcrgpd__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btcrgpd__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btcrgpd__field {
    min-width: 0;
}

.btcrgpd__field label {
    display: block;
    margin: 0 0 9px;
    color: var(--btcrgpd-white);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
}

.btcrgpd__field label span {
    color: var(--btcrgpd-danger);
}

.btcrgpd input[type="text"],
.btcrgpd input[type="email"],
.btcrgpd input[type="tel"],
.btcrgpd select,
.btcrgpd textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 2px solid var(--btcrgpd-accent);
    border-radius: 18px;
    background: var(--btcrgpd-cream);
    color: #10291b;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btcrgpd input[type="text"],
.btcrgpd input[type="email"],
.btcrgpd input[type="tel"],
.btcrgpd select {
    min-height: 66px;
    padding: 15px 20px;
}

.btcrgpd select {
    padding-right: 54px;
    background-image:
        linear-gradient(45deg, transparent 50%, #173321 50%),
        linear-gradient(135deg, #173321 50%, transparent 50%);
    background-position:
        calc(100% - 24px) 50%,
        calc(100% - 18px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.btcrgpd select:invalid {
    color: #596f50;
}

.btcrgpd textarea {
    min-height: 175px;
    padding: 20px 22px 44px;
    resize: vertical;
}

.btcrgpd input::placeholder,
.btcrgpd textarea::placeholder {
    color: var(--btcrgpd-muted);
    opacity: 1;
}

.btcrgpd input:focus,
.btcrgpd select:focus,
.btcrgpd textarea:focus {
    outline: none;
    border-color: var(--btcrgpd-white);
    background: var(--btcrgpd-cream-light);
    box-shadow: 0 0 0 4px rgba(180, 210, 53, .28);
}

.btcrgpd__textarea-wrap {
    position: relative;
}

.btcrgpd__counter {
    position: absolute;
    right: 19px;
    bottom: 14px;
    color: #365028;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.btcrgpd__consents {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid rgba(180, 210, 53, .46);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
}

.btcrgpd__check {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    color: var(--btcrgpd-white);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.btcrgpd__check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.btcrgpd__checkmark {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid var(--btcrgpd-accent);
    border-radius: 5px;
    background: var(--btcrgpd-cream);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btcrgpd__check input:checked + .btcrgpd__checkmark {
    background: var(--btcrgpd-accent);
}

.btcrgpd__check input:checked + .btcrgpd__checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #173321;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.btcrgpd__check input:focus-visible + .btcrgpd__checkmark {
    box-shadow: 0 0 0 4px rgba(180, 210, 53, .35);
}

.btcrgpd a {
    color: var(--btcrgpd-cream);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btcrgpd a:hover,
.btcrgpd a:focus {
    color: var(--btcrgpd-accent);
}

.btcrgpd__privacy-notice {
    padding: 18px 20px;
    border: 1px solid rgba(180, 210, 53, .38);
    border-left: 4px solid var(--btcrgpd-accent);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, .055);
    color: #dbe8d3;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.btcrgpd__privacy-notice p {
    margin: 0;
}

.btcrgpd__privacy-notice p + p {
    margin-top: 10px;
}

.btcrgpd__privacy-title {
    color: var(--btcrgpd-white);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.btcrgpd__privacy-link {
    font-weight: 700;
}

.btcrgpd__check-help {
    margin: 0 0 0 36px;
    color: #c8d8bf;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.btcrgpd__required {
    color: var(--btcrgpd-danger);
    font-weight: 800;
}

.btcrgpd__submit {
    justify-self: start;
    min-width: 170px;
    min-height: 58px;
    padding: 14px 30px;
    border: 2px solid var(--btcrgpd-accent);
    border-radius: 999px;
    background: var(--btcrgpd-accent);
    color: #132e20;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btcrgpd__submit:hover {
    transform: translateY(-2px);
    background: var(--btcrgpd-cream);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.btcrgpd__submit:focus-visible {
    outline: 3px solid var(--btcrgpd-white);
    outline-offset: 3px;
}

.btcrgpd__submit[disabled] {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.btcrgpd__alert {
    margin: 0 0 28px;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
}

.btcrgpd__alert--success {
    border: 1px solid var(--btcrgpd-accent);
    background: var(--btcrgpd-cream);
    color: #173321;
}

.btcrgpd__alert--error {
    border: 1px solid #ff8b96;
    background: #ffe7ea;
    color: #7c1520;
}

.btcrgpd__honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .btcrgpd__grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btcrgpd__grid--three .btcrgpd__field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .btcrgpd {
        padding: 12px;
    }

    .btcrgpd__inner {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .btcrgpd__title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .btcrgpd__title-line {
        margin-bottom: 32px;
    }

    .btcrgpd__grid--three,
    .btcrgpd__grid--two,
    .btcrgpd__consents {
        grid-template-columns: 1fr;
    }

    .btcrgpd__grid--three .btcrgpd__field:first-child {
        grid-column: auto;
    }

    .btcrgpd__consents {
        padding: 16px;
    }

    .btcrgpd__check-help {
        margin-left: 34px;
    }

    .btcrgpd input[type="text"],
    .btcrgpd input[type="email"],
    .btcrgpd input[type="tel"],
    .btcrgpd select {
        min-height: 58px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .btcrgpd__submit {
        width: 100%;
        justify-self: stretch;
    }
}


/* =========================================================
   COMPATIBILITÉ DIVI / APERÇU DU VISUAL BUILDER
   ========================================================= */
.btcrgpd h2.btcrgpd__title {
    display: block !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif !important;
    font-size: clamp(2.15rem, 4.2vw, 4rem) !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.et-db #et-boc .et-l .btcrgpd,
.et-fb-root-ancestor .btcrgpd,
.et_pb_module .btcrgpd {
    width: 100% !important;
    max-width: none !important;
    color: #ffffff !important;
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif !important;
}

.et-db #et-boc .et-l .btcrgpd .btcrgpd__inner,
.et-fb-root-ancestor .btcrgpd .btcrgpd__inner,
.et_pb_module .btcrgpd .btcrgpd__inner {
    width: min(100%, 1120px) !important;
    max-width: 1120px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.btcrgpd .btcrgpd__form,
.btcrgpd .btcrgpd__grid,
.btcrgpd .btcrgpd__consents {
    display: grid !important;
}

.btcrgpd .btcrgpd__field,
.btcrgpd .btcrgpd__textarea-wrap {
    position: relative;
    width: 100% !important;
    max-width: none !important;
}

.btcrgpd .btcrgpd__field > label {
    display: block !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

.btcrgpd input[type="text"],
.btcrgpd input[type="email"],
.btcrgpd input[type="tel"],
.btcrgpd select,
.btcrgpd textarea {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    outline: none;
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif !important;
}

.btcrgpd button.btcrgpd__submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 2px solid #b4d235 !important;
    border-radius: 999px !important;
    background: #b4d235 !important;
    color: #132e20 !important;
    font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.btcrgpd button.btcrgpd__submit::before,
.btcrgpd button.btcrgpd__submit::after {
    display: none !important;
    content: none !important;
}

/* v1.6.0 — Formulaires Stage et Recrutement */
.btcrgpd input[type="date"],
.btcrgpd input[type="file"]{
    display:block;width:100%;min-height:66px;margin:0;padding:15px 20px;
    border:2px solid var(--btcrgpd-accent);border-radius:18px;
    background:var(--btcrgpd-cream);color:#10291b;font:inherit;font-size:17px;font-weight:600;
}
.btcrgpd-recruitment__chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 30px;padding:7px;border:1px solid rgba(180,210,53,.45);border-radius:18px;background:rgba(255,255,255,.05)}
.btcrgpd-recruitment__tab{min-height:54px;padding:12px 18px;border:0;border-radius:13px;background:transparent;color:#fff;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.btcrgpd-recruitment__tab.is-active{background:#b4d235;color:#132e20;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.btcrgpd-recruitment__panel:not(.is-active){display:none!important}
.btcrgpd-recruitment__help{margin:7px 0 0;color:#c8d8bf;font-size:12px;line-height:1.45}
.btcrgpd-recruitment__address{margin:0;padding:20px;border:1px solid rgba(180,210,53,.38);border-radius:18px}
.btcrgpd-recruitment__address legend{padding:0 8px;color:#fff;font-size:17px;font-weight:800}
.btcrgpd__check--choice{width:fit-content;margin-top:8px}
.btcrgpd__checkmark--radio{border-radius:50%}
.btcrgpd__check input:checked + .btcrgpd__checkmark--radio::after{left:5px;top:5px;width:8px;height:8px;border:0;border-radius:50%;background:#173321;transform:none}
@media(max-width:700px){.btcrgpd-recruitment__chooser{grid-template-columns:1fr}.btcrgpd input[type="date"],.btcrgpd input[type="file"]{min-height:58px;padding:13px 15px}}

/* v2.0.0 — Cloudflare Turnstile */
.btcrgpd-turnstile{min-height:0;overflow:hidden}
.btcrgpd__turnstile-note{margin:-8px 0 0;color:#c8d8bf;font-size:12px;line-height:1.45}
