/* =======================
   Base
   ======================= */
body {
    font-family: "Poppins", sans-serif;
    background: #f8f4d7;
}
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
}
h1 {
    text-align: center;
    margin: 5%;
    font-size: xx-large;
}
button {
    background-color: rgb(158, 158, 158);
    color: rgb(0, 0, 0);
    padding: 10px;
    border-radius: 10px;
    position: absolute;
    display: flex;
    border: 0;
    font-weight: bold;
}

/* =======================
   Clearfix
   ======================= */
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
.cf {
    zoom: 1;
}

/* =======================
   Conteneur principal
   ======================= */
.content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
a:focus {
    outline: 2px dashed #f7f7f7;
}
@media screen and (max-width: 767px) {
    .content {
        padding: 0 20px;
    }
}

/* =======================
   Listes & Liens
   ======================= */
ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
ul a {
    display: block;
    background: #ccc;
    border: 4px solid #fff;
    text-align: center;
    overflow: hidden;
    font-size: 0.7em;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    height: 70px;
    margin-bottom: -26px;
    box-shadow: 4px 4px 9px -4px rgba(0, 0, 0, 0.4);
    -webkit-transition: all linear .1s;
    -moz-transition: all linear .1s;
    transition: all linear .1s;
}
@media print {
    ul a {
        border: 4px solid #000;
    }
}
@media screen and (max-width: 767px) {
    ul a {
        font-size: 1em;
    }
}
ul a span {
    top: 50%;
    margin-top: -0.7em;
    display: block;
}

/* =======================
   Organigramme
   ======================= */
.administration > li > a {
    margin-bottom: 25px;
}
.director > li > a {
    width: 50%;
    margin: 0 auto 0 auto;
}
.subdirector:after {
    content: "";
    display: block;
    width: 0;
    height: 130px;
    background: red;
    border-left: 4px solid #fff;
    left: 45.45%;
    position: relative;
}
@media print {
    .subdirector:after {
        border-left: 4px solid #000;
    }
}
.subdirector,
.departments {
    position: absolute;
    width: 100%;
}
.subdirector > li:first-child,
.departments > li:first-child {
    width: 18.6%;
    height: 64px;
    margin: 0 auto 92px auto;
    padding-top: 25px;
    border-bottom: 4px solid white;
    z-index: 1;
}
@media print {
    .subdirector > li:first-child,
    .departments > li:first-child {
        border-bottom: 4px solid #000;
    }
}
.subdirector > li:first-child {
    float: right;
    right: 27.2%;
    border-left: 4px solid white;
}
@media print {
    .subdirector > li:first-child {
        border-left: 4px solid black;
    }
}
.departments > li:first-child {
    float: left;
    left: 27.2%;
    border-right: 4px solid white;
}
@media print {
    .departments > li:first-child {
        border-right: 4px solid black;
    }
}
.subdirector > li:first-child a,
.departments > li:first-child a {
    width: 100%;
}
.subdirector > li:first-child a {
    left: 25px;
}
@media screen and (max-width: 767px) {
    .subdirector > li:first-child,
    .departments > li:first-child {
        width: 40%;
    }
    .subdirector > li:first-child {
        right: 10%;
        margin-right: 2px;
    }
    .subdirector:after {
        left: 49.8%;
    }
    .departments > li:first-child {
        left: 10%;
        margin-left: 2px;
    }
}
.departments > li:first-child a {
    right: 25px;
}
.department:first-child,
.departments li:nth-child(2) {
    margin-left: 0;
    clear: left;
}
.departments:after {
    content: "";
    display: block;
    position: absolute;
    width: 81.1%;
    height: 22px;
    border-top: 4px solid #fff;
    border-right: 4px solid #fff;
    border-left: 4px solid #fff;
    margin: 0 auto;
    top: 130px;
    left: 9.1%;
}
@media print {
    .departments:after {
        border-top: 4px solid #000;
        border-right: 4px solid #000;
        border-left: 4px solid #000;
    }
}
@media screen and (max-width: 767px) {
    .departments:after {
        border-right: none;
        left: 0;
        width: 49.8%;
    }
}
@media screen and (min-width: 768px) {
    .department:first-child:before,
    .department:last-child:before {
        border: none;
    }
}
.department:before {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 22px;
    border-left: 4px solid white;
    z-index: 1;
    top: -22px;
    left: 50%;
    margin-left: -4px;
}
@media print {
    .department:before {
        border-left: 4px solid black;
    }
}
.department {
    border-left: 4px solid #fff;
    width: 18.6%;
    float: left;
    margin-left: 1.75%;
    margin-bottom: 60px;
}
@media print {
    .department {
        border-left: 4px solid #000;
    }
}
.lt-ie8 .department {
    width: 18.25%;
}
@media screen and (max-width: 767px) {
    .department {
        float: none;
        width: 100%;
        margin-left: 0;
    }
    .department:before {
        content: "";
        display: block;
        position: absolute;
        width: 0;
        height: 60px;
        border-left: 4px solid white;
        z-index: 1;
        top: -60px;
        left: 0%;
        margin-left: -4px;
    }
    .department:nth-child(2):before {
        display: none;
    }
}
.department > a {
    margin: 0 0 -26px -4px;
    z-index: 1;
}
.department > a:hover {
    height: 80px;
}
.department > ul {
    margin-top: 0;
    margin-bottom: 0;
}
.department li {
    padding-left: 25px;
    border-bottom: 4px solid #fff;
    height: 80px;
}
@media print {
    .department li {
        border-bottom: 4px solid #000;
    }
}
.department li a {
    background: #fff;
    top: 48px;
    position: absolute;
    z-index: 1;
    width: 90%;
    height: 60px;
    vertical-align: middle;
    right: -1px;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#40000000', endColorstr='#00000000', GradientType=1);
}
.department li a:hover {
    box-shadow: 8px 8px 9px -4px rgba(0, 0, 0, 0.1);
    height: 80px;
    width: 95%;
    top: 39px;
    background-image: none !important;
}

/* =======================
   Couleurs des départements
   ======================= */
.department.dep-a a { background: #FFD600; }
.department.dep-b a { background: #AAD4E7; }
.department.dep-c a { background: #FDB0FD; }
.department.dep-d a { background: #A3A2A2; }
.department.dep-e a { background: #f0f0f0; }

/* =======================
   Bouton retour
   ======================= */
.Button {
    background-color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 40px;
    margin-top: 10px;
    border-radius: 4px;
    border: solid 2px #121212;
    box-shadow: 4px 4px #121212;
    transition: transform 0.5s, box-shadow 50ms;
}
.Button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px #121212;
}
.org-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.org-node {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
    min-width: 350px;
}
.org-title {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 8px;
}
.org-branches {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}
.org-branch {
    background: #eaf2fb;
    border-radius: 8px;
    padding: 18px 20px;
    min-width: 180px;
    box-shadow: 0 1px 6px rgba(103,179,228,0.10);
    margin-bottom: 8px;
}
.org-count {
    font-size: 0.95em;
    color: #555;
    margin-top: 6px;
}
.org-children {
    margin-top: 16px;
    background: #f6fafd;
    border-radius: 6px;
    padding: 10px 0;
}