/* ----------------------------------------------------
   SIDEBAR — Premium Marrakech
-----------------------------------------------------*/

/* sidebar */
#rightcol {
	flex: 1;
    max-width: 315px;
    width:100%;
}

#rightcol .widget {
    background: url(images/minip.jpg) repeat;
    margin-bottom: 0;
    padding: 0;
}

#rightcol .widget h2,
#rightcol .widget h3 {
    height: 30px;
    line-height: 30px;
    background: url(images/s2.jpg) repeat no-repeat;
    border: 1px solid #a32114;
    color: #a32114;
    font-family: var(--font-title);
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.1px;
    margin: 0;
}

#rightcol .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#rightcol .widget ul li {
    padding: 10px;
    border-bottom: 1px solid #e0d5c8;
}

#rightcol .widget ul li a {
    color: var(--marrakech-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

#rightcol .widget ul li a:hover {
    color: var(--marrakech-red);
}

#rightcol .widget p {
    padding: 5px 10px;
    margin: 0;
    text-align: justify;
    color: #3c3c3c;
}
/* Search */
#search {
	max-width: 315px;
	width: 100%;
	height:32px;
	padding-top:6px ;
	padding-bottom:5px ;
	margin:0 ;
	background:url(images/searchb.jpg);
}
#search form {
	margin: 0;
	padding: 0;
}
#search fieldset {
	margin: 0;
	padding: 0;
	border: none;
}
#search p {
	margin: 0;
	font-size: 85%;
}
#s {    /*Champ de recherche */
	margin-left:15px;
	width:220px;
	padding: 5px 5px;
	background:url(images/sf.jpg) no-repeat;
	border:none;
	font: normal 100% "century Gothic", Arial, Helvetica, sans-serif;
	color:#333333;
}
#searchsubmit {
	width:60px;
	background:url(images/smit.jpg) no-repeat ;
    padding: 0px;
    margin: 0 0 0 0;
	border:none;
	font: bold 100% "century gothic", Arial, Helvetica, sans-serif;
	color: #FFFFFF;
	height:30px;
}
#fideohead{
    max-width: 100%;
    width: 100%;
	height:38px;
	background:#000 url(images/feathead.jpg) no-repeat;
}
#fideohead1{
    max-width:100%;
    width: 100%;
	height:30px;
    margin-top:5px;
	background:#000 url(images/feathead1.jpg) no-repeat;
}
#fvideo{
	width:100%;
    height: 255px;
	background:url(images/fv.jpg) repeat;
	margin:0 0 5px -1px;
	padding:1px 0 0 0;
    text-align:center;
    border: 1px solid #fff;
}	
#fvideo p{
    width:100%;
	margin:0px;
}
.banner {
    margin: 0 0 1px 0;
    padding: 0 0 5px 0;
    width: 315px;
    background: url(images/banner.jpg) repeat-y;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
    gap: 3px;                  /* espace propre entre images */
    box-sizing: border-box;
}

/* UL ne doit plus casser le layout */
.banner ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: contents; /* UL disparaît visuellement */
}

/* LI propre */
.banner ul li {
    margin: 0;
    padding: 0;
}

/* Images centrées, propres */
.banner ul li img {
    width: 150px;
    height: 90px;
    display: block;
    object-fit: cover;
    /* CADRE */
    border: 2px solid #ccc;
    border-radius: 4px;

    padding: 3px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 3px;
}

/* ----------------------------------------------------
   FOOTER — Marrakech Premium
-----------------------------------------------------*/
/* Footer global */
#footer {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 0 0;
    background: #F6F1EE url(images/head.jpg) no-repeat;
    background-size: cover;
    color: #333;
    font-weight: normal;
    font-family: Georgia, arial, helvetica, sans-serif;
    letter-spacing: 1px;
    max-width: 100%;
    height:auto;
    border-top: 2px solid #a32114;
    text-align: center;
}
/* Menu */
#footer .fmenu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 5px;
    text-align: initial;
    font-family: Georgia, Century Gothic, Arial, Tahoma, sans-serif;
}

#footer .fmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .fmenu ul:first-child { text-align: left; }
#footer .fmenu ul:last-child { text-align: right; }

#footer .fmenu ul li {
    height: 28px;
    line-height: 28px;
}

#footer .fmenu ul li a {
    color: #3c3c3c;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .fmenu ul li a:hover {
    color: #a32114;
}
@media (max-width: 768px) {
    #footer {
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center top;
    }
    #footer .fmenu ul{
    margin: 2px auto;
    padding: 0 1px;
    }
    #footer .fmenu ul li {
    height: 10px;
    line-height: 5px;
    }
    #footer .fmenu ul:last-child {
    text-align: right;
    margin-right : 5px;
    }
}

/* Copyright */
.copyright {
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* meilleur alignement vertical */
    padding: 25px 10px 5px;
}
@media (max-width: 768px) {
    .copyright {
        padding: 25px 5px 5px;
    }
}
.left {
    flex: 1;
    text-align: left;
    font-size: 11px;
}

.center {
    flex: 0.5;
    text-align: center;
    font-size: 13px;
    color: #971a0f;
}

.right {
    flex: 1;
    text-align: right;
    font-size: 11px;
}

/* ----------------------------------------------------*/
/*      TABLET SIDEBAR   Max-width : 768 => 1024px             *\
/*-----------------------------------------------------*/
@media screen and (min-width: 768px) and (max-width: 1024px) {

    .wrapper {
        display: flex;
        flex-direction: column;
        width: 100% !important;
    }

    #rightcol {
        width:35%;
        flex: 1;
    }
    
    .sidebar1,
    .sidebar2 {
        width: 100%;
        margin: 0 ;
        padding: 0 ;
    }

    #rightcol .widget h2,
    #rightcol .widget h3 {
        width: 100%;
        height: auto;
        line-height: normal;
        margin-top : 5px;
        padding: 5px 0;
        font-size: 15px;
        }
}
/* --------------------------------------------------*/
/*         RESPONSIVE SIDEBAR Max-width 768px        */
/*---------------------------------------------------*/
@media screen and (max-width: 768px) {

    /* Si tu es dans un @media, garde le @media au‑dessus, sinon enlève-le */
    #wrapper {
    /* si tu veux une colonne, il faut display:flex */
        display: flex;
        flex-direction: column;
    }

    #rightcol {
     max-width: 400px;
        width: 100%;
        margin-top: 0px;
        padding: 0;
        box-sizing: border-box;
    }

    .sidebar1,
    .sidebar2 {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    #rightcol .widget {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    #rightcol .widget h2,
    #rightcol .widget h3 {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        font-size: 16px;
    }

    #rightcol .widget ul li,
    #rightcol .widget p {
        padding: 5px;
        font-size: 14px;
    }

    #fvideo {
        max-width: 400px;
        width: 100%;
        background: url(images/fv.jpg) repeat-y;
        margin: 0;
        padding: 0;
    }
    #fideohead {
    max-width: 400px;
    width: 100%;
    background: #d9d1ce url(images/feathead.jpg) no-repeat no-repeat;
    height:30px;
    margin-top:5px;
    }
    #fideohead1 {
    max-width:400 px;
    width: 100%;
    background: #d9d1ce url(images/feathead1.jpg) no-repeat;
	height:30px;
    margin-top:5px;
    }

    #fvideo p {
    max-width: 400px;
    width: 99%;
    margin: 0px auto 5px;
    background: #d9d1ce;
    }
    
    #fvideo img {
        max-width: 400px;
        width: 90%;
        height : auto;
        padding :5px;
        margin: 0 10px;
        background: #d9d1ce;
    }

    #search {
	max-width: 400px;
	width: 100%;
    height: 32px;
    background: url(images/searchb.jpg);
    }
    #s {    /*Champ de recherche */
	margin-left:30px;
	width:280px;
    }
    
    .banner {
        max-width : 400px;
        width: 100%;
        height: auto;
        background : #d9d1de url(images/banner.jpg) repeat;
        margin: 0 auto;
    }
    .banner ul li img {
        width:180px;
        height:120px;
    }
    
}

