@font-face { font-family: 'Montserrat'; src: url(../fonts/Montserrat.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
body { font-size: 18px; font-family: 'Montserrat', sans-serif; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
.blc { color: #FFF !important; }

/* =========================================================
   MENU PRINCIPAL
   ========================================================= */
#cssmenu, #cssmenu ul, #cssmenu li, #cssmenu a { margin: 0; padding: 0; border: 0; list-style: none; font-weight: normal; text-decoration: none; line-height: 1; font-family: 'Open Sans', sans-serif; font-size: 14px; position: relative; }
#cssmenu a { line-height: 1.3; }
#cssmenu { width: 300px; }
#cssmenu > ul > li > a { padding: 12px 50px 12px 12px; font-size: 16px; font-weight: bold; display: block; background: #ED1144; color: #FFF; border-bottom: 1px solid #5e071b; text-transform: uppercase; transition: all .3s; position: relative; }
#cssmenu > ul > li > a > span { display: block; font-size: 14px; font-weight: 400; line-height: 1.3; }
#cssmenu > ul > li > a:hover { text-decoration: none; background-color: #F8AE57; }

/* Pastille nombre de pages à droite */
#cssmenu .has-sub > a::after { content: attr(data-count); font-size: 14px; font-weight: bold; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; display: flex; align-items: center; justify-content: center; background: #BD0E36; transition: background 0.3s ease; }
#cssmenu .has-sub > a:hover::after { background: #8E0828; }

/* Page active */
#cssmenu > ul > li.activee > a,
#cssmenu > ul > li > a.activee,
#cssmenu > ul > li > a > .activee { background: #BD0E36 !important; color: #FFF; }
#cssmenu > ul > li.has-sub.open > a { background: #BD0E36; }
#cssmenu > ul > li.has-sub.open > a::after { background: #8E0828; }
.contactc { font-size: 18px !important; font-weight: bold !important; }

/* SOUS-MENU */
#cssmenu ul ul { display: none; background-color: #FCDFBC; }
#cssmenu .has-sub.open > ul { display: block; }
#cssmenu ul ul li { border: 1px solid #e0e0e0; border-top: 0; }
#cssmenu ul ul li:nth-child(odd) { background-color: #FCDFBC; }
#cssmenu ul ul li:nth-child(even) { background-color: #FFF; }
#cssmenu ul ul a { padding: 10px 12px; display: block; color: #BD0E36; font-size: 13px; }
#cssmenu ul ul a:hover { color: #FFF; background-color: #F8AE57; transition: all .3s; }
#cssmenu ul ul a.activee { background-color: #BD0E36 !important; color: #FFF !important; }

/* =========================================================
   LAYOUT 2 COLONNES
   ========================================================= */
.center { width: 100%; }
.desert-maroc { width: 90%; max-width: 1400px; margin: 60px auto 300px auto; display: flex; gap: 30px; align-items: flex-start; }
#divmenu { width: 300px; flex-shrink: 0; float: none; overflow: visible; }
#divmenu2 { display: none; }

/* =========================================================
   CONTENU TEXTE
   ========================================================= */
.divtexte { flex: 1; min-width: 0; overflow: auto; text-align: justify; padding: 50px; background-color: rgba(253, 226, 193, 0.5); box-shadow: 8px 8px 17px #aaa; border: 1px solid #9D541D; margin: 0 0 80px 0; }
.divtexte h2 { font-size: 28px; display: block; padding: 10px; background-color: rgba(255,255,255,0.3); border: 1px solid #999; }
.divtexte .savoirplus { font-size: 20px !important; text-align: center; display: inline-block; max-width: 170px; padding: 5px 10px; background-color: rgba(237,17,68,1); color: #FFF !important; border: 1px solid #999; margin: 0 auto 40px auto; transition: all .5s; }
.divtexte .savoirplus:hover { background-color: rgba(0,255,0,0.8); color: #BD0E36 !important; }
.divtexte a:link, .divtexte a:visited { text-decoration: none; color: #BD0E36; font-size: 22px; }
.divtexte a:hover { text-decoration: none; color: #ED1144; }
.desert a:link, .desert a:visited { text-decoration: none; color: #BD0E36; }
.desert a:hover { text-decoration: none; color: #ED1144; }

.normal { overflow: hidden; }
h1 { padding: 30px 0; }

/* =========================================================
   SLIDER (haut de page)
   ========================================================= */
.slider { position: relative; width: 100%; overflow: hidden; max-height: 600px; }
.slides { position: relative; width: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: auto; opacity: 0; z-index: 1; transition: opacity 1s ease; }
.slide.active { opacity: 1; z-index: 2; width: 100%; height: auto !important; position: relative; vertical-align: top; }
.controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.controls button { background-color: rgba(0, 0, 0, 0.5); color: #FFF; border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; font-size: 16px; }
.controls button:hover { background-color: rgba(0, 0, 0, 0.7); }
.popup { position: absolute; top: 100px; width: 500px; text-align: center; font-size: 36px; padding: 30px; font-style: italic; font-weight: bold; left: 30%; color: #F00; z-index: 10; }
.logodesert { width: 100%; max-width: 550px; height: auto; }

/* =========================================================
   GALERIE - vignettes en colonnes
   ========================================================= */
.gallery { column-count: 5; column-gap: 10px; }
.gallery img { width: 100%; margin-bottom: 10px; display: block; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transition: transform 0.3s; cursor: pointer; }
.gallery img:hover { transform: scale(1.02); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 999999; align-items: center; justify-content: center; }
#lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.15); color: #FFF; border: 0; cursor: pointer; transition: background 0.2s; }
.lightbox-close { top: 20px; right: 20px; width: 50px; height: 50px; font-size: 32px; border-radius: 50%; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 60px; height: 60px; font-size: 32px; border-radius: 50%; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #FFF; background: rgba(0,0,0,0.6); padding: 8px 16px; border-radius: 20px; font-size: 14px; }

/* =========================================================
   TÉLÉPHONE / LANGUES / LOGO
   ========================================================= */
.divtel { width: 100%; padding: 15px 0; text-align: center; font-size: 18px; background-color: rgba(248,174,87,1); }
.imgmaroc { border: 1px solid #000; width: 50%; height: auto; }
.btnen { width: 30px; height: 29px; background-image: url(../images-desert/uk.png); cursor: pointer; transition: all .5s; display: inline-block; vertical-align: top; margin: 0 30px; opacity: 0.5; float: right; }
.btnen:hover { opacity: 1; }
.btnfr { width: 30px; height: 29px; background-image: url(../images-desert/fr2.png); cursor: pointer; transition: all .5s; display: inline-block; vertical-align: top; margin: 0 30px; opacity: 0.5; float: left; }
.btnfr:hover { opacity: 1; }

/* =========================================================
   RETOUR EN HAUT
   ========================================================= */
.back_top { position: fixed; bottom: 30px; margin: 10px; right: 30px; width: 80px; height: 80px; display: block; opacity: 0.4; transition: .5s; background-image: url(../images-desert/fleche-page.png); background-color: transparent; border: 0; cursor: pointer; }
.back_top:hover { opacity: 0.9; }

/* =========================================================
   MENU MOBILE
   ========================================================= */
#smarphone { width: auto; font-size: 18px; padding: 0; margin: 0; background-color: #F8AE57; display: none; position: relative; z-index: 1000000; color: #FFF; }
.menu-trigger { display: block; background: transparent; border: 0; cursor: pointer; padding: 0; color: #FFF; text-decoration: none; }
.menu-toggle { display: none; cursor: pointer; background-color: #3D3D3B; width: 60px; height: 50px; }
.menu-icon { display: inline-block; vertical-align: middle; margin: 15px; }
.menu-icon span { display: block; width: 25px; height: 3px; background-color: #FFF; margin: 4px 0; transition: all 0.3s ease; }
.menu-text { display: inline-block; vertical-align: middle; font-family: Arial, sans-serif; font-size: 16px; color: #FFF; letter-spacing: 1px; padding: 0 15px; }

/* =========================================================
   FORMULAIRES
   ========================================================= */
input, textarea, select { border-radius: 5px; font-size: 14px; font-family: Verdana, Geneva, sans-serif; color: #000; padding: 5px; margin: 4px; font-weight: 100; width: 90%; border: solid 1px #dcdcdc; }
input:focus, textarea:focus, select:focus { border: solid 1px #000; box-shadow: 0 0 2px 2px #A4D38E; }
.bouton { background-color: #A4D38E; cursor: pointer; width: 300px; }
.buttonfit { display: inline-block; padding: 12px 24px; background-color: #BD0E36; color: #FFF !important; border-radius: 4px; transition: all .3s; cursor: pointer; font-size: 18px !important; }
.buttonfit:hover { background-color: #ED1144; transform: scale(1.05); }

/* =========================================================
   LIENS DIVERS
   ========================================================= */
.trek:link, .trek:visited { font-size: 16px; color: #6D3309; text-decoration: none; font-style: italic; display: block; padding: 5px; }
.trek:hover { color: #C25B10; background-color: #FEF0DE; }
.trekdesert:link, .trekdesert:visited { font-size: 22px; color: #6D3309; text-decoration: none; }
.trekdesert:hover { color: #C25B10; text-decoration: underline; }
.lienmenu:link, .lienmenu:visited { font-size: 18px; color: #662C04; text-decoration: none; }
.lienmenu:hover { color: #FFF; }

/* =========================================================
   COLONNES BAS DE PAGE
   ========================================================= */
.colonne { width: auto; margin: 50px 0; background-color: rgba(248,174,87,.3); }
.tripadvisor { text-align: center; width: 160px; margin: 0 auto; }
.bas { margin: 0 auto; width: auto; text-align: center; padding: 40px 0 0 0; }
.desert-bas { text-align: center; min-height: 400px; width: auto; padding: 0 0 50px 0; background-color: rgba(248,174,87,.3); }
.bas-desert-maroc { margin: 0 auto; padding: 10px 40px 40px 40px; width: 100%; text-align: center; clear: both; }
.bascolonne { display: inline-block; margin: 2px; width: 32%; text-align: left; background-color: rgba(252,223,188,0.5); vertical-align: top; }
.bastxt { overflow: hidden; padding: 8px 0 0 0; }
.bas-images-desert { padding: 20px 0; }

/* =========================================================
   TABLEAU MHAMID + ACTUS
   ========================================================= */
#mhamid td { border: 1px solid #FFF; }
#mhamid a { font-size: 12px; color: #FFF; line-height: 16px; text-decoration: none; display: block; padding: 7px 14px; }
#mhamid a:hover { background: #4D99B8; color: #FFF; }
.actutitre { width: auto; height: 40px; background-color: #BA7C40; text-align: center; }
.actuligne { line-height: 40px; }
.actu-desert { width: auto; height: 40px; background-color: #9D541D; font-size: 14px; color: #FFF; padding: 0 0 0 20px; line-height: 40px; }
.actupad { padding: 0 15px 15px 15px; }
.table1 { width: auto; border: 0; border-spacing: 0; text-align: right; }
.td1 { background-color: #9D541D; }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #BD0E36; color: #FFF; padding: 1em 1.5em; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 16px; z-index: 100000; box-shadow: 0 -2px 12px rgba(0,0,0,0.3); }
#cookie-banner p { margin: 0; flex: 1; min-width: 250px; color: #FFF; }
#cookie-banner a { color: #FFF; text-decoration: underline; }
#cookie-banner button { padding: 10px 20px; cursor: pointer; color: #BD0E36; background: #FFF; border: none; border-radius: 4px; font-size: 16px; font-weight: bold; transition: opacity .3s; }
#cookie-banner button:hover { opacity: 0.85; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1400px) {
    .popup { top: 10px; }
}
@media (max-width: 1200px) { .gallery { column-count: 4; } }
@media (max-width: 1000px) {
    .logodesert { max-width: 350px; }
    .controls { display: none; }
}
@media (max-width: 900px) { .gallery { column-count: 3; } }
@media (max-width: 768px) {
    #smarphone { display: block; }
    .desert-maroc { flex-direction: column; width: 100%; }
    #cssmenu { display: none; width: 100%; }
    #divmenu { display: none; width: 100%; position: absolute; top: 50px; z-index: 1000000; }
    .back_top { bottom: 10px; right: 10px; width: 40px; height: 40px; background-size: cover; }
    .divtexte { width: auto; padding: 10px; }
    .popup { display: none; }
    .imgmaroc { width: 100%; }
    .colonne { width: auto; margin: 20px 0; overflow: auto; max-height: 400px; }
    .bascolonne { margin: 2px auto; width: 95%; }
    .bascolonne ul { padding: 4px; }
    .menu-toggle { display: inline-block; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 24px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
@media (max-width: 600px) { .gallery { column-count: 2; } }
@media (max-width: 500px) { .gallery { column-count: 1; } }

/* ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .gallery img:hover { transform: none; }
}