/* ----------------------------- */
/* RESET & BODY */
/* ----------------------------- */
* {
    box-sizing: border-box;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

.hidden {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #FCEADE;
    font-family: 'Nerko One', cursive;
    overflow: hidden;
    touch-action: none;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----------------------------- */
/* NAVIGATION */
/* ----------------------------- */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #FCEADE; /* Couleur beige de la maquette */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 2000;
}

#top-nav #nav-title.hidden ~ .header-right {
    margin-left: auto;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

#nav-title {
    font-size: 24px;
    font-weight: bold;
    color: #4C1799;
    flex: 1;
    text-align: center;
    font-family: 'Nerko One', cursive;
}
#nav-title.hidden {
    display: none !important;
}

/* Nouveau : Style barre de recherche header */
#nav-search-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    margin: 0 5px;
}

#nav-search-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    background: url('ecran/recherche.svg') no-repeat center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

#input-nav-search {
    width: 100%;
    height: 30px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    padding: 0 10px;
    margin-bottom: 5px;
}

#btn-nav-search-clear {
    position: absolute;
    right: 15px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #4C1799;
    font-size: 18px;
    font-weight: bold;
}

#nav-back-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
}

#moments-badge {
    width: 40px;
    height: 40px;
    background-color: #57B591; /* Vert/Teal de la maquette */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Nerko One', cursive;
    cursor: pointer;
}

#moments-badge.hidden {
    display: none !important;
}

#nav-back-container img {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

#nav-back-container.hidden {
    visibility: hidden;
}

#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background-color: #FCEADE;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    z-index: 99999;
}

#plus-button {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#plus-button img {
    width: 35px;
    height: 35px;
}

.nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bottom-nav .nav-item img {
    width: 40px !important;
    height: 40px !important;
    display: block !important;
    object-fit: contain !important;
}

.nav-item.active img {
    opacity: 1;
    transform: scale(1.1);
}

/* ----------------------------- */
/* MAP (LEAFLET) */
/* ----------------------------- */
#map-container {
    flex: 1;
    position: relative;
    z-index: 1;
    background: #FCEADE;
}

#map {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Masquer les contrôles par défaut */
.leaflet-control-zoom,
.leaflet-control-attribution {
    display: none !important;
}

/* Style des Pictos (Markers) */
.custom-marker {
    background: none;
    border: none;
}

.custom-marker img {
    width: 60px;
    /* Taille par défaut des pictos */
    height: 60px;
    display: block;
    transform: translate(-50%, -50%);
    /* Centrage */
}

/* ----------------------------- */
/* UI: ECRAN DE SELECTION (1)    */
/* ----------------------------- */
#screen-selection {
    position: absolute;
    top: 70px;
    bottom: 70px;
    left: 0;
    right: 0;
    background: #FCEADE;
    z-index: 1500;
    display: flex;
    flex-direction: column;
}

/* ----------------------------- */
/* UI: ECRAN MOCKUP              */
/* ----------------------------- */
#screen-mockup {
    position: fixed;
    top: 70px;
    bottom: 70px;
    left: 0;
    right: 0;
    background: #FCEADE;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mockup-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mockup-inner {
    position: relative;
    width: 100%;
    max-width: 600px;
}

#mockup-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

#screen-mockup.fit-screen {
    overflow: hidden !important;
}

#screen-mockup.fit-screen .mockup-content,
#screen-mockup.fit-screen .mockup-inner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#screen-mockup.fit-screen #mockup-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.screen-header {
    display: flex;
    align-items: center;
    padding: 20px;
    color: #1a1a1a;
}

#close-selection {
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-right: 15px;
}

.screen-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: bold;
}

.selection-box {
    flex: 1;
    background: white;
    margin: 0 20px 20px 20px;
    padding: 15px;
    overflow-y: auto;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-item {
    background: #EAEAEA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.grid-item img {
    height: 80px;
    width: auto;
    max-width: 100%;
    margin-bottom: 10px;
}

.grid-item span {
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

/* ----------------------------- */
/* UI: MODALS (GLOBAL)           */
/* ----------------------------- */

/* IMPORTANT: On ne force PAS display: flex ici, 
   on laisse .hidden s'occuper du display: none */
#modal-tirelire,
#modal-capsule-options,
#modal-capsule-anniversary,
#modal-video-viewer,
#modal-validation-moments,
#modal-invite-options,
#modal-invite-sms,
#modal-search-info,
#modal-share-message,
#modal-ajout-enfant,
#screen-nommage {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000 !important;
    display: flex; /* Flex par défaut */
    justify-content: center;
    align-items: center;
}

/* La classe .hidden DOIT avoir !important pour gagner sur le flex ci-dessus */
.hidden {
    display: none !important;
}

.capsule-modal {
    position: relative;
    z-index: 7002;
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nommage-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 7001;
}

/* ----------------------------- */
/* UI: OPTIONS CAPSULE MODAL     */
/* ----------------------------- */

.capsule-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.capsule-info {
    font-size: 18px;
    color: #4C1799;
    font-weight: bold;
    text-align: center;
    margin: 0;
    margin-bottom: 10px;
    font-family: 'Nerko One', cursive;
}

.capsule-count {
    font-size: 50px;
    display: block;
    margin: 10px 0;
}

.capsule-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capsule-option-row:active {
    transform: scale(0.98);
}

.option-text {
    font-size: 16px;
    color: #4C1799;
    font-weight: bold;
    text-align: right;
    flex: 1;
    font-family: 'Nerko One', cursive;
    white-space: nowrap;
}

.option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----------------------------- */
/* UI: ANNIVERSARY MODAL         */
/* ----------------------------- */

.anniversary-modal {
    max-width: 400px;
}

.anniversary-step {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.anniversary-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-family: 'Nerko One', cursive;
    color: #4C1799;
    font-weight: bold;
    font-size: 18px;
}

.anniversary-header-row.summary {
    justify-content: center;
    gap: 15px;
    background: #471AB6;
    color: white !important;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

.anniversary-header-row.summary span {
    color: white !important;
}

.age-input {
    width: 60px;
    height: 40px;
    border: 1px solid #4C1799;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-weight: bold;
}

.anniversary-action-row {
    display: flex;
    justify-content: center;
}

.btn-next {
    background: #471AB6;
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-family: 'Nerko One', cursive;
}

.conseils-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conseils-title {
    margin: 0;
    color: #4C1799;
    font-size: 18px;
    font-weight: bold;
}

.conseils-content {
    display: flex;
    gap: 10px;
}

.conseils-content p {
    margin: 0;
    color: #4C1799;
    font-size: 15px;
    line-height: 1.4;
    text-align: justify;
}

.conseils-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ----------------------------- */
/* UI: CAMERA SIMULATION         */
/* ----------------------------- */

#screen-camera {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    z-index: 6000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-mockup-img {
    height: 100%;
    width: 100%;
    object-fit: contain; /* Garde les proportions de l'image caméra */
}

#btn-camera-next {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.video-preview-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.video-preview-img {
    width: 60%; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-action-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 0 10px;
}

.btn-retry {
    background: #BDBDC0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    font-family: 'Nerko One', cursive;
}

.btn-send {
    background: #471AB6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    font-family: 'Nerko One', cursive;
}

/* ----------------------------- */
/* UI: ECRAN NOMMAGE (2)         */
/* ----------------------------- */

.nommage-modal {
    position: relative;
    z-index: 7005;
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.modal-icon-container {
    width: 120px;
    height: 120px;
    border: 2px solid #5C15E3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.modal-icon-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.nommage-modal label {
    font-size: 15px;
    color: #4C1799; /* Violet */
    font-weight: bold;
    margin-bottom: 5px;
    align-self: flex-start;
    padding-left: 10%;
}

#nommage-input {
    width: 80%;
    border: 3px solid #7EC6C7; /* Border aqua sketchy */
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    color: #4C1799;
    outline: none;
    margin-bottom: 30px;
    /* Sketchy look de l'input */
    border-bottom-left-radius: 8px;
    border-top-right-radius: 6px;
}

#nommage-btn-add {
    background: #B6B6B6;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    cursor: pointer;
    pointer-events: none; /* Disabled tant que non rempli */
}

#nommage-btn-add.ready {
    background: #FF7B54;
    pointer-events: auto;
}

/* ----------------------------- */
/* UI: INVITATION MODALS         */
/* ----------------------------- */

.invite-opts {
    padding: 0 !important;
    background: transparent !important;
    max-width: 320px;
}

.invite-options-container {
    position: relative;
    width: 100%;
}

.full-mockup-img {
    width: 100%;
    display: block;
    height: auto;
}

#btn-invite-contact, #btn-invite-sms, #btn-invite-email {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 60px;
    cursor: pointer;
}

#btn-invite-contact { top: 35%; }
#btn-invite-sms     { top: 58%; }
#btn-invite-email   { top: 80%; }

.sms-form-modal {
    padding: 0 !important;
    background: white !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column;
}

.sms-form-modal .modal-close {
    top: 20px !important;
    right: 20px !important;
    color: #4C1799 !important;
    font-size: 35px !important;
    z-index: 100010 !important;
}

.sms-form-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.sms-form-container .full-mockup-img {
    height: 100%;
    object-fit: contain;
}

.sms-input {
    position: absolute;
    left: 22%;
    width: 60%;
    height: 4.5%;
    background: transparent;
    border: none;
    font-size: 16px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    outline: none;
}

.input-nom    { top: 8.5%; }
.input-parent { top: 16.5%; }
.input-tel    { top: 24.5%; }

#btn-sms-send {
    position: absolute;
    bottom: 2%;
    left: 35%;
    width: 30%;
    height: 60px;
    cursor: pointer;
}

select.input-parent {
    appearance: none;
    cursor: pointer;
}
/* ----------------------------- */
/* UI: ECRAN RECHERCHE           */
/* ----------------------------- */

#screen-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FCEADE;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

#search-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    background: #FCEADE;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#search-back-container img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

#search-back-container img:active {
    transform: scale(0.9);
}

#search-input-wrapper {
    flex: 1;
    position: relative;
    height: 50px;
    background: url('ecran/recherche.svg') no-repeat center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: none;
    transition: all 0.3s ease;
}


#search-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    padding-right: 40px;
}

#btn-search-validate {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    background: url('navigation/search.svg') no-repeat center;
    background-size: 70%;
    filter: invert(16%) sepia(84%) saturate(2359%) hue-rotate(256deg) brightness(85%) contrast(92%); /* Color #4C1799 */
    cursor: pointer;
}

#btn-search-clear {
    position: absolute;
    right: 50px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    font-weight: bold;
}

#search-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #FCEADE;
}

/* Style for suggestions in search screen */
.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-section-title {
    font-size: 20px;
    color: #471AB6;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.recent-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

.recent-search-item:active {
    transform: scale(0.98);
}

.recent-search-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.recent-search-text {
    flex: 1;
    font-size: 16px;
    color: #4C1799;
}

.result-mockup {
    width: 100%;
    display: block;
}

/* ----------------------------- */
/* UI: MESSAGERIE                */
/* ----------------------------- */

#nav-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#crayon-button img {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

#footer-photo-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100000;
    background: #FCEADE;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-action-footer {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.photo-footer-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#footer-barre-message {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    z-index: 100000;
}

#footer-barre-message-img {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
}

#img-barre-message {
    width: 100%;
    height: auto;
    display: block;
}

.message-footer-custom {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.msg-footer-plus {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.msg-footer-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.msg-input-container {
    flex: 1;
    position: relative;
    height: 45px;
}

.msg-input-bg {
    width: 100%;
    height: 100%;
}

#input-message {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    bottom: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Nerko One', cursive;
    color: #4C1799;
    font-size: 18px;
}

#footer-zoom-message {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100000;
    background: #FCEADE;
    display: flex;
    justify-content: center;
    align-items: center;
}

#btn-share-message {
    width: 30px;
    height: 30px;
    cursor: pointer;
    pointer-events: auto;
}

.share-message-modal {
    padding: 10px !important;
}

.picto-badge {
    position: absolute;
    top: 5%;
    right: 5%;
    background-color: #57B591; /* Vert/Teal cohérent avec moments-badge */
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Nerko One', cursive;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid white;
    z-index: 100;
}
/* ----------------------------- */
/* UI: ECRAN DOUDOU              */
/* ----------------------------- */

#screen-doudou {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #FCEADE;
    z-index: 6000;
    display: flex;
    flex-direction: column;
}

#doudou-header {
    background: #FCEADE;
    padding: 15px 15px 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doudou-header-row {
    display: flex;
    align-items: center;
}

.row1 {
    justify-content: space-between;
}

#btn-doudou-back {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.doudou-title {
    font-size: 26px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-weight: bold;
    flex: 1;
    text-align: left;
    margin-left: 15px;
}

.doudou-header-icons {
    display: flex;
    gap: 10px;
}

.doudou-icon-top {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.row2 {
    justify-content: center;
    gap: 15px;
}

.doudou-arrow {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.doudou-date {
    font-size: 18px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-weight: bold;
}

.doudou-meteo {
    width: 50px;
    height: 30px;
    object-fit: contain;
}

.doudou-tabs {
    display: flex;
    justify-content: space-between;
    gap: 0;
    background-color: #bd9b8c;
    padding: 0;
    border-radius: 0;
}

.doudou-tab {
    flex: 1;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#doudou-content {
    flex: 1;
    overflow-y: auto;
    background: #FCEADE;
}

#img-doudou-display {
    width: 100%;
    display: block;
}
/* ----------------------------- */
/* UI: SWITCH ENFANTS            */
/* ----------------------------- */
#nav-kids-switch {
    flex: 2;
    display: flex;
    justify-content: center;
    margin: 0 10px;
}

.switch-container {
    display: flex;
    background: white;
    border: 2px solid #4C1799;
    border-radius: 25px;
    overflow: hidden;
    height: 44px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.switch-option {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nerko One', cursive;
    font-size: 13px;
    line-height: 1;
    font-weight: bold;
    color: #4C1799;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100px;
}

.switch-option.active {
    background: #4C1799;
    color: white;
}

#green-circle-badge {
    width: 40px;
    height: 40px;
    background: #57B591; /* Même vert que le badge moments */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Nerko One', cursive;
    cursor: pointer;
}

/* Modale Enfant Specificity */
.modal-enfant-content {
    position: relative;
    z-index: 7002;
    background: white;
    width: 85%;
    max-width: 350px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ----------------------------- */
/* UI: PHOTO DETAILS             */
/* ----------------------------- */
#photo-timestamp {
    text-align: center;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
}

#photo-details {
    padding: 15px 20px;
    background: #FCEADE;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.photo-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-icon {
    object-fit: contain;
}

.icon-star { width: 26px; height: 26px; cursor: pointer; }
.icon-heart { width: 26px; height: 26px; cursor: pointer; }
.icon-comment { width: 26px; height: 26px; cursor: pointer; }
.icon-more-desc { width: 22px; height: 22px; cursor: pointer; }

.stat-count {
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-size: 20px;
}

.photo-desc {
    flex: 1;
    margin: 0;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
}

.photo-tags {
    margin: 0;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-size: 14px;
}

.photo-action-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.icon-share { width: 40px; height: 40px; cursor: pointer; }
.icon-trash { width: 35px; height: 35px; cursor: pointer; }
.icon-three-dots { width: 30px; height: 30px; cursor: pointer; }

.icon-three-dots-container {
    background: #EAEAEA;
    padding: 5px 10px;
    border-radius: 10px;
}

#header-identification {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ----------------------------- */
/* UI: PHOTO FLOW                */
/* ----------------------------- */
#screen-photo-flow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #FCEADE;
    z-index: 8000;
    display: flex;
    flex-direction: column;
}

#photo-flow-header {
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    font-size: 22px;
}

#btn-photo-flow-back { width: 35px; height: 35px; cursor: pointer; }
#photo-flow-title { flex: 1; text-align: center; }

.photo-flow-content { flex: 1; overflow-y: auto; padding: 20px; }
.photo-flow-inner { width: 100%; max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; }
#photo-flow-img {
    max-height: 45vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.photo-flow-step {
    width: 100%;
}

.photo-flow-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.btn-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Nerko One', cursive;
    font-size: 16px;
    color: white !important;
    padding: 12px 20px;
    border-radius: 25px;
    min-width: 140px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-prev {
    background: #8E8E93; /* Gris */
}

.btn-next {
    background: #471AB6; /* Violet */
}

.btn-flow img {
    width: 18px;
    filter: brightness(0) invert(1);
}

#photo-flow-legend {
    width: 100%;
    height: 60px;
    border: 2px solid #7EC6C7;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Nerko One', cursive;
    color: #4C1799;
    background: white;
    outline: none;
    margin-bottom: 15px;
    resize: none;
}

.photo-flow-tag-row {
    background: white; padding: 15px; border-radius: 15px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.photo-flow-tag-row p { margin: 0; font-family: 'Nerko One', cursive; color: #4C1799; font-size: 18px; }
.tag-btns { display: flex; gap: 15px; }
.tag-btns img { width: 35px; height: 35px; cursor: pointer; }

/* ----------------------------- */
/* UI: COMING SOON               */
/* ----------------------------- */
#coming-soon-ui {
    background: white;
    padding: 10vh 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
#coming-soon-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
}
.coming-soon-content p {
    font-size: 24px;
    color: #4C1799;
    font-family: 'Nerko One', cursive;
    text-align: center;
}



/* ----------------------------- */
/* UI: ECRAN JEUX                */
/* ----------------------------- */

#screen-jeux {
    position: fixed;
    top: 70px;
    bottom: 70px;
    left: 0;
    right: 0;
    background: #FCEADE;
    z-index: 1000;
    overflow-y: auto;
}

#jeux-container {
    position: relative;
    width: 100%;
}

.jeux-bg-img {
    width: 100%;
    display: block;
}

#zone-jeux-2-5 {
    position: absolute;
    top: 11%; /* Remonté de 13.5% à 11% */
    left: 0;
    width: 100%;
    padding-bottom: 20px;
}

.scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
    display: flex;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scrollable-jeux-img {
    height: 160px; /* Taille uniforme pour toutes les lignes */
    width: auto;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 10px;
}

#zone-jeux-histoire {
    position: absolute;
    top: 43%; /* Ajustement pour être sous le titre Histoire */
    left: 0;
    width: 100%;
}

#zone-jeux-6-9 {
    position: absolute;
    top: 78%; /* Descendu à 78% comme demandé */
    left: 0;
    width: 100%;
}

/* UI: TIRELIRE MODAL */
.tirelire-input-number {
    position: absolute;
    top: 41%;
    left: 47%;
    width: 30%;
    height: 16%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: bold;
    color: #4C1799;
    text-align: center;
    font-family: 'Nerko One', cursive;
}

.tirelire-btn-overlay {
    position: absolute;
    top: 78%;
    left: 28%;
    width: 44%;
    height: 16%;
    cursor: pointer;
    background: transparent;
}


/* UI: CAGNOTTE MODAL */
.cagnotte-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #DDB868;
    border-radius: 12px;
    padding: 10px 15px;
    margin: 10px 10px;
    gap: 10px;
    background-color: white;
}

.cagnotte-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cagnotte-text {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: bold;
    font-family: 'Nerko One', cursive;
    flex-grow: 1;
    line-height: 1.2;
    text-align: left;
}

.cagnotte-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cagnotte-input {
    width: 60px;
    height: 35px;
    border: 2px solid #000;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    font-family: 'Nerko One', cursive;
    outline: none;
    font-weight: bold;
}

.cagnotte-currency {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

