/* =========================================================================
   Jeu Concours – page « Tombola »  (scopé sous .bea-concours)
   ========================================================================= */

.bea-concours {
    --bea-c-yellow: #EBBA38;
    --bea-c-green:  #5BA552;
    --bea-c-prize-green: #4E9257;
    --bea-c-gold:   #E8961E;
    --bea-c-dark:   #141414;
    --bea-c-input:  #ededed;

    position: relative;
    overflow: hidden;
    background: var(--bea-c-yellow);
    padding: 30px 16px 0;
    font-family: Helvetica, Arial, sans-serif;
    color: var(--bea-c-dark);
}

.bea-concours * { box-sizing: border-box; }

/* ---- Décorations SVG ---------------------------------------------------- */
.bea-c-deco {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    height: auto;
}
/* SVG ancrés DANS .bea-c-form-section (haut + milieu) */
.bea-c-deco-feuille  { top: -15px; left: -30px; width: 95px; z-index: 1; }
.bea-c-deco-carrote  { top: -35px; right: -30px; width: 115px; transform: rotate(8deg); z-index: 1; }
.bea-c-deco-brocolis { top: 42%; left: -45px; width: 120px; z-index: 1; }
.bea-c-deco-saucisse { top: 38%; right: -45px; width: 120px; transform: rotate(-6deg); z-index: 1; }

/* SVG ancrés DANS .bea-c-form-card (bas) */
.bea-c-deco-vin      { bottom: -20px; left: -25px; width: 100px; z-index: 1; }
.bea-c-deco-oignon   { bottom: -15px; right: -25px; width: 95px; z-index: 1; }
.bea-c-deco-feuille2 { bottom: 55px; right: -35px; width: 80px; z-index: 1; }

/* tomate (orange) en haut à droite de la bannière, fromage en bas à gauche
   (ces deux-là sont ancrés DANS le conteneur .bea-c-hero) */
.bea-c-deco-tomate  { top: -30px; right: -20px; width: 130px; z-index: -1; }
.bea-c-deco-fromage { bottom: -70px; left: -10px; width: 140px; z-index: -1; }

/* ---- Bannière ---------------------------------------------------------- */
.bea-c-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto 24px;
}
/* On cible aussi l'<img> interne : un plugin WebP enrobe l'image dans un
   <picture> et y déplace la classe, ce qui laissait l'<img> déborder. */
.bea-c-hero-img,
.bea-c-hero picture,
.bea-c-hero img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}
.bea-c-hero img { width: auto; }
.bea-c-hero .bea-c-hero-img--mobile { display: none; }

/* ---- Titre + badge date ------------------------------------------------ */
.bea-c-title-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px auto 30px;
}
.bea-c-title-ribbon {
    display: inline-block;
    max-width: 100%;
    background: url(../svg/bg-title.svg) no-repeat center;
    background-size: 100% 100%;
    padding: 22px 90px 30px;
}
.bea-c-title {
    font-family: 'Grand Hotel', cursive;
    font-weight: 400;
    color: var(--bea-c-gold);
    font-size: clamp(2.6rem, 8vw, 75px);
    line-height: 1;
}
.bea-c-date-badge {
    display: inline-block;
    margin-top: -18px;
    background: var(--bea-c-green);
    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    letter-spacing: .5px;
    font-size: clamp(1.4rem, 5vw, 45px);
    line-height: 1.1;
    padding: 11px 24px;
    border: 0;
    border-radius: 0;
}

/* ---- Introduction ------------------------------------------------------ */
.bea-c-intro {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 110px;
    text-align: center;
}
.bea-c-intro p {
    margin: 0;
    color: #1c1c1c;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 26px;
    font-size: 20px;
}
.bea-c-intro strong { font-weight: 700; }

/* ---- Formulaire -------------------------------------------------------- */
.bea-c-form-section {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto 50px;
}
.bea-c-form-title {
    text-align: center;
    margin-bottom: -28px;
    position: relative;
    z-index: 3;
}
.bea-c-form-title span {
    display: inline-block;
    background: var(--bea-c-dark);
    color: #fff;
    font-family: 'Grand Hotel', cursive;
    font-size: 75px;
    padding: 4px 36px;
    border-radius: 0;
}
.bea-c-form-card {
    position: relative;
    background: #fff;
    border-radius: 0;
    padding: 50px 28px 36px;
    margin-bottom: 12em;
}

.bea-c-field { margin-bottom: 18px; }
.bea-c-field label {
    display: block;
    font-family: 'Grand Hotel', cursive;
    font-size: 35px;
    color: #1c1c1c;
    margin-bottom: 4px;
}
.bea-c-field input {
    width: 100%;
    background: #F5F5F5;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 12px 14px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 18px;
}
.bea-c-field input:focus {
    outline: none;
    border-color: var(--bea-c-green);
    background: #fff;
}

.bea-c-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 26px 0 24px;
}
.bea-c-consent input { width: 20px; height: 20px; flex: 0 0 auto; }
.bea-c-consent label {
    font-family: 'Grand Hotel', cursive;
    font-size: 35px;
    color: #1c1c1c;
}
.bea-c-consent a { color: var(--bea-c-green); }

.bea-c-submit-wrap { text-align: center; }
.bea-c-submit {
    background: url(../svg/bg-btn.svg) no-repeat center;
    background-size: 100% 100%;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Grand Hotel', cursive;
    font-size: 40px;
    padding: 14px 70px;
    border-radius: 0;
    box-shadow: none;
    transition: filter .15s ease;
}
.bea-c-submit:hover { filter: brightness(1.06); }

/* ---- Messages ---------------------------------------------------------- */
.bea-c-alert {
    border-radius: 0;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-weight: bold;
    text-align: center;
}
.bea-c-alert-success { background: #e3f3e1; color: #2e7d32; }
.bea-c-alert-error   { background: #fdecea; color: #c62828; }

/* ---- Bloc « à gagner » ------------------------------------------------- */
.bea-c-prize {
    position: relative;
    z-index: 2;
    background: var(--bea-c-prize-green);
    margin: 60px -16px 0;
    padding: 0;
}
.bea-c-prize-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}
.bea-c-prize-cart {
    width: 300px;
    height: auto;
    flex: 0 0 auto;
    position: relative;
    top: -80px;
}
.bea-c-prize-body {
    color: #fff;
    text-align: left;
    align-self: center;
    flex: 1;
    min-width: 280px;
}
.bea-c-prize-heading {
    position: relative;
    z-index: 2;
    font-family: 'Grand Hotel', cursive;
    font-size: 80px;
    color: #fff;
    margin: 0 0 -10px;   /* « à gagner » passe devant le badge date */
    line-height: 1;
    text-align: left;
}
.bea-c-date-badge--prize {
    position: relative;
    z-index: 1;
    background: #F8AD26;
    border-radius: 0;
    margin: 12px 0 16px;
}
.bea-c-prize-text {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: #fff;
    font-size: 30px;
    line-height: 1.25;
    margin: 0;
}
.bea-c-prize-bonus {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: #fff;
    font-size: 30px;
    line-height: 1.25;
    margin: 8px 0 0;
}
.bea-c-plus-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 600px) {
    .bea-c-deco { opacity: .9; }
    .bea-c-deco-tomate   { width: 70px; top: -15px; right: -10px; }
    .bea-c-deco-fromage  { width: 80px; bottom: -40px; left: -5px; }
    .bea-c-deco-feuille  { width: 55px; top: -8px; left: -8px; }
    .bea-c-deco-carrote  { width: 70px; top: -22px; right: -8px; }
    .bea-c-deco-brocolis { width: 60px; top: 40%; left: -12px; }
    .bea-c-deco-saucisse { width: 60px; top: 36%; right: -12px; }
    .bea-c-deco-vin      { width: 60px; bottom: -10px; left: -8px; }
    .bea-c-deco-oignon   { width: 60px; bottom: -8px; right: -8px; }
    .bea-c-deco-feuille2 { width: 45px; bottom: 35px; right: -12px; }
    .bea-c-prize-inner { flex-direction: column; align-items: center; }
    .bea-c-prize-body { text-align: center; }
    .bea-c-prize-bonus { justify-content: center; }
    .bea-c-prize-cart { width: 230px; top: -80px; }
}

/* Bascule bannière + tailles titres en mobile (sous 768px) */
@media (max-width: 768px) {
    .bea-c-hero .bea-c-hero-img--desktop { display: none; }
    .bea-c-hero .bea-c-hero-img--mobile { display: inline-block; }
    .bea-c-title { font-size: 40px; }
    .bea-c-date-badge { font-size: 25px; }
    .bea-c-intro p { font-size: 18px; }
    .bea-c-form-title span { font-size: 40px; }
    .bea-c-field label { font-size: 25px; }
    .bea-c-consent label { font-size: 25px; }
    .bea-c-submit { font-size: 30px; }
    .bea-c-prize-heading { font-size: 40px; margin-left: 15px; }
    .bea-c-date-badge--prize { font-size: 25px; }
    .bea-c-prize-text { font-size: 20px; }
    .bea-c-prize-bonus { font-size: 20px; }
    .bea-c-plus-icon { width: 25px; height: 25px; margin-left: 15px; }
    .bea-c-date-badge { padding: 11px 13px; }
    .bea-c-prize-text { margin-left: 15px; }
}

/* Décalages 25px du bloc « à gagner » en PC uniquement */
@media (min-width: 769px) {
    .bea-c-prize-heading { margin: 0 25px -10px; }
    .bea-c-prize-text { margin: 0 0 0 25px; }
    .bea-c-plus-icon { margin-left: 25px; }
}

/* ---- Masquage des blocs "home" du thème sur la page jeu concours -------
   On garde uniquement le logo + le menu principal (et le footer).
   Les blocs vides et la barre catégories sont retirés.                    */
body.bea-concours-page header .intro-home,
body.bea-concours-page header .photo-home,
body.bea-concours-page header .menu-producteur {
    display: none !important;
}

/* ---- Fix mise en page : ce thème est conçu pour la home, il faut forcer
   la zone concours en pleine largeur et la sortir des floats du header. -- */
body.bea-concours-page .bea-concours {
    clear: both !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
