:root {
        --tips-orange: #f38220;
        --tips-blue-bg: #dcf5f7;
        --tips-text: #333333;
        --card-radius: 20px;
    }

    body {
        background-color: var(--tips-blue-bg);
        font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        color: var(--tips-text);
        overflow-x: hidden;
    }

    .tips-header {
        background-color: var(--tips-orange);
        padding: 1rem 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 2rem;
    }

    .tips-header h4 {
        color: white;
        font-weight: 600;
        margin: 0;
    }

    #scene-container {
        background-color: white;
        border-radius: var(--card-radius);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: relative;
        width: 100%;
        height: 75vh;
        overflow: hidden;
    }

    #c {
        width: 100%;
        height: 100%;
        display: block;
    }

    #labels {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }

    .label {
        position: absolute;
        pointer-events: auto;
        background-color: #fff;
        color: var(--tips-orange);
        border: 2px solid var(--tips-orange);
        padding: 5px 12px;
        border-radius: 20px;
        font-weight: bold;
        font-size: 0.85rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        cursor: pointer;
        user-select: none;
        transform: translate(-50%, -50%);
        display: none;
        transition: background-color 0.2s, color 0.2s;
    }

    .label:hover {
        background-color: var(--tips-orange);
        color: white;
        z-index: 100;
    }

    .label::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: var(--tips-orange) transparent transparent transparent;
    }
    .label-selected {
        background-color: #28a745 !important; 
        color: white !important;
        border-color: #28a745 !important;
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
        z-index: 101; 
    }

    .label-selected::after {
        border-top-color: #28a745 !important;
    }

    .label-selected:hover {
        background-color: #218838 !important;
        border-color: #1e7e34 !important;
        color: white !important;
    }

    .btn-tips-nav {
        color: white;
        border-color: rgba(255,255,255,0.5);
        background: transparent;
    }

    .btn-tips-nav:hover {
        background-color: rgba(255,255,255,0.2);
        color: white;
        border-color: white;
    }

    .btn-tips-action {
        background-color: white;
        color: var(--tips-orange);
        border: 2px solid white;
        font-weight: bold;
    }

    .btn-tips-action:hover {
        background-color: #f8f9fa;
        color: #d66e15;
    }

    #chat-messages::-webkit-scrollbar {
        width: 6px;
    }
    #chat-messages::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 10px;
    }

    .msg-user {
        align-self: flex-end;
        background-color: #dcf5f7;
        color: #333;
        border: 1px solid #bcebf0;
    }

    .msg-bot {
        align-self: flex-start;
        background-color: white;
        color: #333;
        border: 1px solid #dee2e6;
    }

    .chat-bubble {
        padding: 8px 12px;
        border-radius: 15px;
        margin-bottom: 8px;
        max-width: 85%;
        font-size: 0.9rem;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    #selectors-container {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 200;
    height: 70%;
    justify-content: space-between;
    pointer-events: none; 
}

.cyl-selector-text {
    color: black;
    font-size: small;
    position: relative;
    left: 55px;
    margin-left: 10px;
}

.cyl-selector {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: white;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12 px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.cyl-selector:hover {
    border-color: var(--tips-orange);
    color: var(--tips-orange);
}

.cyl-selector.active {
    background-color: #28a745; /* Vert */
    border-color: #28a745;
    color: white;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
    transform: scale(1.1);
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 10;
}

#navigation-controls {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    gap: 20px; 
    pointer-events: auto; 
    z-index: 20;
}

#navigation-controls button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--tips-text);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

#navigation-controls button:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
    color: var(--tips-orange);
}

#navigation-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.cyl-selector.greyed-cyl{
    opacity:0.5;
    background-color:#b50a0a;
    border-color:#8f1313;
}
.histoires-page {
  min-height: 100vh;
  background: linear-gradient(#9beef6, 10%, white);
  background-repeat: no-repeat;
  background-size: cover;
}
.histoires-page .card {
    border: none;
    border-radius: 16px;
    transition: 0.3s;
}

.histoires-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/*page générer conseil*/
.genererConseil {
 min-height: 100vh;
  background: linear-gradient(#9beef6, 10%, white);
  background-repeat: no-repeat;
  background-size: cover;
}

.genererConseil textarea {
    border-radius: 12px;
    border: 1px solid #cfe2ff;
}
.btn-diffuser {
    background: #4da3ff;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-diffuser:hover {
    background: #2d8cff;
    transform: translateY(-2px);
}
/**page presentation*/
.presentation-page {
  min-height: 100vh;
  background: linear-gradient(#9beef6, 10%, white);
  background-repeat: no-repeat;
  background-size: cover;
}
.rectangle-usage {
    border: solid 3px #3374ac;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.presentation-page .guide-card {
    background-color: #3374ac;
    color: #f5f5f5;
    border: none;
    border-radius: 15px ;
}
/**
.presentation-page .guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}*/
.presentation-page .titre{
    text-align: center;
    font-family: sans-serif;
    font-style:italic ;
}
.presentation-page .btn-start-totem {
  background-color: #FFA94D;
  border: 3px solid #FF9A3D;
  color: #050846ff;
  transition: all 0.3s ease;
}
/**tips hearder*/
.tips-header {
    background-color: var(--tips-orange);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tips-header h4 {
    font-weight: 700;
}

#etapeTotemTxt {
    font-weight: 500;
}

.tips-header .btn {
    border-radius: 12px;
}
.etape-box {
    background: white;
    border-left: 5px solid #3374ac;
    padding: 10px 20px;
    border-radius: 12px;
    min-width: 350px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-height: 800px) {
    .tips-header .container {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .etape-box {
        padding: 4px 10px;
        min-width: 200px;
    }
    .tips-header h4 {
        font-size: 0.9rem;
    }
}