*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --y: #fdce12;
    --yd: #f9c901;
    --b: #044074;
    --bm: #065296;
    --bl: #075599;
    --w: #fff;
    --g0: #f4f6fb;
    --g1: #e8ecf6;
    --g2: #b0bad8;
    --g3: #6b7aa0;
    --dark: #231f20;
    --r: 20px;
}

/* ══ BODY ══ */
body {
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(2, 41, 75, 0.8) 0%,
            rgba(4, 64, 116, 0.1) 45%,
            rgba(180, 130, 0, 0.48) 100%
        ),
        url("../../images/5.jpg") center/cover fixed;
    overflow-x: hidden;
    overflow-y: auto; /* permet de scroller si la carte dépasse l'écran (petits portables 12") */
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(rgba(245, 197, 24, 0.055) 1px, transparent 1px) 0 0/32px
            32px,
        radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 16px
            16px/32px 32px;
}

/* ══════════════════════════════════════
   LIGHTBOX - position:fixed, z:99999
══════════════════════════════════════ */
#lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lb.open {
    display: flex;
}

#lb-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

#lb-counter {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

#lb-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#lb-close:hover {
    background: rgba(200, 40, 40, 0.65);
}

#lb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 60px 70px 10px;
}

#lb-img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

#lb-img.ani {
    animation: lbIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lbIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.lb-arr:hover {
    background: rgba(245, 197, 24, 0.4);
    border-color: var(--y);
    transform: translateY(-50%) scale(1.1);
}

#lb-prev {
    left: 10px;
}

#lb-next {
    right: 10px;
}

#lb-bar {
    width: 100%;
    padding: 10px 16px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

#lb-cap {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

#lb-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.lb-th {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    object-fit: cover;
    cursor: pointer;
    border: 2.5px solid transparent;
    opacity: 0.45;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lb-th:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

.lb-th.cur {
    border-color: var(--y);
    opacity: 1;
}

/* ══════════════════════════════════════
   CARD - desktop uniquement
══════════════════════════════════════ */
#card {
    position: relative;
    z-index: 1;
    width: 1015px;
    max-width: 100%;
    /* Hauteur flexible : on vise 660px mais on ne dépasse jamais l'écran.
       Sur les petits écrans (jusqu'à ~500px de haut) la carte rétrécit et
       les panneaux internes (.panel) défilent. */
    height: 660px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto; /* centré horizontalement */
    border-radius: var(--r);
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(8, 15, 43, 0.55),
        0 0 0 1px rgba(245, 197, 24, 0.12);
    background: var(--w);
    display: flex;
}

/* Panneaux desktop */
.panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: var(--w);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--g1) transparent;
}

.panel::-webkit-scrollbar {
    width: 3px;
}

.panel::-webkit-scrollbar-thumb {
    background: var(--g1);
    border-radius: 3px;
}

#pInfo {
    left: 0;
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
}

#pForm {
    right: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateX(12px);
}

#card.active #pInfo {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateX(-12px);
}

#card.active #pForm {
    opacity: 1;
    pointer-events: all;
    z-index: 2;
    transform: translateX(0);
}

/* Overlay sliding desktop */
#slide {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 50%;
    z-index: 10;
    border-radius: 0 var(--r) var(--r) 0;
    overflow: hidden;
    transition:
        left 0.75s cubic-bezier(0.77, 0, 0.18, 1),
        border-radius 0.75s cubic-bezier(0.77, 0, 0.18, 1);
}

#card.active #slide {
    left: 0%;
    border-radius: var(--r) 0 0 var(--r);
}

.face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.35s ease 0.1s;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.face::-webkit-scrollbar {
    width: 3px;
}

.face::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

#fY {
    opacity: 1;
    background: var(--dark);
}

#fB {
    opacity: 0;
    background: linear-gradient(150deg, #044074, #0f1e55);
}

#card.active #fY {
    opacity: 0;
    pointer-events: none;
}

#card.active #fB {
    opacity: 1;
}

/* Face jaune */
.fy-head {
    background: linear-gradient(135deg, var(--y), var(--yd));
    padding: 22px 24px 18px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.fy-head::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -70px;
    right: -60px;
    pointer-events: none;
}

.fy-head::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    bottom: -20px;
    left: 20px;
    pointer-events: none;
}

.fy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.bee-sq {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bee-name {
    font-family: sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.bee-org {
    font-size: 10px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fy-title {
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.fy-sub {
    font-size: 12px;
    color: rgba(15, 30, 85, 0.68);
    line-height: 1.5;
    margin-bottom: 9px;
    position: relative;
    z-index: 1;
}

.fy-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.fy-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(15, 30, 85, 0.1);
    color: var(--b);
    border: 1px solid rgba(15, 30, 85, 0.15);
}

.btn-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    background: var(--b);
    color: var(--y);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--b);
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
    z-index: 1;
}

.btn-go:hover {
    background: transparent;
    color: var(--dark);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    flex: 1;
    min-height: 0;
    background: var(--dark);
}

.gp {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    cursor: pointer;
    min-height: 0;
}

.gp.big {
    grid-column: 1/3;
}

.gp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    pointer-events: none;
}

.gp:hover img {
    transform: scale(1.07);
}

.gp-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 15, 43, 0.82),
        rgba(8, 15, 43, 0.25) 50%,
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gp:hover .gp-ov {
    opacity: 1;
}

.gp-zoom {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.gp-cap {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 8px;
    text-align: center;
    line-height: 1.3;
}

.gp-num {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(245, 197, 24, 0.9);
    color: var(--b);
    width: 19px;
    height: 19px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Face bleue */
#fB {
    padding: 28px 26px;
}

.fb-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fb-deco.d1 {
    width: 220px;
    height: 220px;
    background: rgba(245, 197, 24, 0.06);
    /* bottom: -70px; */
    left: -70px;
}

.fb-deco.d2 {
    width: 100px;
    height: 100px;
    background: rgba(245, 197, 24, 0.04);
    top: 10px;
    right: -20px;
}

.fb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.fb-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.fb-name {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.fb-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fb-title {
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.fb-text {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 13px;
    position: relative;
    z-index: 1;
}

.fb-box {
    border-radius: 13px;
    padding: 13px 15px;
    margin-bottom: 13px;
    background: rgba(245, 197, 24, 0.09);
    border: 1px solid rgba(245, 197, 24, 0.2);
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.fb-box strong {
    color: var(--y);
}

.fb-sec {
    list-style: none;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.fb-sec li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 7px 0;
    color: rgba(255, 255, 255, 0.78);
}

.fb-sec li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-badge {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    flex-shrink: 0;
    background: rgba(245, 197, 24, 0.15);
    color: var(--y);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.fb-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(245, 197, 24, 0.09);
    border: 1px solid rgba(245, 197, 24, 0.2);
    color: var(--y);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s;
}

.fb-link:hover {
    opacity: 0.8;
}

.btn-back-blue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 100px;
    background: var(--y);
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--y);
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
    z-index: 1;
}

.btn-back-blue:hover {
    background: transparent;
    color: var(--y);
}

/* Panneau info */
.pi-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pi-bee {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.imagelogo {
    width: 50px;
    height: 50px;
}

.pi-name {
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.pi-name em {
    color: var(--yd);
    font-style: normal;
}

.pi-org {
    font-size: 11px;
    color: var(--g3);
    font-weight: 600;
}

.pi-banner {
    background: linear-gradient(135deg, #012646, #044074);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* ne pas compresser la bannière (sinon le titre est rogné dans le panneau flex) */
}

.pi-banner::after {
    content: "🐝";
    position: absolute;
    font-size: 80px;
    right: -10px;
    bottom: -16px;
    opacity: 0.07;
    pointer-events: none;
}

.edition-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 197, 24, 0.15);
    color: var(--yd);
    border: 1px solid rgba(245, 197, 24, 0.25);
    margin-bottom: 6px;
}

.pi-banner-title {
    font-family: sans-serif;
    font-size: clamp(14px, 4.5vw, 17px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

.pi-banner-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.pi-intro {
    font-size: 13px;
    line-height: 1.75;
    color: #3a4060;
    margin-bottom: 12px;
}

.pi-intro strong {
    color: var(--dark);
}

.pi-sub {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--bm);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pi-list {
    list-style: none;
    margin-bottom: 12px;
}

.pi-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #3a4060;
    padding: 5px 0;
    line-height: 1.6;
}

.pi-list li + li {
    border-top: 1px solid #eef0f8;
}

.pi-dot {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(30, 58, 138, 0.09);
    color: var(--bm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.pi-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pi-cat {
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid rgba(30, 58, 138, 0.18);
    background: rgba(30, 58, 138, 0.05);
    color: var(--b);
}

/* Panneau form */
.pf-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.pf-bee {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.pf-name {
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

.pf-name em {
    color: var(--yd);
    font-style: normal;
}

.steps {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.stp {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--g2);
    white-space: nowrap;
}

.stp-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--g1);
    background: var(--w);
    color: var(--g2);
    transition: all 0.3s;
    flex-shrink: 0;
}

.stp.on .stp-dot {
    border-color: var(--yd);
    background: var(--y);
    color: var(--b);
}

.stp.on {
    color: var(--dark);
}

.stp.done .stp-dot {
    border-color: var(--b);
    background: var(--b);
    color: #fff;
}

.stp.done {
    color: var(--bm);
}

.stp-line {
    flex: 1;
    height: 2px;
    background: var(--g1);
    margin: 0 5px;
    transition: background 0.3s;
}

.stp-line.done {
    background: var(--b);
}

.fh {
    font-family: sans-serif;
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 3px;
    overflow-wrap: break-word;
}

.fs {
    font-size: 12px;
    color: var(--g3);
    margin-bottom: 11px;
}

.sec {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bl);
    background: rgba(41, 82, 204, 0.07);
    padding: 4px 11px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 10px;
}

.fld {
    margin-bottom: 10px;
    min-width: 0; /* évite le débordement des champs (ex. select établissement) dans les rangées flex */
}

.fi {
    min-width: 0;
}

.fld label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--g3);
    margin-bottom: 4px;
}

.fi {
    position: relative;
}

.fi input,
.fi select {
    width: 100%;
    max-width: 100%;
    padding: 9px 12px 9px 35px;
    border: 1.5px solid var(--g1);
    border-radius: 10px;
    background: var(--g0);
    color: var(--dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    outline: none;
    appearance: none;
    text-overflow: ellipsis;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.fi input::placeholder {
    color: var(--g2);
}

.fi input:focus,
.fi select:focus {
    border-color: var(--yd);
    background: var(--w);
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.12);
}

.fi > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g2);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
}

.fld:focus-within .fi > i {
    color: var(--yd);
}

.r2 {
    display: flex;
    gap: 10px;
}

.r2 .fld {
    flex: 1;
}

.amt {
    display: flex;
    align-items: center;
}

.amt .fi {
    flex: 1;
}

.amt .fi input {
    border-radius: 10px 0 0 10px;
}

.amt-tag {
    padding: 9px 12px;
    background: var(--y);
    color: var(--b);
    font-weight: 700;
    font-size: 12px;
    border: 1.5px solid var(--y);
    border-left: none;
    border-radius: 0 10px 10px 0;
    flex-shrink: 0;
}

.rgrp {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.ropt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1.5px solid var(--g1);
    border-radius: 100px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s;
}

.ropt input {
    display: none;
}

.ropt.on {
    border-color: var(--yd);
    background: rgba(245, 197, 24, 0.1);
    color: var(--b);
}

.ropt:hover {
    border-color: var(--y);
}

.cbox {
    background: var(--g0);
    border: 1.5px solid var(--g1);
    border-radius: 11px;
    padding: 11px 13px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #3a4060;
}

.cbox strong {
    color: var(--dark);
}

.btn-main {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--y), var(--yd));
    color: var(--dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 5px 18px rgba(245, 197, 24, 0.35);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.44);
}

.btn-sec {
    padding: 11px 14px;
    border: 1.5px solid var(--g1);
    border-radius: 10px;
    background: var(--w);
    color: var(--g3);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-sec:hover {
    border-color: var(--y);
    color: var(--b);
}

.brow {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.note {
    font-size: 11px;
    color: var(--g2);
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

.note a {
    color: var(--bm);
    font-weight: 600;
    text-decoration: none;
}

/* ══════════════════════════════════════
   MOBILE - architecture entièrement séparée
   
   Les 4 vues mobiles sont des divs DIRECTEMENT
   dans le <body>, en position:fixed.
   Elles n'ont AUCUN parent avec overflow:hidden.
   Elles sont totalement indépendantes de #card.
══════════════════════════════════════ */

/* Nav bar mobile */
#mob-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(8, 15, 43, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 197, 24, 0.2);
    padding: 8px 10px 16px;
    gap: 6px;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.5);
}

#mob-nav::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    /* background: rgba(255, 255, 255, .15); */
    border-radius: 100px;
    margin: 0 auto 7px;
}

.mnav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.25s;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.mnav-btn i {
    font-size: 18px;
}

.mnav-btn span {
    font-size: 10px;
    line-height: 1;
}

.mnav-btn.active {
    background: var(--y);
    color: var(--b);
    border-color: var(--y);
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.4);
}

/* Vues mobiles : position:fixed, directement dans body
   On utilise opacity+pointer-events au lieu de display:none
   pour éviter les bugs Safari/Chrome mobile */
.mob-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
    background: #fff;
    /* Caché par défaut */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.mob-view.on {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    z-index: 200;
    /* au-dessus des autres vues */
}

/* Vue galerie (fond sombre) */
#mv-galerie {
    background: var(--dark);
}

/* Vue à-propos (fond bleu) */
#mv-apropos {
    background: linear-gradient(150deg, #1e3a8a, #0f1e55);
}

/* Vues blanches */
#mv-infos,
#mv-form {
    background: #fff;
}

/* Fond mobile */
#mob-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background:
        linear-gradient(135deg, rgba(8, 15, 43, 0.93), rgba(15, 30, 85, 0.86)),
        url("images/5.jpg") center/cover no-repeat;
}

/* ── Contenu des vues mobiles ── */

/* Vue galerie */
#mv-galerie .fy-head {
    padding: 18px 16px 14px;
    flex-shrink: 0;
}

#mv-galerie .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 3px;
    padding: 3px;
    height: calc(100dvh - 70px - 200px);
    /* hauteur dispo moins header */
    min-height: 200px;
    background: var(--dark);
}

#mv-galerie .gp.big {
    grid-column: 1/3;
}

/* Vue à-propos */
#mv-apropos {
    padding: 22px 16px 20px;
}

#mv-apropos .btn-back-blue {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
}

/* Vue infos */
#mv-infos {
    padding: 20px 16px 24px;
}

/* Vue form */
#mv-form {
    padding: 20px 16px 24px;
}

#mv-form .r2 {
    flex-direction: column;
    gap: 0;
}

#mv-form .r2 .fld {
    flex: none;
}

/* Cacher #card sur mobile */
@media (max-width: 700px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    #card {
        display: none;
    }

    #mob-bg {
        display: block;
    }

    #mob-nav {
        display: flex;
    }
}

@media (min-width: 701px) {
    #mob-bg,
    #mob-nav,
    .mob-view {
        display: none;
    }
}

/* ══════════════════════════════════════
   SECTION PAIEMENT
══════════════════════════════════════ */
.pay-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    /* background: var(--dark); */
    padding: 4px 11px;
    border-radius: 100px;
    display: inline-block;
    margin: 14px 0 10px;
}

.pay-ops {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pay-opt {
    flex: 1;
    border: 2px solid var(--g1);
    border-radius: 14px;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.22s;
    background: var(--g0);
    position: relative;
}

.pay-opt:hover {
    border-color: var(--y);
    background: #fffbe6;
}

.pay-opt.sel {
    border-color: var(--yd);
    background: rgba(245, 197, 24, 0.09);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18);
}

.pay-opt input {
    display: none;
}

.pay-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pay-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
}

.pay-opt.sel .pay-name {
    color: var(--b);
}

.pay-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--y);
    color: var(--b);
    font-size: 9px;
    display: none;
    align-items: center;
    justify-content: center;
}

.pay-opt.sel .pay-check {
    display: flex;
}

.pay-num {
    display: none;
    margin-bottom: 10px;
    animation: fadeIn 0.2s ease;
}

.pay-num.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pay-recap {
    background: linear-gradient(135deg, #012646, #044074);
    border-radius: 13px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay-recap-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.pay-recap-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--y);
    font-family: sans-serif;
}

.pay-recap-fcfa {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ══ MESSAGES D'ERREUR JS (validation côté client) ══
   À coller dans votre fichier style.css
   Compatible desktop + mobile, responsive
══════════════════════════════════════════════════ */

.js-field-error {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #dc2626;
    line-height: 1.4;
    width: 100%;
}

.js-field-error svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    stroke: #dc2626;
}

/* Bordure rouge sur le champ en erreur */
.fld input[aria-invalid="true"],
.fld select[aria-invalid="true"] {
    outline: 1.5px solid #dc2626;
    border-color: #dc2626;
}

/* Responsive : légèrement plus grand sur mobile */
@media (max-width: 600px) {
    .js-field-error {
        font-size: 11.5px;
    }
}
