* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

body {
    font-family: poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    overflow: hidden;
    height: 100vh;
    color: #333;
}

#fresco-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #FFF;
}

#fresco-scene {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
    transform-origin: 0 0;
    transition: transform 0.3s ease-out;
   
}

#fresco-scene:before
{
    content:"";
    width:100%;
    height:100%;
    position:absolute;
    box-shadow: 0 0 20px 20px #FFF inset,0 0 20px 20px #FFF;
    z-index:200;
    pointer-events: none;
}

#fresco-scene.dragging {
    cursor: grabbing;
    transition: none;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

#objects-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fresco-object {
    position: absolute;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.3s ease, transform .3s ease, margin .2s ease-out;
    border-radius: 8px;
}

#fresco-scene.dragging .fresco-object
{
     transition:all 0s;
}

.fresco-object:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    z-index: 1000;
}

/*.fresco-object::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}*

.fresco-object:hover::before {
    opacity: 0.7;
}

/* Contrôles */
#controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 4001;
}

#about-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    flex-direction: column;
    gap: 12px;
    z-index: 4001;
    visibility:hidden;
}





#fullscreen-btn,#about-btn,
#reset-view {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reset-view, #zoom-info
{
    display:none;
}

#fullscreen-btn:hover,
#reset-view:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#fullscreen-btn {
    font-size: 16px;
}

#zoom-info {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 60px;
}

/* Modal d'introduction */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
}

.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.intro-overlay.loading-complete {
    background: rgba(0, 0, 0, 0.3);
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.about-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.about-overlay.visible {
    opacity: 1;
    visibility: visible;
    display:flex !important;
}
.intro-modal {
    background: url(./Assets/image/corner.png) no-repeat bottom right white;
    /* border-radius: 20px; */
    padding: 20px;
    max-width: 600px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(1);
    transition: all 0.3s ease;
}

.about-modal {
    background: url(./Assets/image/corner-rev.png) no-repeat top left white;
    
    padding: 20px;
    max-width: 800px;
    max-height: 90%;
    
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(1);
    transition: all 0.3s ease;
    width: 90%;
    overflow-y: scroll;
}

.about-modal h1 {
    color:#E50019;

    
}

.sign_lapin a
{
    color:#888; 
    display:block;
    margin:2.5em 2em 0 0;
    float:right;
}

.sign_lapin
{
width:80%;
background:#EEE;
border-radius:12px;
text-align:center;
margin:auto;
line-height:100%;

}


.about-modal h2
{
    margin:1em 0;
}
.intro-logo {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    
}

.intro-logo img
{
    max-height:50px
}

#cea-logo80ans
{
    transform:scale(.8);
}

#cea-logo {

    width: auto;
    /* margin-left: 50%; */
}

.intro-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-description {
    font-size: 17px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 10px;
}

.intro-instructions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
    padding: 0px;
    background: #f8fafc;
    border-radius: 12px;
    /* font-size: 12px !important; */
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2d3748;
}

.instruction-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#loading-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 20px;
}

.start-button {
    background: #e50019; /*linear-gradient(135deg, #3b82f6, #8b5cf6);*/
    color: white;
    border: none;
    padding: 15px 30px;
    /*border-radius: 12px;*/
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-left: 20%;
    width: 60%;
    text-align: center;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.start-button.hidden {
    display: none;
}

/* Modal d'objet */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.object-image {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: scale(1.3) translate(-10%, -35%);
    height: 0;
    width: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
    filter: drop-shadow(2px 4px 6px #FFF);
    pointer-events: none;
    transform-origin: 50% 50%;
    max-height: 100%;
}

.modal-overlay.visible .object-image {
    opacity: 1;
}

.modal {
    background: url(./Assets/image/corner.png) no-repeat right bottom#FFFE;
    /* border-radius: 16px; */
    padding: 32px;
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    margin-left: 25%;
    z-index: 2;
}

.modal-overlay.visible .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

#modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e50019;
    line-height: 1.2;
    text-transform: uppercase;
}

#modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 24px;
}

#modal-link-container {
    display: flex;
    justify-content: flex-end;
}

#modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #E50019;
    color: white;
    text-decoration: none;
    /* border-radius: 8px; */
    font-weight: 600;
    transition: all 0.3s ease;
}

#modal-link:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

#modal-link.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    #controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    #fullscreen-btn,
    #reset-view {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    #fullscreen-btn {
        font-size: 14px;
    }
    
    .intro-modal {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .intro-title {
        font-size: 24px;
    }
    
    .intro-description {
        font-size: 16px;
    }
    
    .intro-instructions {
        padding: 15px;
    }
    
    .instruction-item {
        font-size: 14px;
    }
    
    .modal {
        padding: 24px;
        margin: 20px;
        width: 90%;
        bottom: 3%;
        top: unset !important;
        position: absolute;
    }
    
    .object-image {
        position: absolute;
        left: 50%;
        top: 5%;
        transform: none;
        height: 40vh;
        margin-bottom: 20px;
        margin-left: -45%;
        width: 90% !important;
        top: 20vh;
        margin-top: -10vh;
        transform: scale(1.3);
    }
    
    #modal-title {
        font-size: 24px;
        margin-top: 1em;
    }
    
    #modal-description {
        font-size: 15px;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Animation de pulsation pour le chargement */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#loading-text {
    animation: pulse 2s infinite;
}


#logo80ans
{
    width: 15%;
    max-width: 75px;
    position:fixed;
    z-index:1999;
    filter: drop-shadow(0px 0px 10px);
    /*pointer-events:none;*/
    bottom:1em;
    right:1em;
}
#logoCEA
{
    width: 15%;
    max-width: 75px;
    position:fixed;
    z-index:1999;
    filter: drop-shadow(0px 0px 10px);
    /*pointer-events:none;*/
    top:1em;
    left:1em;
}