html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

a {
    text-decoration: none;
}

/* ========================= */
/* 🔹 FOCUS */
/* ========================= */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========================= */
/* 🔹 PAGE (ZONE / EMPLACEMENT) */
/* ========================= */
.page-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bloc-plan {
    flex: 2;
}

.bloc-info {
    flex: 1;
    font-size: 14px;
}

#plan {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

/* ========================= */
/* 🔹 FICHE EMPLACEMENT */
/* ========================= */
.fiche-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.fiche-left {
    flex: 2;
}

.fiche-info {
    flex: 1;
}

/* PLAN */
#zonePlan {
    position: relative;
}

/* ========================= */
/* 🔹 PHOTOS */
/* ========================= */
.photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-item {
    position: relative;
}

    .photo-item img {
        width: 100px;
        cursor: pointer;
    }

.btn-del {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    padding: 2px 5px;
    text-decoration: none;
}

/* ========================= */
/* 🔹 BLOCS */
/* ========================= */
.bloc-section {
    margin-top: 15px;
}

/* ========================= */
/* 🔹 COULEURS (LÉGENDE) */
/* ========================= */
.c {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
}

.c-green {
    background: green;
}

.c-blue {
    background: blue;
}

.c-orange {
    background: orange;
}

.c-red {
    background: red;
}

/* ========================= */
/* 🔹 RESPONSIVE GLOBAL */
/* ========================= */
@media (max-width: 900px) {

    .page-flex,
    .fiche-flex {
        flex-direction: column;
    }

    .bloc-plan,
    .bloc-info,
    .fiche-left,
    .fiche-info {
        width: 100%;
    }

    #plan {
        max-width: 100%;
    }
}





/* ========================= */
/* 🔹 LOGIN */
/* ========================= */

.login_page {
    display: flex;
    height: 100vh;
}

.login_left {
    flex: 1;
    background: url('/images/fond.jpg') center center;
    background-size: cover;
    position: relative;
}

    .login_left::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.35);
    }

    /* TEXTE GAUCHE */
    .login_left .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
        z-index: 2;
    }

    .login_left h1 {
        font-size: 48px;
        margin: 0;
        letter-spacing: 2px;
    }

    .login_left p {
        margin-top: 10px;
        font-size: 18px;
        opacity: 0.9;
    }

/* PARTIE DROITE */
.login_right {
    width: 380px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BOX LOGIN */
.login_box {
    width: 80%;
}

    .login_box h2 {
        margin-bottom: 20px;
    }

h2 {
    font-weight: 400;
}

    /* INPUT LOGIN (on surcharge sans casser bootstrap) */
    .login_box input {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    /* BOUTON */
    .login_box button {
        width: 100%;
        padding: 12px;
        background: #2484ff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        .login_box button:hover {
            background: #2257a3;
        }

/* ERREUR */
.erreur {
    color: #c62828;
    margin-top: 10px;
}

/* RESPONSIVE LOGIN */
@media (max-width:768px) {
    .login_left {
        display: none;
    }

    .login_right {
        width: 100%;
    }
}

/* ========================= */
/* 🔹 TOPBAR */
/* ========================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .topbar a {
        margin-left: 20px;
        color: #333;
        font-size: 14px;
        text-transform: uppercase;
    }

        .topbar a:hover {
            color: #2484ff;
        }

/* ========================= */
/* 🔹 TOPBAR PRO */
/* ========================= */

.topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

/* gauche */
.topbar-left {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #222;
}

/* centre */
.topbar-center {
    display: flex;
    gap: 30px;
}

    .topbar-center a {
        color: #444;
        font-size: 14px;
        position: relative;
        text-transform: uppercase;
    }

        /* effet underline propre */
        .topbar-center a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -10px;
            width: 0;
            height: 4px;
            background: #2484ff;
            transition: 0.2s;
        }

        .topbar-center a:hover::after {
            width: 100%;
        }

/* droite */
.topbar-right a {
    font-size: 13px;
    color: #777;
}

    .topbar-right a:hover {
        color: #000;
    }

/* MOBILE */
@media (max-width:768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .topbar-center {
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* RESET GLOBAL */
body {
    margin: 0;
    padding: 0;
}

/* pleine largeur */
.main-container {
    width: 100%;
    padding: 10px 30px;
    box-sizing: border-box;
}

/* MENU FULL WIDTH */
.topbar {
    width: 100%;
    margin: 0;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* ========================= */
/* 🔹 TOPBAR */
/* ========================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 15px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

/* LOGO */
.topbar-left {
    font-weight: 600;
    font-size: 18px;
}

/* MENU */
.topbar-center {
    display: flex;
    gap: 25px;
}

    /* LIENS */


        /* HOVER */
        .topbar-center a:hover {
            color: #000;
        }

        /* ACTIF */
    .topbar-center a.active {
        color: #2484ff;
        font-weight: 600;
    }

        .topbar-center a.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -10px;
            width: 100%;
            height: 4px;
            background: #2484ff;
        }

/* LOGOUT */
.logout {
    margin-left: 20px;
    color: #777;
}

/* BURGER */
.burger {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width:768px) {
    .burger {
        display: block;
    }

    .topbar-center {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

        .topbar-center.show {
            display: flex;
        }
}


body {
    position: relative;
    background: #f5f5f5;
}

 
/* wrapper */
.plan-wrapper
{
    display:flex;
    justify-content:center;
    align-items:center;

    height:calc(100vh - 120px);
}

/* image */
#planImage
{
    max-height:100%;
    max-width:100%;

    width:auto;
    height:auto;

    object-fit:contain;

    display:block;

    box-shadow:0 4px 12px rgba(0,0,0,0.15);
    border-radius:6px;
}

.adex_bloc {
    background: white !important;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

/* ========================= */
/* 🔹 FICHE 3 COLONNES */
/* ========================= */

.fiche-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

/* colonnes */
.col-plan,
.col-form,
.col-media {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* inputs */
.input-full {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* bouton */
.btn-save {
    width: 100%;
    padding: 12px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
}

/* photos */
.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .photos img {
        width: 100%;
        max-width: 160px;
        cursor: pointer;
        border-radius: 4px;
    }

/* PLAN */
#zonePlan {
    position: relative;
}

#plan {
    width: 100%;
    height: auto;
}

/* RESPONSIVE */
@media (max-width:1000px) {
    .fiche-3col {
        grid-template-columns: 1fr;
    }
}

.butblue {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: #2484ff;
    border: solid 1px #ddc7c7;
    padding: 5px 10px;
    border-radius: 3px;
    color: white;
}

.butgrey {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: #5d5d5d;
    border: solid 1px #ddc7c7;
    padding: 2px;
    border-radius: 3px;
    color: white;
}

#zonePlan {
    position: relative;
    display: inline-block;
    transform-origin: top left;
    cursor: grab;
    user-select: none;
}

    #zonePlan.dragging {
        cursor: grabbing;
    }

#plan {
    display: block;
    max-width: 100%;
    height: auto;
}

#canvas {
    position: absolute;
    left: 0;
    top: 0;
}
.uc {
    text-transform: uppercase;
}