/* Formulaire de dépôt public FeriaMania : interface autonome, mobile-first. */
.depot-body {
    margin: 0;
    background: linear-gradient(155deg, #f0faeb 0%, #f6f8f6 40%, #f8f6f1 100%);
    color: #222a25;
    font-family: Arial, Helvetica, sans-serif;
}
.depot-body *, .depot-body *::before, .depot-body *::after {
    box-sizing: border-box;
}
.depot-page {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 22px 16px 64px;
}
.depot-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.depot-topbar img {
    display: block;
    width: 165px;
    max-width: 47vw;
    height: auto;
    border-radius: 7px;
}
.depot-back {
    padding: 11px 15px;
    border: 1px solid #d6e5d1;
    border-radius: 100px;
    background: #fff;
    color: #284324;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.depot-back:hover { background: #ebf9df; }
.depot-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4eadf;
    border-radius: 20px;
    padding: 36px 46px 43px;
    box-shadow: 0 18px 45px rgba(28, 55, 25, .085);
}
.depot-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    border-radius: 0 0 0 100%;
    background: radial-gradient(circle at top right, rgba(150, 235, 72, .18), transparent 75%);
    pointer-events: none;
}
.depot-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.depot-heading-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: linear-gradient(130deg, #c4f988, #eafbdc);
    font-size: 27px;
    box-shadow: inset 0 0 0 1px #c9eca9;
}
.depot-card h1 {
    color: #1c3020;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.23;
    margin: 0;
    letter-spacing: -.5px;
}
.depot-card h1 span { color: #369c17; }
.depot-accent-line {
    height: 4px;
    width: 76px;
    border-radius: 5px;
    background: linear-gradient(90deg, #84d539 50%, #f7a638 50%);
    margin-bottom: 30px;
}
.depot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
}
.depot-field { position: relative; min-width: 0; }
.depot-field-icon {
    position: absolute;
    z-index: 1;
    left: 17px;
    top: 18px;
    font-size: 20px;
    line-height: 1.25;
    pointer-events: none;
    user-select: none;
}
.depot-field input,
.depot-field select,
.depot-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1.5px solid #d0dec8;
    border-radius: 12px;
    background: #fcfefa;
    color: #253226;
    font: 400 16px/1.4 Arial, Helvetica, sans-serif;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.depot-field input,
.depot-field select { min-height: 59px; padding: 16px 17px 16px 53px; }
.depot-field textarea { min-height: 185px; padding: 19px 17px 17px 53px; resize: vertical; line-height: 1.65; }
.depot-field input::placeholder,
.depot-field textarea::placeholder { color: #657469; opacity: 1; }
.depot-field select { cursor: pointer; appearance: auto; }
.depot-field select:invalid { color: #657469; }
.depot-field input:focus,
.depot-field select:focus,
.depot-field textarea:focus {
    background: #fff;
    border-color: #6fc92d;
    box-shadow: 0 0 0 3px rgba(125, 208, 65, .18);
}
.depot-description-field .depot-field-icon { top: 20px; }
.depot-description-hint {
    margin: 9px 3px 0;
    color: #53644f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}
.depot-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.depot-card h2 { margin: 0; font-size: 19px; line-height: 1.4; color: #253728; }
.depot-contact-heading {
    margin: 12px 0 0;
    padding: 22px 2px 0;
    border-top: 1px solid #e2ebdc;
}
.depot-photos {
    margin: 7px 0 3px;
    padding: 19px;
    border: 1px solid #d5e6cc;
    border-radius: 15px;
    background: linear-gradient(135deg, #f6fdef 0%, #fff 100%);
}
.depot-photo-counter {
    flex: 0 0 auto;
    border-radius: 100px;
    background: #e1f7ce;
    color: #317718;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 11px;
}
.depot-photo-picker {
    position: relative;
    border: 2px dashed #9fd27b;
    border-radius: 13px;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.depot-photo-picker:hover,
.depot-photo-picker.is-dragging,
.depot-photo-picker:focus-within { background: #f2ffe9; border-color: #55b328; }
.depot-photo-choose {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    min-height: 175px;
    padding: 23px 14px;
    text-align: center;
    cursor: pointer;
}
.depot-photo-symbol { font-size: 36px; line-height: 1; }
.depot-photo-label { font-size: 16px; font-weight: 800; color: #29452b; }
.depot-photo-caption { color: #647464; font-size: 13px; }
.depot-photo-button {
    margin-top: 5px;
    display: inline-block;
    border-radius: 9px;
    background: #83d949;
    color: #16320d;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 800;
}
.depot-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}
.depot-photo-help { color: #657363; font-size: 12px; line-height: 1.55; margin: 12px 0 0; }
.depot-photo-message { margin: 8px 0 0; color: #a3411a; font-weight: 700; font-size: 13px; }
.depot-photo-message:empty { display: none; }
.depot-photo-previews {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.depot-photo-previews:empty { display: none; }
.depot-preview {
    position: relative;
    min-width: 0;
    border: 1px solid #d8e5d2;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.depot-preview img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.depot-preview-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #546452;
    font-size: 11px;
    padding: 7px 5px;
}
.depot-preview-primary {
    position: absolute;
    left: 3px;
    bottom: 33px;
    padding: 3px 6px;
    border-radius: 5px;
    color: #183912;
    font-size: 10px;
    font-weight: 800;
    background: #c6fa9d;
}
.depot-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 38, 32, .85);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.depot-preview-remove:hover { background: #b82d20; }
.depot-security { margin-top: 24px; padding-top: 21px; border-top: 1px solid #e2ebdc; }
.depot-terms { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0 14px; font-size: 14px; line-height: 1.5; }
.depot-terms input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #64bd26; }
.depot-terms a { color: #358915; text-decoration: underline; font-weight: 700; }
.depot-submit {
    width: 100%;
    margin-top: 5px;
    padding: 17px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(110deg, #95e65b, #71ca2e);
    color: #173312;
    box-shadow: 0 5px 0 #459c19;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    transition: transform .15s, box-shadow .15s;
}
.depot-submit:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #459c19; }
.depot-submit:active { transform: translateY(2px); box-shadow: 0 3px 0 #459c19; }
.depot-error { padding: 15px 18px; background: #fff0eb; border: 1px solid #de8777; border-radius: 8px; margin-bottom: 22px; }
.depot-error ul { margin-bottom: 0; padding-left: 22px; }
.depot-honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; width: 1px; height: 1px; overflow: hidden; }
.depot-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
@media (max-width: 680px) {
    .depot-page { padding: 14px 10px 42px; }
    .depot-card { padding: 27px 18px 35px; border-radius: 15px; }
    .depot-topbar { margin-bottom: 16px; }
    .depot-back { font-size: 12px; padding: 10px; }
    .depot-heading { gap: 10px; }
    .depot-heading-icon { width: 44px; height: 44px; font-size: 23px; }
    .depot-photo-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .depot-photos { padding: 13px; }
    .depot-card h2 { font-size: 17px; }
    .depot-photo-choose { min-height: 155px; }
}
@media (max-width: 380px) {
    .depot-photo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .depot-card { padding: 22px 13px 31px; }
    .depot-field input, .depot-field select, .depot-field textarea { font-size: 15px; }
}

/* Page de confirmation multilingue. */
.depot-thankyou { margin-top: 44px; padding: 44px 40px 48px; text-align: center; }
.depot-thankyou-symbol {
    display: grid; place-items: center; width: 66px; height: 66px;
    margin: 0 auto 22px; border-radius: 50%;
    background: #e7f9d8; color: #2d8d17; font-size: 35px; font-weight: 900;
    box-shadow: 0 0 0 7px #f4fcec;
}
.depot-thankyou .depot-accent-line { margin: 18px auto 27px; }
.depot-translations { display: grid; gap: 13px; text-align: left; }
.depot-translation {
    display: flex; align-items: flex-start; gap: 17px;
    border: 1px solid #e2eadd; border-radius: 12px;
    background: #fbfef8; padding: 16px 20px;
}
.depot-translation:first-child { background: #f3fbe9; border-color: #d0e8bd; }
.depot-translation p { margin: 0; color: #2c3e2d; font-size: 15px; line-height: 1.65; }
.depot-language-flag { flex: 0 0 auto; font-size: 26px; line-height: 1.25; }
.depot-thankyou-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.depot-thankyou-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border-radius: 11px; text-decoration: none; font-size: 15px; font-weight: 800; }
.depot-thankyou-home { background: #fff; color: #29462b; border: 1px solid #bad6ac; }
.depot-thankyou-home:hover { background: #f3fce9; }
.depot-thankyou-new { width: auto; margin-top: 0; }
@media (max-width: 680px) {
    .depot-thankyou { margin-top: 24px; padding: 34px 18px; }
    .depot-translation { padding: 13px; gap: 11px; }
    .depot-thankyou-actions a { width: 100%; }
}

/* V4 : sélecteur multilingue (compact, mobile et accessible). */
.depot-lang-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: -9px 0 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e5eddf;
}
.depot-lang-caption {
    color: #4c6246;
    font-size: 12px;
    font-weight: 700;
}
.depot-lang-options { display: flex; flex-wrap: wrap; gap: 6px; }
.depot-lang-options a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d1e0c9;
    border-radius: 100px;
    background: #fff;
    color: #30412d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.depot-lang-options a:hover { background: #edfbe6; border-color: #8bc66d; }
.depot-lang-options a.is-active {
    background: #dff9cd;
    border: 2px solid #69b639;
    color: #215713;
}
.depot-heading-base { color: #1c3020 !important; }
.depot-heading-free { color: #369c17 !important; }
@media (max-width: 680px) {
    .depot-lang-switch { justify-content: center; margin-top: -6px; }
    .depot-lang-caption { width: 100%; text-align: center; }
    .depot-lang-options a { padding: 8px 11px; }
}
