@font-face {
  font-family: 'dgct';
  src: url('fonts/dgct/dgct-Bold.eot');
  src: url('fonts/dgct/dgct-Bold.eot?#iefix') format('embedded-opentype'),
  /*url('fonts/dgct/dgct-Bold.woff2') format('woff2'),*/
  url('fonts/dgct/dgct-Bold.woff') format('woff'),
  url('fonts/dgct/dgct-Bold.ttf') format('truetype'),
  url('fonts/dgct/dgct-Bold.svg#AbuDhabiMedia-Bold') format('svg');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'dgct';
  src: url('fonts/dgct/dgct-Regular.eot');
  src: url('fonts/dgct/dgct-Regular.eot?#iefix') format('embedded-opentype'),
  /*url('fonts/dgct/dgct-Regular.woff2') format('woff2'),*/
  url('fonts/dgct/dgct-Regular.woff') format('woff'),
  url('fonts/dgct/dgct-Regular.ttf') format('truetype'),
  url('fonts/dgct/dgct-Regular.svg#AbuDhabiMedia-Regular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'Hacen';
    src: url('fonts/hacen/HacenExtenderX4SuperFitRegular.eot');
    src: url('fonts/hacen/HacenExtenderX4SuperFitRegular.eot') format('embedded-opentype'),
         url('fonts/hacen/HacenExtenderX4SuperFitRegular.woff2') format('woff2'),
         url('fonts/hacen/HacenExtenderX4SuperFitRegular.woff') format('woff'),
         url('fonts/hacen/HacenExtenderX4SuperFitRegular.ttf') format('truetype'),
         url('fonts/hacen/HacenExtenderX4SuperFitRegular.svg#HacenExtenderX4SuperFitRegular') format('svg');
	font-weight: normal;
  	font-style: normal;
}

/***************SECTION GENERAL**************/

body{
  font-family: Hacen;
  font-size:16px;
  color:#333;
}

.pave-box{
    margin-left: 15%;
    margin-right: 15%;
    padding: 1.25rem;
    width: 70%;
}

.pave-box > .row > .col:not(:last-child){
    border-left:solid 2px var(--color1);
}

.pave-box-actus{
	background-color:var(--color2);
    margin-left: 0;
    margin-right: 0;
    padding: 1em 5rem;
}

.pave-box-actus h2, .pave-box-actus a{
	color:#fff !important;
}

.pave-box-actus a i{
	text-align:left;
}

.pave-box-actus .pave-title{
	text-align:left;
}

.pave-epingle{
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem;
    width: 100%;
}

.pave-wrapper{
	border: solid 2px #fff;
}

h1,h2,h3,h4,h5,h6{
  font-family: Hacen;
  font-weight: normal;
}
@media (min-width: 1200px)
	{
	.h4, h4 {
		font-size: 1.3rem;
	}
}

p{
  line-height:2rem;
  text-align: justify;
font-family: dgct;
}
p.text-muted{
  text-align: center;
}

.text-left, p.text-left{
	text-align: left;
}
.text-right, p.text-right{
	text-align: right;
}

a, a:visited, a:hover, a:focus{
  color:#333;
  text-decoration: none;
}

.title{
  color: var(--color1);
}

.zindex9{
  z-index: 999;
}

.zindex8{
  z-index: 888;
}

.btn{
  font-family: Hacen;
  font-weight: bold;

}

.btn-outline-primary{
  color: var(--color1);
  border-color: var(--color1);
  border-radius: 25px;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--color1);
    border-color: var(--color1);
    border-radius: 25px;
}

.btn-plus{
  float:left;
  color: #fff !important;
  background-color: var(--color1);
  border-color: var(--color1);
  border-radius:25px;
}

.carousel-indicators li{
  background-color: #eaeaea;
  cursor:pointer;
}

.carousel-indicators button{
  	background-color: #eaeaea !important;
	opacity:0.8 !important;
	height:10px !important;
	border-radius:10px !important;
	border: none !important;
    border-bottom: none !important;

}

.carousel-indicators button.active{
  	background-color: #FFF !important;
	opacity:1 !important;

}

.breadcrumb {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    float:right;
}
.breadcrumb-item{
    font-size: 12px;
}

.pave-title{
  /*color:var(--color1);*/
	color:#333333;
}

.bg-motif{
  padding-left:0;
  padding-right:0;
}

/***************LOGO*********************/
.logo img, .logo object{
  height:90px;
  z-index: 9;
  position:relative;
}

/***************HEADER*******************/

.header{
	border-bottom:solid 5px var(--color2);
}

/***************TOP BAR*********************/

/*.topbar{
    background-color: var(--color2);
}*/

.topbar li.nav-item  {
	padding:0;
	padding-left:3em;
	padding-right:3em;
	border-left:solid 1px #eaeaea;
}

.topbar li.nav-item:first-child {
  	padding-right:0em;
  	border-right:no-border;
}

.topbar li.nav-item:last-child {
	padding-left:0em;
}

.topbar a, .topbar a:visited{
    color: var(--color2);
    text-decoration: none;
	font-size:2em;
	padding:0;
}

.topbar a:hover, .topbar a:focus{
    opacity:0.8;
}


.topbar img, .topbar object{
  height:100px;
  z-index: 9;
  position:relative;
}


/***************SECONDARY MENU****************/

    .secondary-menu {
        background-color:var(--color7);
    }

    .secondary-menu li.nav-item  {
        border-left:solid 1px #fff;
        text-align: center;
    }
	
	.secondary-menu li.nav-item a.nav-link  {
        color:#fff;
		font-size: 1.3em;
        opacity:1;
    }
	
	.secondary-menu li.nav-item a.nav-link:hover,
	.secondary-menu li.nav-item a.nav-link:focus{
		color:#fff;
		opacity:0.8;
    }

    .secondary-menu li.nav-item:last-child  {
        border-left:none;
    }
	
	.secondary-menu li.nav-item:nth-child(1n){
        background-color:var(--color4);
    }
	.secondary-menu li.nav-item:nth-child(2n){
        background-color:var(--color5);
    }
	.secondary-menu li.nav-item:nth-child(3n){
        background-color:var(--color6);
    }
	.secondary-menu li.nav-item:nth-child(4n){
        background-color:var(--color7);
    }
	.secondary-menu li.nav-item:nth-child(5n){
        background-color:var(--color8);
    }

/***************MAIN MENU*********************/

@media only screen and (min-width: 1024px) {
  
    .main-menu li.nav-item  {
        padding-bottom:5px;
		margin-left:25px;
		position:relative;
    }

    .main-menu li.nav-item.active  {
        /*background-color:var(--color2);*/
    }

    .main-menu a.nav-link{
        color: #fff !important;
        text-decoration: none;
		font-size:1.3em;
		padding-left:0 !important;
		padding-right:0 !important;
    }
	
	.main-menu ul.navbar-nav > li.nav-item:before{
        content:'';
		background:var(--color2);
		height:5px;
		width:0px;
		position:absolute;
		top:50px;
		-webkit-transition: width 0.5s;
    	transition: width 0.5s;
    }
	
	.main-menu ul.navbar-nav > li.nav-item:hover:before, .main-menu ul.navbar-nav > li.nav-item.active:before{
		width:50px;
    }

    .main-menu .sub-menu  {
      position:absolute;
      z-index:1;
      background-color:var(--color1);
	  padding-top:15px;
	  padding-bottom:15px;
	  margin-top:5px;
	  min-width:250px;
    }

    .main-menu .sub-menu li  {
      list-style: none;
      position: relative;
      /*float: right;
      padding:15px;*/
    }

    /* Les sous-menus imbriqués s'ouvrent à gauche en RTL, sans recouvrir
       le niveau parent. */
    .main-menu .sub-menu .sub-menu {
      top: -15px;
      right: 100%;
      margin-top: 0;
    }
	

    .main-menu .sub-menu a, 
    .main-menu .sub-menu a:visited,
    .main-menu .sub-menu a.nav-link:focus, 
    .main-menu .sub-menu a.nav-link:hover  {
      color: #fff !important;
      text-decoration: none;
    }


}




/*****************SLIDER*********************/

#slider .carousel-item:before{
    position: absolute;
	content:'';
	width:100%;
	height:100%;
background: rgb(55,106,68);
background: linear-gradient(270deg, var(--color4) 0%, var(--color4) 5%, rgba(255, 255, 255,0.2) 100%);
}

#slider .carousel-caption {
    position: absolute;
    right: 15%;
    bottom: auto;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    padding:1.25rem;
    color: #fff;
    text-align: right;
	top: 50%;
    transform: translateY(-50%);
}
#slider .carousel-caption a{
    color: #fff;
}
#slider .carousel-caption a:before{
	content:'';
	background:var(--color2);
	height:5px;
	width:100px;
	position:absolute;
	bottom:0;
}
#slider .carousel-caption h2{
    font-size:3rem;
	position:relative;
	font-weight:normal;
}
#slider .carousel-caption p{
    font-size:1rem;
}

/*************PAVE INTERMEDIAIRE**********/

.frontcarousel .caption {
    /*position: absolute;
    bottom: 0;
    padding: 15px;
    background: linear-gradient(0deg, var(--color6) 0%, var(--color6) 20%, rgba(255, 255, 255,0.2) 60%);*/
}

.frontcarousel .caption a{
    color: #ffffff;
	font-size:1.3em;
	padding-left: 55px;
}

.frontcarousel .side a{
    color: #ffffff;
	font-size:1em;
}

.frontcarousel .side {
    position: absolute;
    width: 45px;
    top: 0;
    left: 0;
    background: var(--color6);
    text-align: center;
	border-right: solid 10px var(--color4);
}
/***************PAVE EPINGLE*****************/

.pave-epingle img{
	/*box-shadow: 10px 19px 0px 0px var(--color1);
	-webkit-box-shadow: 10px 19px 0px 0px var(--color1);
	-moz-box-shadow: 10px 19px 0px 0px var(--color1);*/
}

.pave-epingle h2{
	font-size:3em;
	overflow:hidden;
}

.pave-epingle h2:after {
	content: "";
	display: inline-block;
	height: 0.5em;
	vertical-align: bottom;
	width: 100%;
	margin-left: -100%;
	margin-right: 10px;
	margin-bottom: 5px;
	border-top: 10px solid var(--color3);
	overflow: hidden;
}


.pave-epingle h3 {
    font-size: 2em;
	color:var(--color5);
}

.pave-epingle a{
	color:#181818;
}

.pave-epingle h3 a {
	color:var(--color5);
}
.pave-epingle .half-bg-1 {
	position:relative;
}
.pave-epingle .half-bg-1:before {
	content:"";
	width:100%;
	height:50px;
	position:absolute;
	right:0;
	top:0;
	z-index:-1;
	background:var(--color1);
}

.pave-epingle .half-bg-2 {
	position:relative;
}
.pave-epingle .half-bg-2:before {
	content:"";
	width:60%;
	height:100%;
	position:absolute;
	left:0;
	top:-50px;
	z-index:-1;
	background:#eaeaea;
}

/***************SECTION FILTERS**************/

.side-menu-filter a, .side-menu-filter a:hover, .side-menu-filter a:visited, .side-menu-filter a:focus{
  text-decoration: none;
  color:#333;
}

a.active-filter:before{
  content: "";
    border-left: 5px solid var(--color1);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    width: 0;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}


/***************BUTTONS*********************/

.light a.btn {
    color: #666;
    text-decoration: none;
}

/***************HEADER**********************/
.menu-principal-wrapper{
	background-color:var(--color1);
}

.navbar-brand img, .navbar-brand object{
  height: 150px;
  z-index: 9;
  position:relative;
}
.header .icon-header{
  height:20px;
  /*filter: brightness(0) invert(1);*/
  transition: all 0.3s linear;
  margin-top:5px;
}
.navbar-toggler {
    outline:none !important;
    font-size:14px;
}

header .navbar-collapse.show{
  /*border-bottom: solid 1px #014a71;*/
  left:-15px;
  right: auto;
}

.navbar-light .navbar-toggler {
    border: none;
}

.icon{
	height:25px;
  filter: contrast(0) grayscale(1);
  transition: all 0.3s linear;
}

.icon:hover{
  
  filter: grayscale(0);
}

header .nav-item{
	font-size:12px;
}

header .nav-item.dropdown{
  margin-left:50px;
  font-size:16px;
}

header a.nav-link.level-0{
  color:var(--color1) !important;
  font-weight: bold;
  font-family: Hacen;
  text-transform: uppercase;
}

header .navbar-collapse{
	/*position: absolute;
  top: 45px;
  left: -15px;
  z-index: 100;
  background: #f7f6f6;
  width: 100vw;*/
  padding: 0px;
  /*min-height: 100vh;*/
  /*margin-top: 5vh;*/
  transition: all 0.4s ease-out;
  /*left: calc(-1 * (100vw + 15px));*/
}


header .icon-bar {
  width: 22px; 
  height: 2px;
  background-color: var(--color1) !important;
  display: block;
  transition: all 0.2s;
  margin-top: 4px
}
 
header .navbar-toggler {
  border: none;
  background: transparent !important;
}
header .navbar-toggler .top-bar {
  transform: rotate(45deg);
  transform-origin: 10% 10%;
}
 
header .navbar-toggler .middle-bar {
  opacity: 0;
}
 
header .navbar-toggler .bottom-bar {
  transform: rotate(-45deg);
  transform-origin: 10% 90%;
}
 
header .navbar-toggler.collapsed .top-bar {
  transform: rotate(0);
}
 
header .navbar-toggler.collapsed .middle-bar {
  opacity: 1;
}
 
header .navbar-toggler.collapsed .bottom-bar {
  transform: rotate(0);
}

.navbar-light .navbar-nav .nav-link, .navbar-toggler {
    color: rgba(0,0,0,.6);
    /*font-weight: bold;*/
    font-family: Hacen;
    padding-bottom: 0;
}

.dropdown:hover>.dropdown-menu {
  display: block;
}

@media (min-width: 992px){
  .navbar-expand-lg .navbar-nav {
    width:100%;
  }
}


/***************FOOTER**********************/
footer{
  background-color:var(--color3);
  color:#333333;
	position:relative;
}

footer:before{
  	background-color:#eaeaea;
  	height:40px;
	width:100%;
	position:absolute;
	top:-40px;
	content:"";
}

footer .logo {
    height: 75px;
    z-index: 9;
    position: relative;
    filter: brightness(0) invert(1);
  transition: all 0.3s linear;
}
footer .icon-footer{
  height:20px;
  /*filter: brightness(0) invert(1);*/
  transition: all 0.3s linear;
  margin-top:5px;
}

footer ul {
  margin:0;
  padding:0;
}

footer a {
  color:#333333 !important;
  font-size:1.3em;
}
footer a.nav-link {
  color:#333333 !important;
  padding:0;
  font-size:1.3em;
}

footer a.nav-link.level-0 {
  	text-transform: uppercase;
    color: #181818 !important;
    font-family: Hacen;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.4rem;
}

@media (max-width: 1023px){
  footer{
    text-align: center;
  }
}

/***************TIMELINE********************/
.timeline {
  width: 100%;
  background: #fff;
  padding: 100px 50px;
  position: relative;
  box-shadow: 0.5rem 0.5rem 2rem 0 rgba(0, 0, 0, 0.2);
}
.timeline:before {
  content: '';
  position: absolute;
  top: 0px;
  right: calc(33% + 15px);
  bottom: 0px;
  width: 4px;
  background: #ddd;
}
.timeline:after {
  content: "";
  display: table;
  clear: both;
}

.entry {
  clear: both;
  text-align: right;
  position: relative;
}
.entry .title {
  margin-bottom: .5em;
  float: left;
  width: 33%;
  padding-left: 30px;
  text-align: left;
  position: relative;
}
.entry .title:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--color2);
  background-color: #fff;
  border-radius: 100%;
  top: 15%;
  left: -8px;
  z-index: 99;
}
.entry .title h3 {
  margin: 0;
  font-size: 120%;
}
.entry .title p {
  margin: 0;
  font-size: 100%;
}
.entry .body {
  margin: 0 0 3em;
  float: left;
  width: 66%;
  padding-right: 30px;
}
.entry .body p {
  line-height: 1.4em;
}
.entry .body p:first-child {
  margin-top: 0;
  font-weight: 400;
}
.entry .body ul {
  color: #aaa;
  padding-right: 0;
  list-style-type: none;
}
.entry .body ul li:before {
  content: "–";
  margin-left: .5em;
}

.timeline blockquote{
  color:#999;
}

.timeline a, .timeline a:hover, .timeline a:visited, .timeline a:focus{
  text-decoration: none;
  color:#333;
}

/****************CARD***********************/

.card {
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: transparent;
    background-clip: border-box;
    border: 0 solid rgba(0,0,0,.125);
    border-radius: .25rem;
}

.card.overlay {
    margin-bottom: .9375rem;
    position: relative;
    overflow: hidden;

}

.card.overlay .cover {
    position: relative;
    overflow: hidden
}

.card.overlay .card-body {
    width: 100%;
    position: absolute;
    height: 100%;
    bottom: 0;
    background-image: linear-gradient(0deg,#000,rgba(0,0,0,0.3),rgba(0,0,0,0));
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out
    
}

.card.overlay .card-body .card-details {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: .9375rem .9375rem .9375rem 4rem;
    padding: 10px;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out
}

.card.overlay .card-body .time {
    color: #fff!important
}

.card.overlay .card-body .time:before {
    display: none
}

.card.overlay .card-img-top {
    position: relative;
    overflow: hidden
}

.card.overlay .card-img-top .play-icon {
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 10px;
    z-index: 2;
    left: var(--play-icon-left);
    right: var(--play-icon-right)
}

.card.overlay .cat {
    display: none
}

.card.overlay .card-title {
    font-size: 1.1rem;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    display: -webkit-box;
    margin-top: 5px
}


.card.overlay .icon-card {
    color: #2b2b2b
}

.card.overlay img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .5s ease-in-out;
    transition: all .5s ease-in-out
}

.card.overlay:hover {
    cursor: default
}

.card.overlay:hover .card-body .card-details {
    bottom: 5%;
    transition: all .5s ease-in-out
}

.card.overlay:hover .card-body .card-details .date-card,.card.overlay:hover .card-body .card-details .comment-card {
    opacity: 0;
    transition: all .5s ease-in-out
}

.card.overlay:hover .card-img-top .play-icon {
    bottom: 20px
}

.card.overlay .date-card,.card.overlay .comment-card {
    opacity: 1;
    -webkit-transition: .3s ease-in-out;
    transition: all .3s ease-in-out
}

/************************************/

.see-more{
  float:left;
  font-size:12px;
  color:var(--color2);
}

.views-element-container img.img-front {
    position: relative;
    width: 100%;
	/*height: 235px;*/
}

.views-element-container .div-front {
/*max-height: 235px;*/
display: block;
overflow:hidden;
}

.container .col-12.col-lg-8 .col-12.col-md-6.mb-3 .card.aos-init.aos-animate {
    max-height: 200PX !important;
    max-width: 400px !important;
}

.container .col-12.col-lg-8 .col-12.col-md-6.mb-3 .card.aos-init.aos-animate iframe {
    width: 370px;
}

.card.aos-init.aos-animate img {
    max-height: 190px;
	height: 190px;
}

.card-img-top a .ratio-medium {
     max-height: 219px;
}

.card-img-top a .ratio-medium img{
    min-height: 219px;
}

div.container p img {
    max-width: 100%;
}

div.container div.col-12.col-lg-8 img {
    max-width: 100%;
}
.div-front-p {
    max-height: 235px;
    display: block;
    overflow: hidden;
}

img.img-front-p {
    position: relative;
    width: 100%;
    height: 235px;
}
@media (max-width: 1440px) {
	.div-front-p {
    max-height: 177px;
    display: block;
    overflow: hidden;
}
	.p-libre-2{
		/*background:#fff5d9;*/
		/*padding: 100px;*/
	}
	.p-libre-1{
		padding:50px 50px;
		background: var(--color6);
		/*background: linear-gradient(270deg, var(--color1) 0%, var(--color6) 100%);*/
	}
	.p-libre-1 p, .p-libre-1 a {
		color:#fff;
	}
	
	.p-libre-1 h2{
		font-size: 2em;
		font-weight:normal;
	}
	
	
	.p-libre-2 h2{
		font-size: 1.3em;
		font-weight:normal;
		overflow: hidden;
	}
	
	.p-libre-2 h2:after {
	  content: "";
	  display: inline-block;
	  height: 0.5em;
	  vertical-align: bottom;
	  width: 100%;
	  margin-left: -100%;
	  margin-right: 10px;
      margin-bottom: 5px;
	  border-top: 10px solid var(--color3);
	  overflow: hidden;
	}
}

table {
    max-width: 100% !important;
}

a.file.file--mime-application-pdf.file--application-pdf::before {
    content: "\00a0\f1c1";
    display: inline;
    font-family: FontAwesome;
    font-size: 1em;
    margin-left: 5px;
}
a.file.file--mime-application-vnd-openxmlformats-officedocument-wordprocessingml-document.file--x-office-document::before {
 content: "\00a0\f1c2";
    display: inline;
    font-family: FontAwesome;
    font-size: 1em;
    margin-left: 5px;
    }


#block-cts-content table {
  width: 100%;
}

#block-cts-content table td, #block-cts-content table th {
  border: 1px solid #ddd;
  padding: 8px;
}

#block-cts-content table tr:nth-child(even){background-color: #f2f2f2;}

#block-cts-content table tr:hover {background-color: #ddd;}

#block-cts-content table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white;
}



@media only screen and (max-width: 1023px) {
    /*.menu-principal{
      position: absolute;
      top: 0;
      width: 100%;
    }*/
	.navbar-toggler{
		position: absolute;
      	top: 0;
		left:0;

	}
	
	.pave-box {
		margin-left: 0%;
		margin-right: 0%;
		padding: 1.25rem;
		width: 100%;
	}
	
	.p-libre-1 {
		padding: 30px 30px;
		background: rgb(55, 106, 68);
		background: linear-gradient(270deg, var(--color1) 0%, var(--color6) 100%);
	}
	
	.p-libre-2 {
		background: #fff5d9;
		padding: 30px 30px;
	}
	
	.logo img, .logo object {
		height: 75px;
	}
    .navbar-toggle {
      border: none;
      background: transparent !important;
    }
    .navbar-toggle:hover {
      background: transparent !important;
    }
    .navbar-toggle .icon-bar {
      width: 22px;
      transition: all 0.2s;
    }
    .navbar-toggle .top-bar {
      transform: rotate(45deg);
      transform-origin: 10% 10%;
    }
    .navbar-toggle .middle-bar {
      opacity: 0;
    }
    .navbar-toggle .bottom-bar {
      transform: rotate(-45deg);
      transform-origin: 10% 90%;
    }
    .navbar-toggle.collapsed .top-bar {
      transform: rotate(0);
    }
    .navbar-toggle.collapsed .middle-bar {
      opacity: 1;
    }
    .navbar-toggle.collapsed .bottom-bar {
      transform: rotate(0);
    }

    .main-menu.navbar-collapse.collapse.show{
      height: 100vh;
      padding-top: 100px;
    }
	
	#slider .carousel-caption {
		position: absolute;
		right: 15%;
		bottom: auto;
		left: 15%;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		padding:0.5rem;
		color: #fff;
		text-align: right;
		top: 2rem;
	}
	#slider .carousel-caption a{
		color: #fff;
	}
	#slider .carousel-caption a:before{
		content:'';
		background:var(--color2);
		height:5px;
		width:100px;
		position:absolute;
		bottom:0;
	}
	#slider .carousel-caption h2{
		font-size:2rem;
		position:relative;
	}
	#slider .carousel-caption p{
		font-size:1rem;
	}


}
+

/*************** MODERN HOME PAGE (SCOPED) ****************/
.home-modern {
  --home-surface: #ffffff;
  --home-text: #1d2939;
  --home-muted: #667085;
  --home-radius: 22px;
  --home-shadow: 0 18px 50px rgba(16, 24, 40, 0.10);
  overflow: hidden;
  color: var(--home-text);
  background:
    radial-gradient(circle at 10% 30%, rgba(44, 143, 214, 0.07), transparent 28rem),
    #f7f9fc;
  padding-bottom: 4rem;
}

.home-modern #slider {
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(16, 24, 40, 0.16);
}

.home-modern #slider .carousel-item,
.home-modern #slider .carousel-item > img {
  min-height: 360px;
  max-height: 660px;
}

.home-modern #slider .carousel-item > img {
  object-fit: cover;
}

.home-modern #slider .carousel-item:before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 31, 52, 0.24), rgba(9, 31, 52, 0.78));
}

.home-modern #slider .carousel-caption {
  z-index: 2;
  right: 5%;
  left: 5%;
}

.home-modern #slider .carousel-caption .row {
  align-items: center;
  gap: 1.5rem;
}

.home-modern #slider .carousel-caption h2 {
  font-family: 'PNCT', 'dgct', sans-serif;
  font-size: clamp(1.35rem, 1.75vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.25);
}

.home-modern #slider .slider-title,
.home-modern #slider .slider-text {
  flex: 0 0 auto;
}

.home-modern #slider .slider-title {
  width: 58%;
  max-width: 58%;
}

.home-modern #slider .slider-text {
  width: 38%;
  max-width: 38%;
}

.home-modern #slider .carousel-caption h2 a:before {
  width: 72px;
  height: 4px;
  border-radius: 10px;
  bottom: -14px;
}

.home-modern #slider .carousel-caption p {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(8, 30, 50, 0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'PNCT', 'dgct', sans-serif;
  font-size: clamp(.76rem, .82vw, .9rem);
  line-height: 1.65;
  text-align: start;
}

.home-modern #slider .carousel-control-prev,
.home-modern #slider .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  margin: 0 1.25rem;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(9, 31, 52, 0.38);
  opacity: 1;
  backdrop-filter: blur(8px);
}

.home-modern #slider .carousel-indicators button {
  width: 28px !important;
  height: 5px !important;
  border-radius: 99px !important;
}

/* Shortcut modules */
.home-modern > .pave-box:not(.pave-epingle) {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: var(--home-radius);
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
}

.home-modern > .pave-box:not(.pave-epingle) > .row {
  gap: 0;
}

.home-modern > .pave-box:not(.pave-epingle) > .row > .col {
  min-width: 180px;
  padding: 1.5rem 1rem;
  border: 0;
  border-inline-end: 1px solid #e9edf3;
  transition: transform .25s ease, background-color .25s ease;
}

.home-modern > .pave-box:not(.pave-epingle) > .row > .col:last-child {
  border-inline-end: 0;
}

.home-modern > .pave-box:not(.pave-epingle) > .row > .col:hover {
  z-index: 1;
  border-radius: 16px;
  background: rgba(44, 143, 214, 0.06);
  transform: translateY(-5px);
}

.home-modern > .pave-box:not(.pave-epingle) img {
  transition: transform .25s ease;
}

.home-modern > .pave-box:not(.pave-epingle) .col:hover img {
  transform: scale(1.08);
}

.home-modern > .pave-box:not(.pave-epingle) h4 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

.home-modern > .pave-box:not(.pave-epingle) h4 a {
  color: var(--home-text);
}

/* Featured content */
.home-modern .pave-epingle {
  width: min(1280px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem;
  border-radius: 28px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
}

.home-modern .pave-epingle > .row {
  align-items: center;
}

.home-modern .pave-epingle .half-bg-1,
.home-modern .pave-epingle .half-bg-2 {
  border-radius: 20px;
  overflow: hidden;
}

.home-modern .pave-epingle .half-bg-1:before,
.home-modern .pave-epingle .half-bg-2:before {
  display: none;
}

.home-modern .pave-epingle img {
  border-radius: 18px;
  object-fit: cover;
}

.home-modern .pave-epingle h2 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.25;
}

.home-modern .pave-epingle h2:after {
  border-top-width: 5px;
  border-radius: 10px;
}

.home-modern .pave-epingle p {
  color: var(--home-muted);
}

/* News, events and announcements */
.home-modern .pave-box-actus {
  padding: 4rem max(1rem, 5vw);
  background: linear-gradient(135deg, var(--color2), var(--color1));
}

.home-modern .pave-box-actus > .row {
  margin: 0 auto;
  max-width: 1320px;
}

.home-modern .pave-box-actus > .row > [class*="col-"] {
  padding: .75rem !important;
}

.home-modern .pave-box-actus .pave-wrapper {
  height: 100%;
  margin: 0 !important;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, background-color .25s ease;
}

.home-modern .pave-box-actus .pave-wrapper:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-6px);
}

.home-modern .pave-box-actus .pave-title {
  margin: 0;
  font-size: 1.7rem;
  text-align: start;
}

.home-modern .pave-box-actus .pave-title + * {
  color: #fff;
}

.home-modern .pave-box-actus .mt-5 {
  margin-top: 1.5rem !important;
}

.home-modern .frontcarousel .carousel-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.home-modern .frontcarousel .div-front,
.home-modern .frontcarousel .img-front {
  height: 250px;
}

.home-modern .frontcarousel .img-front {
  object-fit: cover;
  transition: transform .45s ease;
}

.home-modern .frontcarousel .carousel-item:hover .img-front {
  transform: scale(1.045);
}

.home-modern .frontcarousel .caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  min-height: 45%;
  padding: 3rem 1.25rem 1.15rem;
  background: linear-gradient(0deg, rgba(6, 25, 42, .95), transparent);
}

.home-modern .frontcarousel .caption a {
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

/* Bottom editorial grid */
.home-modern .p-libre-wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

.home-modern .p-libre-2 {
  padding: 0 1rem;
}

.home-modern .p-libre-2 > .row {
  row-gap: 1.5rem;
}

.home-modern .p-libre-2 > .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: var(--home-radius);
  background: var(--home-surface);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-modern .p-libre-2 > .row > [class*="col-"]:hover {
  transform: translateY(-6px);
  box-shadow: var(--home-shadow);
}

.home-modern .p-libre-2 h2 {
  order: 2;
  margin: 1.15rem .35rem .35rem;
  font-size: 1.25rem;
  line-height: 1.55;
}

.home-modern .p-libre-2 > .row > [class*="col-"] > a {
  order: 1;
  overflow: hidden;
  border-radius: 15px;
}

.home-modern .p-libre-2 img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}

.home-modern .p-libre-2 > .row > [class*="col-"]:hover img {
  transform: scale(1.04);
}

@media (max-width: 991.98px) {
  .home-modern {
    padding-bottom: 2.5rem;
  }

  .home-modern #slider .carousel-item,
  .home-modern #slider .carousel-item > img {
    min-height: 430px;
  }

  .home-modern #slider .carousel-caption {
    right: 8%;
    left: 8%;
  }

  .home-modern #slider .carousel-caption p {
    margin-top: 2rem !important;
  }

  .home-modern #slider .slider-title,
  .home-modern #slider .slider-text {
    width: 100%;
    max-width: 100%;
  }

  .home-modern > .pave-box:not(.pave-epingle) > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-modern > .pave-box:not(.pave-epingle) > .row > .col {
    min-width: 0;
    border-inline-end: 0;
    border-bottom: 1px solid #e9edf3;
  }

  .home-modern .pave-epingle h2 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .home-modern #slider .carousel-item,
  .home-modern #slider .carousel-item > img {
    min-height: 470px;
  }

  .home-modern #slider .carousel-control-prev,
  .home-modern #slider .carousel-control-next {
    display: none;
  }

  .home-modern #slider .carousel-caption {
    top: 50%;
    right: 1rem;
    left: 1rem;
    transform: translateY(-50%);
  }

  .home-modern #slider .carousel-caption h2 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .home-modern #slider .carousel-caption p {
    padding: 1rem;
    font-size: .95rem;
  }

  .home-modern > .pave-box:not(.pave-epingle) {
    width: calc(100% - 1.25rem);
  }

  .home-modern > .pave-box:not(.pave-epingle) > .row {
    grid-template-columns: 1fr;
  }

  .home-modern .pave-epingle {
    width: calc(100% - 1.25rem);
    padding: .75rem;
  }

  .home-modern .pave-box-actus {
    padding: 2.5rem .5rem;
  }

  .home-modern .frontcarousel .div-front,
  .home-modern .frontcarousel .img-front {
    height: 220px;
  }
}
/*************** MODERN SITE HEADER ****************/
@font-face {
  font-family: 'PNCT';
  src: url('fonts/pnct/pnct-Light.woff2') format('woff2'),
       url('fonts/pnct/pnct-Light.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PNCT';
  src: url('fonts/pnct/pnct-Bold.woff2') format('woff2'),
       url('fonts/pnct/pnct-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.site-header {
  padding-right: 0;
  padding-left: 0;
  border-bottom: 6px solid var(--color2);
  background: #fff;
  box-shadow: 0 8px 30px rgba(16, 24, 40, .08);
}

/* L'en-tête n'a pas de marge intérieure : sans cela, les marges négatives
   des rangées Bootstrap débordent de la fenêtre (défilement horizontal). */
.site-header > .row {
  margin-right: 0;
  margin-left: 0;
}

.site-header .header-main-row {
  min-height: 76px;
  padding: 5px clamp(1.25rem, 4vw, 5rem);
}

.site-header .logo img,
.site-header .logo object {
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.site-header .logo:hover img,
.site-header .logo:hover object {
  transform: translateY(-2px);
}

.site-header .topbar ul.navbar-nav {
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.site-header .topbar li.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 clamp(1.25rem, 3vw, 3.5rem);
  border-left: 1px solid #e7ebf0;
}

.site-header .topbar li.nav-item:first-child,
.site-header .topbar li.nav-item:last-child {
  padding-right: clamp(1.25rem, 3vw, 3.5rem);
  padding-left: clamp(1.25rem, 3vw, 3.5rem);
}

.site-header .topbar a,
.site-header .topbar a:visited {
  position: relative;
  color: var(--color2);
  font-family: 'PNCT', 'dgct', sans-serif;
  font-size: clamp(.92rem, 1.08vw, 1.16rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  transition: color .2s ease, transform .2s ease;
}

.site-header .topbar a:after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: -10px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--color1);
  transform: translateX(50%);
  transition: width .25s ease;
}

.site-header .topbar a:hover,
.site-header .topbar a:focus {
  color: var(--color1);
  opacity: 1;
  transform: translateY(-2px);
}

.site-header .topbar a:hover:after,
.site-header .topbar a:focus:after,
.site-header .topbar li.active > a:after {
  width: 36px;
}

.site-header .header-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

.site-header .header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 !important;
  border: 1px solid #e5eaf0;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-header .header-socials a:hover,
.site-header .header-socials a:focus {
  border-color: var(--color2);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
  transform: translateY(-3px);
}

.site-header .header-socials .icon-header {
  width: 14px;
  height: 14px;
  margin: 0;
}

.site-header .menu-principal-wrapper {
  min-height: 56px;
  padding: 0 clamp(1rem, 3vw, 4rem);
  background: linear-gradient(100deg, var(--color1), color-mix(in srgb, var(--color1) 82%, white));
}

@media only screen and (min-width: 1024px) {
  .site-header .main-menu ul.navbar-nav {
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(.9rem, 2vw, 2.25rem);
  }

  .site-header .main-menu li.nav-item {
    display: flex;
    align-items: center;
    min-height: 56px;
    margin-left: 0;
    padding-bottom: 0;
  }

  .site-header .main-menu a.nav-link {
    color: #fff !important;
    font-family: 'PNCT', 'dgct', sans-serif;
    font-size: clamp(.82rem, .92vw, 1rem);
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-header .main-menu li.nav-item:hover > a.nav-link {
    opacity: .86;
    transform: translateY(-2px);
  }

  .site-header .main-menu ul.navbar-nav > li.nav-item:before {
    top: auto;
    right: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    border-radius: 99px 99px 0 0;
    background: #fff;
  }

  .site-header .main-menu ul.navbar-nav > li.nav-item:hover:before,
  .site-header .main-menu ul.navbar-nav > li.nav-item.active:before {
    width: 100%;
  }

  .site-header .main-menu .sub-menu {
    margin-top: 0;
    padding: .65rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .2);
  }

  /* Niveau 2 : toujours sous l'élément actif du niveau 1. */
  .site-header .main-menu > ul.navbar-nav > li.nav-item > .sub-menu {
    top: 100%;
    right: 0;
    left: auto;
  }

  /* Les éléments imbriqués ne reprennent pas la hauteur du menu principal. */
  .site-header .main-menu .sub-menu li.nav-item {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  /* Niveau 3 : à gauche du niveau 2 en lecture RTL. */
  .site-header .main-menu .sub-menu > li.nav-item > .sub-menu {
    top: calc(-.65rem - 1px);
    right: calc(100% + .65rem);
    left: auto;
    margin-top: 0;
    border-radius: 16px 0 16px 16px;
  }

  /* Le niveau 3 est collé au bord du niveau 2 : cette bande invisible couvre
     la marge intérieure du niveau 2 pour que le survol ne se coupe pas. */
  .site-header .main-menu .sub-menu > li.nav-item > .sub-menu:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -.7rem;
    width: .7rem;
  }

  /* Dernier élément : ses sous-menus s'ouvrent vers l'intérieur pour ne
     pas sortir de l'écran. */
  .site-header .main-menu > ul.navbar-nav > li.nav-item:last-child > .sub-menu {
    right: auto;
    left: 0;
  }

  .site-header .main-menu > ul.navbar-nav > li.nav-item:last-child > .sub-menu > li.nav-item > .sub-menu {
    right: auto;
    left: calc(100% + .65rem);
    border-radius: 0 16px 16px 16px;
  }

  .site-header .main-menu > ul.navbar-nav > li.nav-item:last-child > .sub-menu > li.nav-item > .sub-menu:after {
    right: auto;
    left: -.7rem;
  }

  .site-header .main-menu .sub-menu a.nav-link {
    padding: .72rem .85rem !important;
    border-radius: 9px;
    white-space: normal;
  }

  .site-header .main-menu .sub-menu a.nav-link:hover,
  .site-header .main-menu .sub-menu a.nav-link:focus {
    background: rgba(255, 255, 255, .1);
  }
}

/* L'en-tête complet et le slider occupent 80 % de la fenêtre : le bloc
   suivant reste volontairement visible sous la ligne de flottaison. */
.site-header ~ main .home-modern #slider {
  height: calc(80vh - 138px);
  height: calc(80svh - 138px);
  min-height: 360px;
  max-height: 650px;
}

.site-header ~ main .home-modern #slider .carousel-inner,
.site-header ~ main .home-modern #slider .carousel-item,
.site-header ~ main .home-modern #slider .carousel-item > img {
  height: 100%;
  min-height: 0;
  max-height: none;
}

@supports not (background: color-mix(in srgb, red, white)) {
  .site-header .menu-principal-wrapper {
    background: var(--color1);
  }
}

@media (max-width: 1023px) {
  .site-header .header-main-row {
    min-height: 68px;
    padding: 5px 1rem;
  }

  .site-header .logo img,
  .site-header .logo object {
    height: 48px;
  }

  .site-header .topbar a,
  .site-header .topbar a:visited {
    font-size: 1.05rem;
  }

  .site-header .topbar li.nav-item {
    min-height: 42px;
    padding: 0 .75rem;
  }

  .site-header .topbar li.nav-item:first-child,
  .site-header .topbar li.nav-item:last-child {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .site-header .header-socials a {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1023px) {
  .site-header ~ main .home-modern #slider {
    height: calc(80vh - 68px);
    height: calc(80svh - 68px);
    min-height: 390px;
  }
}

@media (max-width: 575.98px) {
  .site-header ~ main .home-modern #slider {
    min-height: 430px;
  }
}

@media (max-width: 767.98px) {
  .site-header .header-main-row {
    min-height: 82px;
  }

  .site-header .logo {
    width: 20%;
  }

  .site-header .header-links-wrap {
    width: 80%;
  }

  .site-header .topbar {
    width: 70%;
  }

  .site-header .header-socials {
    width: 30%;
    gap: .25rem;
  }

  .site-header .header-socials a {
    width: 30px;
    height: 30px;
  }

  .site-header .header-socials .icon-header {
    width: 15px;
    height: 15px;
  }
}

/*************** MODERN HOME SHORTCUTS ****************/
.home-shortcuts {
  --shortcut-accent: var(--color2, #2d8fd3);
  --shortcut-ink: #1d2939;
  --shortcut-line: #e4e9f0;
  --shortcut-chevron: -45deg;
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
}

.home-shortcuts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(.75rem, 1.2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-shortcuts__item {
  display: flex;
}

.home-shortcuts__card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--shortcut-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  color: var(--shortcut-ink) !important;
  text-align: center;
  text-decoration: none !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Filet d'accent qui se déploie au survol */
.home-shortcuts__card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--shortcut-accent);
  transform: scaleX(0);
  transition: transform .3s ease;
}

.home-shortcuts__icon {
  display: grid;
  flex: none;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 20px;
  background: rgba(45, 143, 211, .09);
  background: color-mix(in srgb, var(--shortcut-accent) 9%, #fff);
  transition: background-color .25s ease, transform .25s ease;
}

.home-shortcuts__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.home-shortcuts__title {
  font-size: clamp(.95rem, 1.05vw, 1.1rem);
  font-weight: 700;
  line-height: 1.6;
  text-wrap: balance;
}

.home-shortcuts__arrow {
  display: grid;
  width: 30px;
  height: 30px;
  margin-top: auto;
  place-items: center;
  border: 1px solid var(--shortcut-line);
  border-radius: 50%;
  color: #98a2b3;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.home-shortcuts__arrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: rotate(var(--shortcut-chevron));
}

.home-shortcuts__card:hover,
.home-shortcuts__card:focus-visible {
  border-color: rgba(45, 143, 211, .35);
  border-color: color-mix(in srgb, var(--shortcut-accent) 35%, #fff);
  box-shadow: 0 16px 36px rgba(16, 24, 40, .10);
  transform: translateY(-4px);
}

.home-shortcuts__card:focus-visible {
  outline: 2px solid var(--shortcut-accent);
  outline-offset: 3px;
}

.home-shortcuts__card:hover:before,
.home-shortcuts__card:focus-visible:before {
  transform: scaleX(1);
}

.home-shortcuts__card:hover .home-shortcuts__icon,
.home-shortcuts__card:focus-visible .home-shortcuts__icon {
  background: rgba(45, 143, 211, .16);
  background: color-mix(in srgb, var(--shortcut-accent) 16%, #fff);
  transform: scale(1.05);
}

.home-shortcuts__card:hover .home-shortcuts__arrow,
.home-shortcuts__card:focus-visible .home-shortcuts__arrow {
  border-color: var(--shortcut-accent);
  background: var(--shortcut-accent);
  color: #fff;
}

@media (max-width: 991.98px) {
  .home-shortcuts {
    width: calc(100% - 2rem);
  }

  .home-shortcuts__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .home-shortcuts {
    width: calc(100% - 1.5rem);
  }

  .home-shortcuts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shortcuts__card {
    gap: .7rem;
    padding: 1.25rem .6rem 1rem;
    border-radius: 14px;
  }

  .home-shortcuts__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .home-shortcuts__icon img {
    width: 32px;
    height: 32px;
  }

  .home-shortcuts__title {
    font-size: .85rem;
  }

  .home-shortcuts__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shortcuts__card,
  .home-shortcuts__card:before,
  .home-shortcuts__icon {
    transition: none;
  }

  .home-shortcuts__card:hover,
  .home-shortcuts__card:focus-visible {
    transform: none;
  }
}

/* Variante compacte : cartes horizontales (icône, titre, flèche) */
.home-shortcuts--row .home-shortcuts__list {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-shortcuts--row .home-shortcuts__card {
  flex-direction: row;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  text-align: start;
}

.home-shortcuts--row .home-shortcuts__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.home-shortcuts--row .home-shortcuts__icon img {
  width: 32px;
  height: 32px;
}

.home-shortcuts--row .home-shortcuts__title {
  flex: 1;
}

.home-shortcuts--row .home-shortcuts__arrow {
  display: grid;
  flex: none;
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .home-shortcuts--row .home-shortcuts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .home-shortcuts--row .home-shortcuts__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-shortcuts--row .home-shortcuts__title {
    font-size: .95rem;
  }
}

/*************** MODERN HOME FEATURED ****************/
.home-featured {
  --featured-accent: var(--color3, #e8a05c);
  --featured-ink: #1d2939;
  --featured-muted: #475467;
  --featured-line: #e9e2d6;
  --featured-chevron: -45deg;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
  /* Fond sable orné d'un motif géométrique marocain (étoile à huit branches),
     estompé au centre pour laisser respirer les cartes, et en haut et en bas
     pour ne pas être coupé net aux raccords */
  background-color: #f7f4ee;
  background-image:
    linear-gradient(180deg, #f7f4ee, rgba(247, 244, 238, 0) 35%, rgba(247, 244, 238, 0) 65%, #f7f4ee),
    linear-gradient(90deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, .9) 30%, rgba(247, 244, 238, .9) 70%, rgba(247, 244, 238, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' fill='none' stroke='%23a9714b' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M18 18h44v44H18zM40 9l31 31-31 31L9 40zM40 0v9M40 71v9M0 40h9M71 40h9M0 12L12 0M68 0l12 12M80 68L68 80M12 80L0 68'/%3E%3C/svg%3E");
  background-size: auto, auto, 80px 80px;
}

.home-featured__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 940px;
  margin-inline: auto;
}

.home-featured__main,
.home-featured__card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--featured-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
}

.home-featured__card {
  text-decoration: none !important;
  transition: transform .3s ease, box-shadow .3s ease;
}

.home-featured__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2f6;
}

.home-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.home-featured__body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.home-featured__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 .6rem;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.4;
}

/* Filet d'accent qui prolonge le titre */
.home-featured__title:after {
  content: "";
  flex: 1;
  min-width: 2rem;
  height: 4px;
  border-radius: 99px;
  background: var(--featured-accent);
}

.home-featured__title a {
  color: var(--featured-ink) !important;
  text-decoration: none !important;
}

.home-featured__text {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  color: var(--featured-muted);
  font-size: .92rem;
  line-height: 1.9;
}

.home-featured__more {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--featured-line);
  border-radius: 50%;
  color: var(--featured-ink) !important;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.home-featured__more:before {
  content: "";
  width: 7px;
  height: 7px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: rotate(var(--featured-chevron));
}

.home-featured__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
}

.home-featured__subtitle {
  margin: 0;
  color: var(--color5, #a9714b);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
}

.home-featured__card:hover,
.home-featured__card:focus-visible {
  box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
  transform: translateY(-4px);
}

.home-featured__card:focus-visible,
.home-featured__title a:focus-visible,
a.home-featured__more:focus-visible {
  outline: 2px solid var(--featured-accent);
  outline-offset: 3px;
}

.home-featured__main:hover .home-featured__media img,
.home-featured__card:hover .home-featured__media img {
  transform: scale(1.04);
}

a.home-featured__more:hover,
.home-featured__card:hover .home-featured__more,
.home-featured__card:focus-visible .home-featured__more {
  border-color: var(--featured-accent);
  background: var(--featured-accent);
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .home-featured {
    padding-inline: .75rem;
  }

  .home-featured__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-featured__media img,
  .home-featured__card {
    transition: none;
  }

  .home-featured__card:hover,
  .home-featured__main:hover .home-featured__media img,
  .home-featured__card:hover .home-featured__media img {
    transform: none;
  }
}

/*************** MODERN HOME NEWS ****************/
.home-news {
  --news-accent: var(--color3, #e8a05c);
  --news-ink: #1d2939;
  --news-line: #e4e9f0;
  --news-chevron: -45deg;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  position: relative;
  /* Dégradé piloté par les couleurs du thème */
  background: linear-gradient(135deg, var(--color2), var(--color1));
}

/* Motif géométrique marocain (étoile à huit branches) en filigrane blanc,
   estompé en haut et en bas pour ne pas être coupé net aux raccords */
.home-news:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M18 18h44v44H18zM40 9l31 31-31 31L9 40zM40 0v9M40 71v9M0 40h9M71 40h9M0 12L12 0M68 0l12 12M80 68L68 80M12 80L0 68'/%3E%3C/svg%3E") 50% 50% / 80px 80px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  pointer-events: none;
}

.home-news__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  max-width: 1200px;
  margin-inline: auto;
}

.home-news__col {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
  transition: transform .3s ease, box-shadow .3s ease;
}

.home-news__col:hover {
  box-shadow: 0 26px 54px rgba(16, 24, 40, .22);
  transform: translateY(-4px);
}

.home-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-inline: .25rem;
}

.home-news__title {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  color: var(--news-ink);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.4;
}

.home-news__title:before {
  content: "";
  flex: none;
  width: 5px;
  height: 1.3em;
  border-radius: 99px;
  background: var(--news-accent);
}

.home-news__all {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--news-line);
  border-radius: 50%;
  color: var(--news-ink) !important;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.home-news__all:before {
  content: "";
  width: 7px;
  height: 7px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: rotate(var(--news-chevron));
}

.home-news__all:hover,
.home-news__all:focus-visible {
  border-color: var(--news-accent);
  background: var(--news-accent);
  color: #fff !important;
}

.home-news__item {
  display: block;
  color: var(--news-ink) !important;
  text-decoration: none !important;
}

.home-news__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #eef2f6;
}

.home-news__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.home-news__item:hover .home-news__media img {
  transform: scale(1.04);
}

/* Deux lignes réservées : la carte garde la même hauteur d'une diapositive à l'autre */
.home-news__headline {
  display: -webkit-box;
  min-height: 3.4em;
  margin: .9rem .25rem 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  transition: color .2s ease;
}

.home-news__item:hover .home-news__headline {
  color: var(--color2, #2d8fd3);
}

.home-news__dots {
  display: flex;
  gap: .35rem;
  margin: .9rem .25rem 0;
}

.home-news__dots button {
  width: 8px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d0d5dd;
  transition: width .3s ease, background-color .3s ease;
}

.home-news__dots button.active {
  width: 24px;
  background: var(--news-accent);
}

.home-news__all:focus-visible,
.home-news__item:focus-visible,
.home-news__dots button:focus-visible {
  outline: 2px solid var(--news-accent);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .home-news__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

@media (max-width: 575.98px) {
  .home-news {
    padding-inline: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-news__col,
  .home-news__media img,
  .home-news__dots button {
    transition: none;
  }

  .home-news__col:hover,
  .home-news__item:hover .home-news__media img {
    transform: none;
  }
}

/*************** MODERN HOME TOPICS ****************/
.home-topics {
  --topics-accent: var(--color3, #e8a05c);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.2vw, 1.25rem);
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.home-topics__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #1d2939;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .10);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .3s ease, box-shadow .3s ease;
}

.home-topics__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

/* Voile sombre en bas de l'image pour la lisibilité du titre */
.home-topics__card:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, rgba(13, 22, 36, 0), rgba(13, 22, 36, .88));
}

.home-topics__title {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  margin: 0;
  padding: 1.1rem 1.25rem;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
}

.home-topics__title:before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: .6rem;
  border-radius: 99px;
  background: var(--topics-accent);
  transition: width .3s ease;
}

.home-topics__card:hover,
.home-topics__card:focus-visible {
  box-shadow: 0 20px 44px rgba(16, 24, 40, .20);
  transform: translateY(-4px);
}

.home-topics__card:focus-visible {
  outline: 2px solid var(--topics-accent);
  outline-offset: 3px;
}

.home-topics__card:hover img,
.home-topics__card:focus-visible img {
  transform: scale(1.06);
}

.home-topics__card:hover .home-topics__title:before,
.home-topics__card:focus-visible .home-topics__title:before {
  width: 64px;
}

@media (max-width: 991.98px) {
  .home-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 2rem);
  }
}

@media (max-width: 575.98px) {
  .home-topics {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 1.5rem);
  }

  .home-topics__card {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-topics__card,
  .home-topics__card img,
  .home-topics__title:before {
    transition: none;
  }

  .home-topics__card:hover,
  .home-topics__card:hover img {
    transform: none;
  }
}

/*************** MODERN INNER PAGE ****************/
.page-article {
  --page-accent: var(--color3, #e8a05c);
  --page-ink: #1d2939;
  --page-text: #344054;
  --page-line: #e9e2d6;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* Connecté à l'administration : le bloc d'actions de Drupal est masqué par
   .invisible mais garde sa hauteur, d'où une bande blanche sous le menu. */
main [data-off-canvas-main-canvas] > div > .invisible {
  display: none;
}

/* Bandeau de titre : même fond sable à motif marocain que la page d'accueil */
.page-hero {
  padding: clamp(1.1rem, 2vw, 1.6rem) 1.5rem;
  background-color: #f7f4ee;
  background-image:
    linear-gradient(180deg, rgba(247, 244, 238, 0) 40%, #f7f4ee),
    linear-gradient(90deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, .9) 30%, rgba(247, 244, 238, .9) 70%, rgba(247, 244, 238, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' fill='none' stroke='%23a9714b' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M18 18h44v44H18zM40 9l31 31-31 31L9 40zM40 0v9M40 71v9M0 40h9M71 40h9M0 12L12 0M68 0l12 12M80 68L68 80M12 80L0 68'/%3E%3C/svg%3E");
  background-size: auto, auto, 80px 80px;
}

/* Avec une image de garde, le bandeau se prolonge pour qu'elle le chevauche */
.page-hero--cover {
  padding-bottom: clamp(4rem, 7vw, 5.25rem);
}

.page-hero__inner,
.page-article__inner {
  max-width: 860px;
  margin-inline: auto;
}

.page-article__inner {
  padding-inline: 1.5rem;
}

.page-hero .breadcrumb {
  float: none;
  margin: 0 0 .35rem;
  padding: 0;
  background: none;
  font-size: .85rem;
}

.page-hero .breadcrumb a {
  color: #667085;
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--page-ink);
}

.page-hero__title {
  margin: 0;
  color: var(--page-ink);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
}

.page-hero__title:after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: .6rem;
  border-radius: 99px;
  background: var(--page-accent);
}

.page-hero__date {
  margin: .6rem 0 0;
  color: #667085;
  font-size: .9rem;
}

.page-article__cover {
  max-width: 680px;
  margin: calc(-1 * clamp(2.75rem, 5vw, 3.75rem)) auto 0;
  overflow: hidden;
  border-radius: 20px;
  background: #eef2f6;
  box-shadow: 0 20px 46px rgba(16, 24, 40, .16);
}

.page-article__cover img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.page-article__body {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--page-text);
  font-size: 1.05rem;
  line-height: 2.05;
  overflow-wrap: break-word;
}

.page-article__body p {
  margin: 0 0 1.15rem;
}

.page-article__body h2,
.page-article__body h3,
.page-article__body h4 {
  margin: 2.25rem 0 .9rem;
  color: var(--page-ink);
  line-height: 1.5;
}

.page-article__body h2 {
  font-size: 1.6rem;
}

.page-article__body h3 {
  font-size: 1.35rem;
}

.page-article__body h4 {
  font-size: 1.15rem;
}

.page-article__body strong {
  color: var(--page-ink);
}

/* Les soulignés servent d'intertitres dans les contenus existants */
.page-article__body u {
  text-decoration-color: var(--page-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: .45em;
}

.page-article__body a {
  color: var(--color2, #2d8fd3);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.page-article__body img,
.page-article__body iframe,
.page-article__body video {
  max-width: 100%;
}

.page-article__body img {
  display: block;
  height: auto;
  margin: 2rem auto;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .10);
}

.page-article__body ul {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--page-line);
  border-radius: 14px;
  background: #fbfaf7;
  list-style: none;
}

.page-article__body ul > li {
  position: relative;
  padding-inline-start: 1.35rem;
}

.page-article__body ul > li:before {
  content: "";
  position: absolute;
  top: .9em;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--page-accent);
}

.page-article__body ol {
  margin: 0 0 1.5rem;
  padding-inline-start: 1.5rem;
}

.page-article__body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--page-accent);
  border-radius: 0 12px 12px 0;
  background: #fbfaf7;
  color: var(--page-ink);
}

.page-article__body table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.7;
}

.page-article__body th,
.page-article__body td {
  padding: .7rem .9rem;
  border: 1px solid var(--page-line);
  vertical-align: top;
}

.page-article__body th {
  background: #f7f4ee;
  color: var(--page-ink);
}

@media (max-width: 575.98px) {
  .page-hero {
    padding-inline: 1rem;
  }

  .page-article__inner {
    padding-inline: 1rem;
  }

  .page-article__cover {
    border-radius: 14px;
  }

  .page-article__body {
    font-size: 1rem;
    line-height: 1.95;
  }
}
