@charset "utf-8";
/* CSS Document - Migré Bootstrap 5 */

/* =========================================
   BASE
   ========================================= */

body {
    margin: 0;
    background-image: url(../images/fond3-Copie.png);
}

img {
    width: 100%;
}

footer {
    padding: 1em;
    background-color: #8D9FA9;
    color: #FFFFFF;
}

/* =========================================
   LAYOUT
   ========================================= */

.container {
    padding: 0.2em;
    background-image: none;
    background-color: #F3F3F3;
}

.contenu {
    background-color: #FFFFFF;
    padding: 0.4em;
    box-shadow: 2px 2px 2px 1px #CCC;
    border-radius: 2px;
    margin: 0.4em;
    border-top: thin solid #CFCFCF;
    border-right: thin solid #CFCFCF;
    box-sizing: border-box;
}

.box {
    background-color: #FFFFFF;
    padding: 0.5em;
    box-shadow: 2px 2px 2px 1px #CCC;
    border-radius: 2px;
    margin: 0.4em;
    border-top: thin solid #CFCFCF;
    border-right: thin solid #CFCFCF;
}

.actualites {
    margin: 0.5em 0.8em 0.5em 0.5em;
    padding: 0 10px;
}

/* =========================================
   CONTAINER-FLUID / ROW
   (surcharges légères conservées)
   ========================================= */

.container-fluid {
    margin-right: auto;
    margin-left: auto;
    padding-left: 0.4em;
    padding-right: 0.4em;
}

/* =========================================
   GRILLE — colonnes
   BS5 : col-xs-* n'existe plus → col-*
   On conserve les paddings custom
   ========================================= */



/* =========================================
   LIENS
   ========================================= */

/* Supprime le soulignement par défaut de Bootstrap 5 */
a {
    text-decoration: none;
}

a:link {
    color: #1470BA;
}

a:visited {
    color: #1470BA;
}

a:hover {
    color: #00E8E8;
    text-decoration: none;
}

a:focus {
    color: #999999;
    text-decoration: none;
}

a:active {
    color: #00E8E8;
    text-decoration: none;
}

/* =========================================
   BOUTONS
   ========================================= */

/* Surcharge générale .btn — compatible BS5 */
.btn {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
}

.btn-group > .btn-group {
    padding-left: 10px;
    padding-right: 10px;
}

/* Bouton custom "ressource" (orange) */
.btn-ressource {
    color: #fff;
    background-color: #FF6600;
    border-color: #FF6633;
}

.btn-ressource:hover,
.btn-ressource:focus,
.btn-ressource.focus,
.btn-ressource:active,
.btn-ressource.active,
.show > .btn-ressource.dropdown-toggle {
    /* BS5 : .open > .dropdown-toggle → .show > .dropdown-toggle */
    color: #fff;
    background-color: #FF3300;
    border-color: #CC3333;
}

.btn-ressource:disabled,
.btn-ressource.disabled,
fieldset:disabled .btn-ressource {
    background-color: #FF6600;
    border-color: #d43f3a;
    opacity: 0.65;
}

.btn-ressource .badge {
    color: #FF6600;
    background-color: #fff;
}

/* =========================================
   DROPDOWN
   ========================================= */

.dropdown-item {
    padding-left: 5px;
    text-align: justify;
}

.dropdown-menu {
    min-width: 190px;
}

/* Sous-menus imbriqués (dropdown-submenu) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a::after {
    border-left-color: #ffffff;
}

/* BS5 : pull-left → float-start */
.dropdown-submenu.float-start {
    float: none;
}

.dropdown-submenu.float-start > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    border-radius: 6px 0 6px 6px;
}

/* =========================================
   SÉPARATEURS HR
   ========================================= */

hr {
    margin-top: 10px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1; /* BS5 met opacity: 0.25 par défaut — on le réinitialise */
}

hr.style-white {
    margin-top: 10px;
    margin-bottom: 20px;
    border-top: 1px solid #FFF;
    opacity: 1;
}

hr.style-danger {
    margin: 0;
    border-top: 3px solid #d9534f;
    box-shadow: 2px 2px 2px 2px #CCC;
    opacity: 1;
}

hr.style-warning {
    margin: 0;
    border-top: 3px solid #f0ad4e;
    box-shadow: 2px 2px 2px 2px #CCC;
    opacity: 1;
}

hr.style-info {
    margin: 0;
    border-top: 3px solid #5bc0de;
    box-shadow: 2px 2px 2px 2px #CCC;
    opacity: 1;
}

hr.style-success {
    margin: 0;
    border-top: 3px solid #5cb85c;
    box-shadow: 2px 2px 2px 2px #CCC;
    opacity: 1;
}

hr.style-default {
    margin: 0;
    border-top: 3px solid #eee;
    box-shadow: 2px 2px 2px 2px #CCC;
    opacity: 1;
}

hr.style-ressource {
    margin: 0;
    border-top: 3px solid #F30;
    box-shadow: 2px 2px 2px 2px #CCC;
    opacity: 1;
}

/* =========================================
   TYPOGRAPHIE
   ========================================= */

h1, .h1,
h2, .h2,
h3, .h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h2, .h2 {
    font-size: 30px;
    font-family: Verdana, Geneva, sans-serif;
}

h3, .h3 {
    font-size: 24px;
    font-family: Verdana, Geneva, sans-serif;
}
h4, .h4 {
    font-size: 18px;
    font-family: Verdana, Geneva, sans-serif;
}

.lead {
    margin-bottom: 10px;
    font-size: 12px;s
    font-weight: 300;
    line-height: 1.4;
}

/* =========================================
   JUMBOTRON
   (supprimé en BS5 — recréé ici)
   ========================================= */

.jumbotron {
    margin-bottom: 10px;
    color: inherit;
    background-color: #eee;
    padding: 5px 15px 10px 15px;
    border-radius: 6px;
}

.jumbotron h1,
.jumbotron .h1 {
    color: inherit;
    font-size: 14px;
    font-family: inherit;
}

.jumbotron p {
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 200;
    text-align: justify;
}

.jumbotron > hr {
    border-top-color: #d5d5d5;
    opacity: 1;
}

.container .jumbotron,
.container-fluid .jumbotron {
    border-radius: 6px;
}

.jumbotron .container {
    max-width: 90%;
}

@media screen and (min-width: 768px) {
    .jumbotron {
        padding: 10px 0 20px 0;
    }

    .container .jumbotron,
    .container-fluid .jumbotron {
        padding-right: 20px;
        padding-left: 20px;
        background-color: #DDD;
    }

    .jumbotron h1,
    .jumbotron .h1 {
        font-size: 63px;
    }
}

/* =========================================
   STICKY
   ========================================= */

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.sticky + .content {
    padding-top: 100px;
}

/* =========================================
   TABLEAU
   ========================================= */

.table-bordered th,
.table-bordered td {
    border: 0 none #ddd !important;
}

/* =========================================
   MEDIA (composant supprimé en BS5)
   Recréé ici pour compatibilité
   ========================================= */

.media {
    margin-top: 2px;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.media:first-child {
    margin-top: 0;
}

.media-body {
    flex: 1;
    overflow: hidden;
}

.media-object {
    display: block;
    margin-right: 10px;
}

.media-object.img-thumbnail {
    max-width: none;
}

/* BS5 : pull-left/pull-right → float-start/float-end */
.media-right,
.media > .float-end {
    padding-left: 20px;
}

.media-left,
.media > .float-start {
    padding-right: 20px;
}

.media-middle {
    align-self: center;
}

.media-bottom {
    align-self: flex-end;
}

.media-heading {
    margin-top: 0;
    margin-bottom: 5px;
}

.media-list {
    padding-left: 0;
    list-style: none;
}

/* =========================================
   CAROUSEL
   BS5 : .item → .carousel-item
   ========================================= */

.carousel {
    margin-top: 10px;
    background-color: #FFFFFF;
}

/* BS5 : .carousel .item → .carousel .carousel-item */
.carousel .carousel-item {
    min-height: 280px;
}

.carousel .carousel-item img {
    margin: 0 auto;
}

/* Couleurs des contrôles */
.carousel-control-prev,
.carousel-control-next {
    color: #fff;
}

/* Indicateurs custom (couleur CPias) */
.carousel-indicators [data-bs-slide-to] {
    border: 1px solid #1470BA;
    background-color: transparent;
}

.carousel-indicators .active {
    background-color: #1470BA;
    border-color: #1470BA;
}

/* Caption */
#myCarousel .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    text-shadow: none;
}

#myCarousel .list-group {
    position: absolute;
    top: 0;
    right: 0;
}

#myCarousel .list-group-item {
    border-radius: 2px;
    cursor: pointer;
}

#myCarousel .list-group .active {
    background-color: #eee;
    color: #369;
}

/* Responsive carousel */
@media (min-width: 992px) {
    #myCarousel .carousel-controls {
        display: none;
    }
}

@media (max-width: 991px) {
    .carousel-caption p,
    #myCarousel .list-group {
        display: none;
    }
}

@media (max-width: 1024px) {
    .carousel-page {
        width: auto;
        min-height: 280px;
        color: white;
    }

    .h2 {
        font-size: 24px;
        font-family: Verdana, Geneva, sans-serif;
    }
}

/* =========================================
   BOUTON RETOUR EN HAUT
   ========================================= */

#myBtn {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 35px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #F60;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 180px;
    font-size: 18px;
}

#myBtn:hover {
    background-color: #555;
}

/* =========================================
   DIVERS
   ========================================= */

.img-responsive.centree {
    margin: 0 auto;
}

.bs-example {
    margin: 20px;
}

/* Timeline - page Agenda */
.timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;
}
.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 3px;
  background-color: #eeeeee;
  left: 50%;
  margin-left: -1.5px;
}
.timeline > li {
  margin-bottom: 20px;
  position: relative;
  overflow:hidden
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li > .timeline-panel {
  width: 46%;
  float: left;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  padding: 20px;
  position: relative;
  -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
.timeline > li > .timeline-panel:before {
  position: absolute;
  top: 26px;
  right: -15px;
  display: inline-block;
  border-top: 15px solid transparent;
  border-left: 15px solid #ccc;
  border-right: 0 solid #ccc;
  border-bottom: 15px solid transparent;
  content: " ";
}
.timeline > li > .timeline-panel:after {
  position: absolute;
  top: 27px;
  right: -14px;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #fff;
  border-right: 0 solid #fff;
  border-bottom: 14px solid transparent;
  content: " ";
}
.timeline > li > .timeline-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 50%;
  margin-left: -25px;
  background-color: #999999;
  z-index: 100;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
}
.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}
.timeline-badge.primary {
  background-color: #4c6fbc !important;
}
.timeline-badge.success {
  background-color: #4cab37 !important;
}
.timeline-badge.warning {
  background-color: #f6a70f !important;
}
.timeline-badge.danger {
  background-color: #d20355 !important;
}
.timeline-badge.info {
  background-color: #21c0c8 !important;
}
.timeline-title {
  margin-top: 0;
  color: inherit;
}
.timeline-body > p,
.timeline-body > ul {
  margin-bottom: 0;
}
.timeline-body > p + p {
  margin-top: 5px;
}

/* =========================================
   ACCORDÉON — personnalisation CPias
   ========================================= */

button.accordion-button {
    background-color: #e8ecef !important;
    color: #1470BA !important;
    border: 1px solid #adb5bd !important; 
}

button.accordion-button:not(.collapsed) {
    background-color: #8D9FA9 !important;
    color: #ffffff !important;
    border: 1px solid #6c8a94 !important;
}

button.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1) !important;
}

button.accordion-button:focus {
    box-shadow: none !important;
}