  @font-face {
    font-family: MODERNE;
    src: url(../TYPO/MODERNTYPEWRITER.ttf);
  }

    @font-face {
    font-family: monu;
    src: url(../TYPO/monument2.otf);
  }
  
  body {
      margin: 0px;
      padding: 25px;
      overflow-x: hidden;
      height: auto;
      background-color: rgb(72, 79, 70);
      font-family: monu!important;
      overflow-y: hidden;
    }


    /* ELEMENT FIXED - LAYOUT PRINCIPAL */
    .element-fixed {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        padding: 25px;
        box-sizing: border-box;
        pointer-events: none;
    }

    /* IFRAME GET YOUR INFO*/
    #getyourinfo {
        grid-column: 1;
        grid-row: 1;
        width: 400px;
        height: 150px;
        object-fit: cover;
        pointer-events: none;
        z-index: 1;
        justify-self: start;
        align-self: start;
    }

    /* VIDEO */
    #video-index {
        grid-column: 2;
        grid-row: 1;
        width: 50%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        justify-self: end;
        align-self: start;
    }

    /* LOGO CAS - Bas Gauche */
    .cas {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        pointer-events: auto;
        z-index: 10;
    }

    .cas img {
        height: 60px;
        width: auto;
    }

    /* ICONS - Bas Droit */
    .icon {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
        pointer-events: auto;
        z-index: 10;
    }

    .logo-small {
        height: 60px;
        width: 60px;
        cursor: pointer;
        object-fit: contain;
    }

    /* POPUP */
    .popup {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        pointer-events: auto;
    }

    #alarm-popup.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .popup-content {
        position: relative;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgb(72, 79, 70);
        color: rgb(72, 79, 70);
        border-radius: 6px;
        padding: 30px;
        width: 40vw;
        display: flex;
        flex-direction: column;
    }

    .popup-content.popup-image {
        background: rgba(0, 0, 0, 0.9);
        border: none;
        padding: 20px;
        width: auto;
        max-width: 80vw;
        max-height: 80vh;
        justify-content: center;
        align-items: center;
    }

    .popup-content.popup-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 28px;
        font-weight: bold;
        color: white;
        cursor: pointer;
        z-index: 1001;
    }

    /* ZONE LIBRE - Trigger hover en haut de l'écran */
    #zoneLibre {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        height: 120px;
        z-index: 10001;
        cursor: pointer;
        background: transparent;
        border: none;
        pointer-events: auto;
        margin: 0;
        padding: 0;
    }

    /* NOTE ROSE - Panneau qui glisse */
    #noteRose {
        position: fixed;
        right: 0;
        top: -100%;
        width: 300px;
        height: 70vh;
        z-index: 10002;
        transition: top 0.5s ease;
        pointer-events: auto;
    }

    #noteRose img {
        width: 300px;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
    }

    /* Textarea dans la note */
    #noteText {
        position: absolute;
        top: 70%;
        left: 30px;
        width: 80%;
        height: 90%;
        background: transparent;
        border: none;
        outline: none;
        font-family: MODERNE, monospace;
        font-size: 17px;
        line-height: 1.4;
    }

    /* POPUP FIN - Bloque l'interaction */
    #endPopup {
        display: none;
        position: fixed;
        z-index: 20000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color:  rgba(255, 60, 60, 0.5);
        pointer-events: auto;
    }

    #endPopup.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
 

    .close:hover {
        color: rgb(255, 34, 34);
    }
    /* ------------------------------------------ */

    /*  ------------------------------------------ VIDEO SURVEILLANCE */
    #video-surveillance {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: auto;
        z-index: 102;
        object-fit: contain;
        display: none;
    }

    #video-surveillance.fullscreen {
        width: 90vw;
        height: 80vh;
        z-index: 105;
        display: block;
    }
        /*  ---------------------------------------------------------------*/

        /* ---------------------------POP UP ALARME */

    /* POPUP ALARM */
    #alarm-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 106;
        display: none;
    }

    #alarm-popup.active {

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .popup-content {
        position: relative;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgb(72, 79, 70);
        color:  rgb(72, 79, 70);;
        border-radius: 6px;
        padding: 30px;
        width: 40vw;
        display: flex;
        flex-direction: column;
    }

    /* -----------------------------------------------------BUREAUUUUUU */



    .bureau1{
        width: 100vw;
        height: 90vh;
        position: relative;
    }

    .devoir1{
        margin-top: 30vh;
        text-align: left;
        width: 60vw;
        height: auto;
        font-size: 70px;
        color: white;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .devoir1 a {
        color: rgb(255, 255, 255);
        cursor: pointer;
        display: inline-block;
        width: 20vw;
    }

    .devoir1 a:hover {
        color: rgb(255, 34, 34);
    }


    .bureau2{
        margin: -25px;
        padding:25px;
        width: 100vw;
        height: 10vh;
        background-color: white;
        color:rgb(72, 79, 70);
    }

    .content{
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 10vh;
        align-content: center;
        height: 100%;
    }

    /* Ancrer infoDay en bas du bureau1, au-dessus de bureau2 */
    .bureau1 .infoDay {
        position: absolute;
        bottom: 40px;

    }

    
    .grey{
        color: rgb(255, 255, 255);
    }










    

    /* RESPONSIVE - TÉLÉPHONE */
    @media (max-width: 768px) {

        body{
            overflow-y: hidden;
        }
        
        .element-fixed {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto 1fr auto;
            gap: 8px;
            padding: 15px;
            padding-bottom: 80px;
        }

        #getyourinfo {
            height: 6vh;
            grid-column: 1;
            grid-row: 1;
            width: 100%;
        }

        #video-index {
            grid-column: 1;
            grid-row: 2;
            width: 100%;
            max-height: 250px;
            justify-self: center;
        }

        .cas {
            grid-column: 1;
            grid-row: 4;
            justify-content: flex-start;
            padding: 10px 15px;
            position: fixed;
            bottom: 0;
            left: 0;
            width: calc(40% - 15px);
            height: auto;
        }

        .cas img {
            height: 40px;
        }

        .icon {
            grid-column: 1;
            grid-row: 4;
            justify-content: flex-end;
            gap: 15px;
            position: fixed;
            bottom: 0;
            right: 0;
            width: calc(40% - 15px);
            height: auto;
            padding: 10px 15px;
        }

        .logo-small {
            height: 35px;
        }


          .bureau1{
        width: 100vw;
        height: 85vh;
        position: relative;
    }

    .bureau2{
        height: 15vh;
    }
/* ---------------------POP UP ALARM */

   .popup-content {
        position: relative;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        padding: 30px;
        height: 50vh;
        width: 60vw;
        max-width: 500px;
        display: flex;
        flex-direction: column;
    }


    #video-surveillance.fullscreen {
        width: 80vw;
        height: 80vh;
        z-index: 105;
        display: block;
    }

        #video-surveillance {
        object-fit: cover;
    }

/*  ---------------------------------------------------------------*/
/* ---------------BUREAU 2 BLANC */

  .infoDay{
    flex-direction: column;
    width: 100vw;
    }

 
   .devoir1 a {
        width: 100vw;

   }

    .bureau1 .infoDay {
        position: absolute;
        bottom: 35px;
    }

       .devoir1{
        margin-top: 40vh;
        font-size: 60px;
        text-transform: justify;
        width: 100vw;

    }

  }