@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; }
.bg-fixe { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background-size: cover; background-position: center center; background-repeat: no-repeat; }

/* =========================================================
   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 700px 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.6); 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; }
.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; }

/* LIENS WHATSAPP/MESSAGERIE */
.divtexte a[href*="whatsapp"], .divtexte a[href*="contact.php"] { background-color: #FCDFBC; padding: 6px 14px; border-radius: 4px; font-weight: bold; display: inline-block; margin: 4px 0; }
.divtexte a[href*="whatsapp"]:hover, .divtexte a[href*="contact.php"]:hover { background-color: #BD0E36; color: #FFF; }
/* LISTES dans .divtexte */
.divtexte ul { padding-left: 30px; margin: 15px 0; }
.divtexte ul li { padding: 4px 0; line-height: 1.5; }
.divtexte ul li a { font-weight: 500; }
/* TITRES H2 et H3 */
.divtexte h2 { font-size: 28px; padding: 12px 15px; margin: 30px 0 15px 0; background-color: rgba(255,255,255,0.4); border-left: 5px solid #BD0E36; border-top: 1px solid #999; border-right: 1px solid #999; border-bottom: 1px solid #999; }
.divtexte h3 { font-size: 22px; color: #BD0E36; margin: 20px 0 10px 0; padding-bottom: 5px; border-bottom: 2px solid #FCDFBC; }
/* CITATION (témoignages TripAdvisor) */
.divtexte blockquote { background-color: rgba(255,255,255,0.5); border-left: 5px solid #BD0E36; padding: 20px 25px; margin: 25px 0; font-style: italic; border-radius: 4px; }
.divtexte blockquote footer { margin-top: 10px; font-style: normal; font-size: 14px; }
/* SÉPARATEUR */
.divtexte hr { border: 0; height: 2px; background: linear-gradient(to right, transparent, #BD0E36, transparent); margin: 35px 0; }
/* PARAGRAPHES */
.divtexte p { line-height: 1.7; margin: 12px 0; }
.divtexte strong { color: #6D3309; }

/* =========================================================
   SLIDER (haut de page)
   ========================================================= */
.slider { position: relative; width: 100%; overflow: hidden; }
.slides { position: relative; width: 100%; height: 500px; }
.slides .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; transition: opacity 0.8s ease; pointer-events: none; }
.slides .slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 100; }
.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; pointer-events: auto; }
.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; pointer-events: none; }
.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: 12px 20px; background-color: rgba(248,174,87,1); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-size: 18px; }
.divtel a { display: inline-block; padding: 8px 16px; background: rgba(255,255,255,0.85); color: #BD0E36; border-radius: 25px; text-decoration: none; font-weight: 600; font-size: 15px; transition: all .3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.15); white-space: nowrap; }
.divtel a:hover { background: #BD0E36; color: #FFF !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(189,14,54,0.4); }
.divtel a[href^="tel:"] { background: rgba(255,255,255,0.85); color: #6D3309; }
.divtel a[href^="tel:"]:hover { background: #6D3309; color: #FFF; }
.divtel a.lien-drapeau { background: none; padding: 0; box-shadow: none; border-radius: 0; }
.divtel a.lien-drapeau:hover { background: none; transform: none; box-shadow: none; }
.divtel .btnfr, .divtel .btnen { float: none; margin: 0; opacity: 1; vertical-align: middle; }
.divtel .btnfr:hover, .divtel .btnen:hover { opacity: 0.6; }.btnfr, .btnen { width: 30px; height: 29px; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity .3s; }
.btnfr { background-image: url(../images-desert/fr2.png); }
.btnen { background-image: url(../images-desert/uk.png); }
.btnfr:hover, .btnen:hover { opacity: 0.6; }

/* =========================================================
   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; }

   
/* =========================================================
   FOOTER 
   ========================================================= */
.footer-wrap { background: linear-gradient(180deg, rgba(157,84,29,0.95) 0%, rgba(109,51,9,0.98) 100%); color: #FCDFBC; padding: 50px 30px 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(252,223,188,0.2); }
.footer-col h4 { color: #FFF; font-size: 18px; margin: 0 0 18px 0; padding-bottom: 8px; border-bottom: 2px solid #BD0E36; display: inline-block; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: #FCDFBC; text-decoration: none; transition: all .25s ease; font-size: 14px; }
.footer-col a:hover { color: #FFF; padding-left: 5px; }
.footer-adresse { margin: 0 0 15px 0; line-height: 1.6; font-size: 14px; }
.footer-tel { display: inline-block; padding: 4px 0; font-weight: 600; font-size: 15px; }
.footer-btn { display: inline-block; padding: 10px 22px; background: #BD0E36; color: #FFF !important; border-radius: 25px; font-weight: 600; transition: all .3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.2); margin-top: 8px; }
.footer-btn:hover { background: #ED1144; transform: translateY(-2px); padding-left: 22px !important; box-shadow: 0 4px 12px rgba(189,14,54,0.5); }
.footer-social { display: flex; gap: 12px; align-items: center; margin: 5px 0 0; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50%; transition: all .3s ease; padding: 0 !important; }
.footer-social a:hover { background: #BD0E36; transform: translateY(-3px); padding: 0 !important; }
.footer-social img { width: 24px; height: 24px; }
.footer-whatsapp { font-size: 22px; text-decoration: none; }
.footer-partenaires li { padding: 4px 0; font-size: 13px; }
.footer-tripadvisor { text-align: center; padding: 25px 0 20px; border-bottom: 1px solid rgba(252,223,188,0.2); }
.footer-tripadvisor img { max-width: 200px; height: auto; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; color: rgba(252,223,188,0.7); }
.footer-bottom a { color: #FCDFBC; }
.footer-bottom a:hover { color: #FFF; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 500px) {
    .footer-container { grid-template-columns: 1fr; gap: 25px; }
    .footer-wrap { padding: 30px 15px 20px; }
}   
   
.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: linear-gradient( to bottom,  rgba(248, 174, 87, 0.3) 0%, rgba(248, 174, 87, 0.4) 30%,  rgba(248, 174, 87, 1) 100%0); }
.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; }
/* BOUTONS BAS DE PAGE (Plan, Haut, Contact) */
.bas .trekdesert { display: inline-block; padding: 10px 24px; margin: 6px 4px; background: #FCDFBC; color: #BD0E36 !important; border-radius: 25px; font-size: 16px !important; font-weight: 600; text-decoration: none; transition: all .3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.bas .trekdesert:hover { background: #BD0E36; color: #FFF !important; transform: translateY(-2px); text-decoration: none !important; box-shadow: 0 4px 12px rgba(189,14,54,0.4); }

/* =========================================================
   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%; margin: 0 auto 700px auto;	}	
    #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;text-align: left }
    .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; }
	.slides { height: auto; aspect-ratio: 3 / 1; }
	.slides .slide { object-fit: cover; }
    body { background-attachment: scroll !important; background-size: cover !important; background-position: center top !important; background-repeat: no-repeat !important; }
}
@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; }
}