/* Fonts */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'), local('MaterialIcons-Regular'), url("../Fonts/MaterialIcons/MaterialIcons-Regular.woff2") format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'DIN';
    src: local('DIN'), url("../Fonts/DIN/DIN-Medium.ttf") format("truetype");
}

@font-face {
    font-display: swap;
    font-family: 'DIN Pro Regular';
    src: local('DIN'), url("../Fonts/DIN/DINPro-Regular.ttf") format("truetype");
}

@font-face {
    font-display: swap;
    font-family: 'DIN Pro Medium';
    src: local('DIN Pro Medium'), url("../Fonts/DIN/DINPro-Medium.otf") format("opentype");
}

@font-face {
    font-display: swap;
    font-family: 'DIN Pro Bold';
    src: local('DIN Pro Bold'), url("../Fonts/DIN/DINPro-Bold.otf") format("opentype");
}

@font-face {
    font-display: swap;
    font-family: 'Gill Sans MT';
    src: local('Gill Sans MT'), url("../Fonts/Gill_sans/GIL_____.ttf") format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Museo Sans 300';
    src: local('Museo Sans 300'), url("../Fonts/Museo_sans/MuseoSans_300.otf") format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Museo Sans 500';
    src: local('Museo Sans 500'), url("../Fonts/Museo_sans/MuseoSans_500.otf") format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Museo Sans 700';
    src: local('Museo Sans 700'), url("../Fonts/Museo_sans/MuseoSans_700.otf") format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Oswald';
    src: local('Oswald'), url("../Fonts/Oswald/Oswald-Bold.ttf") format('truetype');
}

/* Font Classes */

.material-icons {
    -moz-font-feature-settings: 'liga';
    -moz-osx-font-smoothing: grayscale;
    direction: ltr;
    display: inline-block;
    font-family: 'Material Icons';
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
}

.ms-rteFontFace-DIN { font-family: "DIN"; }

.ms-rteFontFace-DINProMedium { font-family: "DIN Pro Medium"; }

.ms-rteFontFace-DINProBold { font-family: "DIN Pro Bold"; }

.ms-rteFontFace-GillSansMT { font-family: "Gill Sans MT"; }

.ms-rteFontFace-MuseoSans300 { font-family: "Museo Sans 300"; }

.ms-rteFontFace-MuseoSans500 { font-family: "Museo Sans 500"; }

.ms-rteFontFace-MuseoSans700 { font-family: "Museo Sans 700"; }

.ms-rteFontFace-Oswald { font-family: "Oswald"; }

.dbOrange { color: #ec6608 !important; }

body {
    -webkit-align-items: center;
    -webkit-justify-content: center;
    align-items: center;
    background-color: #fbfbfb;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    justify-content: center;
    margin: 0;
    padding: 0;
}

h1 { margin: 0; }

h3 {
    color: #6492c7;
    font-size: 15px;
    margin-bottom: 1em;
    text-transform: uppercase;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li { margin-top: 10px; }

label { font-weight: bold; }

.z01,
.z02,
#dbRecrut,
.z05,
.z03,
.z04,
#piedDePage,
#dbPublication {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 10px auto;
    max-width: 1200px;
    padding: 20px;
    width: 90%;
}

.z01 {
    display: flex;
    flex-direction: column;
}

.z01 .left,
.z01 .right {
    -webkit-flex: 1;
    flex: 1;
    padding: 10px;
}

.z01 .left { padding-right: 20px; }

.z01 .right {
    margin: auto;
    padding-left: 20px;
}

.z01 .right img {
    height: auto;
    max-width: 100%;
}

#dbRecrut img { width: 100% }

.logoEntDB { max-width: 75% }

.dbLotContainer, .dbIntervenantContainer {
    border: 1px solid #17213c;
    border-radius: 10px;
    margin-top: 1em;
    overflow: hidden;
}

.dbLot, .dbIntervenant {
    -webkit-align-items: center;
    -webkit-justify-content: space-between;
    align-items: center;
    background-color: #17213c;
    color: white;
    cursor: pointer;
    display: flex;
    font-weight: bold;
    height: 32px;
    justify-content: space-between;
    padding: 0 10px;
}

.dbLotNum, .dbIntervenantNum {
    line-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbLotDesc, .dbIntervenantDesc {
    color: #17213c;
    display: none;
    margin: 5px;
}

.toggleBtn {
    -webkit-align-items: center;
    -webkit-justify-content: center;
    align-items: center;
    background-color: #ec6608;
    border-radius: 50%;
    display: flex;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.toggleBtn::after {
    -webkit-transform: rotate(0);
    -webkit-transition: transform 0.3s;
    content: '▼';
    font-size: 12px;
    transform: rotate(0);
    transition: transform 0.3s;
}

.open .toggleBtn::after {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.dbLotDesc ul, .dbIntervenantDesc ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.dbLotDesc li, .dbIntervenantDesc li {
    /*! -webkit-align-items: center; */
    /*! align-items: center; */
    display: flex;
}

.dbModalCalendarCategTile {
    background-color: #ec6608;
    border-radius: 10px;
    margin-right: 10px;
    width: 5px;
}

.left p { font-family: "Museo Sans 300"; }

.dbTitleSection {
    color: #17213c !important;
    font-family: DIN Pro Medium !important;
    font-size: 26px !important;
}

.orangeDBbreakMid {
    border-top: 1px solid #ec6608;
    margin-bottom: 25px;
    margin-top: 10px;
    width: 300px;
}

/* Entreprise générale */

.dbEntrepriseGenerale { text-align: center; }

.dbEntrepriseGenerale li {
    display: inline-block;
    margin: auto;
    text-align: center;
    vertical-align: top;
    width: 45%;
}

@media (max-width: 768px) {
    .dbEntrepriseGenerale li {
        display: block;
        margin: 0;
        width: 100%;
    }
}

.dbLotEntrepriseGenNom {
    font-size: 18px;
    font-weight: bold;
}

.dbLotEntrepriseGenAdresse, .dbLotEntrepriseGenContact { font-size: 16px; }

.dbLotEntrepriseGenImg img {
    max-height: 80% !important;
    max-width: 80% !important;
}

/* Labels */

.dbLabelsList {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.dbLabelsList li {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    height: 150px;
    padding: 8px 14px;
    box-sizing: border-box;
}

.dbLabelsList li img {
    display: block;
    max-width: 150px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile : tuiles plus compactes */
@media (max-width: 480px) {
    .dbLabelsList {
        gap: 8px;
    }

    .dbLabelsList li {
        height: 85px;
        padding: 6px 10px;
    }

    .dbLabelsList li img {
        max-width: 85px;
    }
}

/* Intervenants / Lots */

.dbLotEntreprise, .dbIntervenantEntreprise {
    -moz-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    -webkit-justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 80%;
}

.dbLotEntrepriseComment, .dbIntervenantEntrepriseComment {
    color: darkgray;
    font-style: italic;
    text-align: center;
}

.dbLotEntrepriseNom, .dbLotEntrepriseAdresse {
    margin: 5px;
    padding: 5px;
    width: 45%;
}

.dbLotEntrepriseNom, .dbIntervenantEntrepriseNom { font-weight: bold; }

/*
.dbLotEntrepriseImg {
    margin: 5px;
    text-align: center;
    width: 20%;
}

.dbLotEntrepriseImg img {
    height: 80% !important;
    width: 80% !important;
    object-fit: contain;
}
*/

.dbLotEntrepriseImg {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 20%;
}

.dbLotEntrepriseImg img {
    height: auto; /* Conserve les proportions de l'image */
    max-height: 80% !important;
    max-width: 80% !important; /* Ne dépasse pas 80% de la largeur du div */
    width: auto; /* Respecte la taille réelle si plus petite */
}

.metadata_img {
    display: inline-block;
    height: 36px;
    width: 36px;
}

.metadata_txt {
    display: inline-block;
    margin-left: 10px;
}

#piedDePage {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#logoDBFoot { grid-column: 1; }

#socialNetworkFoot {
    grid-column: 3;
    margin-top: 25px;
    text-align: right;
}

#socialNetworkFoot a { text-decoration: none !important; }

.hide { display: none !important; }

@media (max-width: 768px) {
    .dbLotEntreprise {
        -webkit-justify-content: space-between;
        flex-direction: row;
        justify-content: space-between;
    }

    .dbLotEntrepriseNom, .dbLotEntrepriseAdresse {
        text-align: left;
        width: 100%;
    }

    .dbLotEntrepriseImg {
        text-align: center;
        width: 40%;
    }
}

@media (min-width: 768px) {
    .z01 { flex-direction: row; }

    #piedDePage { grid-template-columns: 0.5fr 1fr 0.5fr; }
}

@media (max-width: 400px) {
    #logoDBFoot img { max-width: 100px; }

    #socialNetworkFoot { margin-top: 12px; }

    #socialNetworkFoot a {
        margin-left: 5px;
        margin-right: 5px;
    }

    #socialNetworkFoot img {
        height: 25px;
        width: 25px;
    }
}

/*******************/

/* Zone de partage */

/*******************/

.db-share-wrapper {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 16px;
}

.db-share-btn,
.db-itineraire-btn {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    padding: 8px 16px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Bouton principal : rempli */

.db-share-btn {
    background-color: #EE7830;
    border: none;
    color: #fff;
}

.db-share-btn:hover { background-color: #d6691f; }

/* Bouton secondaire : contour, même emprise visuelle */

.db-itineraire-btn {
    background-color: #fff;
    border: 1.5px solid #EE7830;
    color: #EE7830;
}

.db-itineraire-btn:hover { background-color: #fdf1e9; }

.db-share-toast {
    color: #2e7d32;
    font-size: 13px;
}

.db-share-toast[hidden] { display: none; }