* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #b58e69;
  --text: #fff;
  --radius: 10px;
  --gap: 1rem;
  --fw-bold: 600;
  --fw-normal: 400;
  --ff: 'Playfair Display', Georgia, "Times New Roman", serif;
  --ff-text: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
  --bg-color:#f7f4ef;
  --main-color:#1c342c;
  --shadow: 5px 6px 15px 0px rgba(0, 0, 0, 15%);
  --width: 1524px;
}
body {
  font-family: var(--ff-text);
  font-weight:600;
  color: var(--text);
  line-height: 1.6;
}


.lodge-header {
  min-height: 48vh;
  margin-top: -151px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.lodge-header::before{
  content: "";
  background: linear-gradient(
   to bottom,
   rgba(13, 46, 40, 0.8),   /* vert foncé semi-transparent */
   rgba(0, 0, 0, 0.9)       /* noir plus dense en bas */
 );
  position: absolute;
  top: 0;
  height: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.lodge-header .lodge-header_content{
  max-width: var(--width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  margin-bottom: 20px;
}

.lodge-header .lodge-header_content .header-title {
  color:white;
  z-index: 3;
  font-family: var(--ff);
  font-size: 80px;
  text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.4);
}
.lodge-body {position: relative; z-index: 1;}

.lodge-body_content {
  max-width: var(--width);
  margin: auto;
  padding-top: 8%;
  padding-bottom: 8em;
}

.lodge-body_content::before{
  content: '';
}

/* Galerie */
.gallery {
  display: flex;
  gap: var(--gap);
  margin: var(--gap) 0;
}
.gallery .col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.gallery .col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery .col.left { flex: 2; }
.gallery .col.center { flex: 2; }
.gallery .col.right { flex: 1; }

/**** GRID *****/

.lodge--grid {
  position: relative;
}

.lodge-grid .col-left { display: block; width: 100%;}


/* Détails du logement */
.room-info {
  margin: 2rem 0;
  font-family: sans-serif;
}

.room-header {
  display: flex;
  justify-content: flex-start;
  gap:38px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.room-header h1 {
  font-family: var(--ff);
  font-size: 37px;
  line-height: 1.2em;
  text-align: left;
  padding: 0;
  margin: 0;
  font-weight: bold;
}

.room-icons {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;

}

.room-icons i {
  padding: 11px;
  border-radius: 100%;
  display: inline-flex;
  align-items: center;
  color: white;
  justify-content: center;
  font-size: 16px;
  background:var(--secondary-color);
  width: 34px;
  height: 34px;
}

.room-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0.5rem 0 2rem;
  margin: 0;
  font-size: 0.95rem;
}

.room-features i {
  margin-right: 0.4rem;
}

.room-description {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 800px;
}

/* Atouts */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin: var(--gap) 0;
}
.feature {
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  flex: 1 1 150px;
  text-align: center;
}

/* Services additionnels */
.services {
  margin: 2rem 0 1rem;
  flex: 0.8;
}
.services h2 { font-weight: var(--fw-bold); margin-bottom: var(--gap); }
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.service {
  background: var(--bg-offwhite);
  border-radius: var(--radius);
  text-align: center;
  padding: var(--gap);
}
.service img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.service p {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}
.service .price {
  font-weight: var(--fw-bold);
  color: var(--primary);
}

/* Bloc Équipements */
.room-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.room-bloc h2 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--ff);
  font-weight: bold;
}

.room-bloc h5{
  color:var(--secondary-color);
}

.room-bloc ul li {list-style-type: disc; font-weight: 500; font-size: 14px;}


.service-group {
  margin-bottom: 1.5rem;
}

.service-group .label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.label.included::before {
  content: 'Inclus :';
  color: white;
  background-color: var(--main-color);
  border-radius: var(--radius);
  padding: 2px 8px;
  display: inline-block;
  font-size: 0.85rem;
}

.label.option::before {
  content: 'En option :';
  color: #4b5563;
  background-color: #e5e7eb;
  border-radius: var(--radius);
  padding: 2px 8px;
  display: inline-block;
  font-size: 0.85rem;
}
.equipment {flex:2;}


.grid-item{
  padding: 0 16px;
  margin: 0 auto;
  flex: calc(50% - 5em);
  align-self: baseline;
}
.grid-item h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.grid-item ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: #333;
}

.grid-item.pmr-option h5 {
  color: var(--main-color);
  font-weight: bold;
}

.pmr-link {
  color: #059669;
  font-weight: 500;
  text-decoration: none;
}

.pmr-link:hover {
  text-decoration: underline;
}

.equipment-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4rem;
}

.info{font-size: 12px; line-height: 1; font-style: italic; color:grey; text-align: left;}

/**** ROOM COL ****/

.room-grid{
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 52px;
  max-width: 1260px;
}

.room-sidebar{
  min-width: 400px;
  display: flex;
  padding: 42px 80px;
  background: white;
  box-shadow:var(--shadow);
  border-radius: var(--radius);
}

.room-infos{
  display: block;
  width: 100%;
  max-width: 1620px;
  color: black;
  border-radius: var(--radius);

}


/**** ONGLETS *****/

.tab-content {
  padding: 4em 4em;
  padding-right: 20em;
  background: white;
  align-items: center;

}

.tab-content .tab{
  max-width: 800px;
  margin: 0 auto 0 0;
}

.room-tabs {
  position: relative;
  list-style: none;
  margin: 0;
  }
  .room-tabs ul {
    list-style: none;
    display: inline-flex;
    padding: 0;
    justify-content: flex-start;
    position: relative;
    border-top-left-radius: var(--radius);
    border-top-right-radius:var(--radius);
    background: var(--secondary-color);
    overflow: hidden;

  }

  .room-tabs ul::after{
    content: '';
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 3px;
    width: auto;
    z-index: 0;
    opacity: 0.2;
  }
  .room-tabs li {
    position: relative;
    cursor: pointer;
    padding: 14px 60px;
    position: relative;
    color: var(--text);
    opacity: 0.8;
    transition: 0.5s;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
  }
  .room-tabs li:hover {
    opacity: 1;
  }
  .room-tabs li.active {
    color: var(--secondary-color);
    background: #fff;
    opacity: 1;
  }


.underline-slider {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 3px;
  z-index: 2;
}



  /* Contenus */


  .tab-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 90px;

  }
 .tab-grid * {
  color: black!important;
  }
  .tab-grid p{
    font-size: 14px;
    font-weight: 500;
    }

  .tab-content {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius:var(--radius);
    padding-top: 3em;
  }

  .tab-content > div {
    display: none;
  }
  .tab-content > div.active {
    display: block;
    padding: 16px 0;
  }
/* Anim */

.active {
    transition: all 0.3s ease;
}

.active-contenu {
    animation: fade 0.5s forwards;
}
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* FAQ */
.faq {
  margin: 2rem 0;
}
.faq h2 {
  font-weight: var(--fw-bold);
  margin-bottom: var(--gap);
}
.faq details {
  border-top: 1px solid #ddd;
  padding: var(--gap) 0;
}
.faq summary {
  cursor: pointer;
  font-weight: var(--fw-bold);
  position: relative;
  padding-right: 1.5rem;
  list-style: none;
}
.faq summary::marker { content: none; }
.faq details[open] summary { color: var(--primary); }
.faq details p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}


/********** RESERVIT *******************/

.lodge-body .lodge--reservit {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: 120px;
  background: var(--secondary-color);
  border-radius: var(--radius);
  overflow: hidden;
}
.lodge-body .lodge--reservit .sidebar-block {
  display: block;
  box-shadow: var(--shadow);
  width:100%;
  min-width: 100%;
  max-width: 100%;

}

.lodge-body .lodge--reservit .sidebar-block .resa-content {
    padding: 4em;
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  color: white;
  min-width: 100%;
}

.lodge-body .lodge--reservit .res-title {
  text-align: center;
  font-family: var(--font-title);
  color: var(--ff);
  font-size: 34px;
  line-height: 1.2em;
  text-align: left;
  padding: 0;
  margin: 0;
  font-weight: bold;
  margin-bottom: 34px;
}

.lodge-body .lodge--reservit #res-form {
  display: inline-flex;
  flex-direction: column;
  gap: 2rem;
}

.lodge-body .lodge--reservit .form-date {
  display: inline-flex;
  gap: 1rem;
}

.lodge-body .lodge--reservit .form-person {
    display: inline-flex;
    flex-direction: row;
    gap: 1rem;
}

.lodge-body .lodge--reservit #children-ages-container {
  display: inline-flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;

}

.children-age {
  padding: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  width: calc(33% - 0.5rem);
  box-sizing: border-box;
}

/* Si c'est le seul enfant, il prend toute la largeur */
#children-ages-container .children-age:only-child {
  width: 100%;
}


button#res-search {
  background: #166349;
  border: none;
  color: white;
  cursor: pointer;
}

button#res-search:hover {
  background-color: #1b5e20;
}

.lodge-body .sidebar-block.sidebar--vip{
  position: relative;
  overflow: hidden;
}

.lodge-body .sidebar-block.sidebar--vip h4{color: white!important;}


.lodge-body .sidebar-block.sidebar--vip::after {
  content: '';
  background-image: url('img/lodge-resa.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 0;
  transition: 0.5s;
}
.lodge-body .sidebar-block.sidebar--vip:hover::after {
  transform: scale(1.5);
}

.lodge-body .sidebar-block.sidebar--vip:hover h4 span{transform: translateX(30px);}

.lodge-body .sidebar-block.sidebar--vip::before{
  content: "";
  content: "";
  background: linear-gradient(0deg, rgb(20 40 33 / 71%) 0, rgb(20 40 33 / 24%) -14%, rgb(20 40 33) 93%);
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0px;
  z-index: 2;
  height: 100%;
}
.sidebar--vip a{z-index: 5; position: relative; padding: 4em; display: block;}
.sidebar--vip h4 span{font-size: 32px; margin-left: 20px; transition: 0.5s; display: inline-block;}
.sidebar--vip span{
  font-size: 24px;
  font-weight: 500;
  color: white;
}

.lodge-body .lodge--reservit.resa-sidebar--fixe {display: none;}

/* Responsive */
@media (max-width: 768px) {
  .room-info { flex-direction: column; }
  .gallery { flex-direction: column; }
}
@media (max-width: 600px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .equipment-item.special {
    grid-column: auto;
  }
}


/************* GALLERY ****************/
.lodge-gallery {
  position: relative;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 10px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

/* Grande image à gauche */
.gallery-grid a:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* Petites images à droite */
.gallery-grid a:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.gallery-grid a:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.gallery-grid a:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

/* Masquer les autres */
.gallery-grid a.hidden {
  display: none;
}

/* Bouton */
.gallery-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #fff;
  color: #333;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}

.gallery-button:hover {
  background: #f1f1f1;
}


.glightbox-counter {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glightbox-counter.visible {
  opacity: 1;
  z-index: 999999999;
}



/*************** OPTIONS / INCLUS ***********************/

 .lodge-infos-content {
  max-width: 1260px;
  display: flex;
  margin-bottom: 30px;
  margin-top: 44px;
  flex-wrap: wrap;
  row-gap: 0;
  column-gap: 20px;
  font-family: var(--font-txt);
  font-size: 14px;
  font-weight: 400;
  flex-direction: row;
}
.lodge-infos-wrapper {
  display: flex;
  flex-direction: column;
  row-gap:20px;
}

.lodge-infos-checkout,.lodge-infos-wrapper  {flex:1;}

.lodge-infos {
  flex: 1;
}
.lodge-infos-col {
  background: white;
  padding: 2em;
  border-radius: 10px;
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 36px;
}

.lodge-infos-col .lodge-title {
  display: flex;
  align-items: center;
}

.lodge-title {
  text-align: left;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--main-color);
}

.lodge-title i {
  font-size: 16px;
  margin-right: 16px;
  color: var(--main-color);
}

.lodge-list {
  padding: 0 48px;
  margin: 0;
}

.lodge-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: black;
  list-style: disc;
  font-size: 14px;
}

.lodge-infos-left {
  border-right: 1px solid #ddd;
  padding-right: 20px;
}

.lodge-infos-right {
  padding-left: 20px;
}



/**************** HORAIRES *********************/


.lodge-infos-checkout {
  background: #fff;
  border-radius: 10px;
  padding: 25px 30px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  width: 100%;
}


/* Timeline */

.lodge-infos-checkout {
  background: #ffffff;
  border: 1px solid var(--main-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}


/* Timeline horizontale */

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  margin-bottom: 4em;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
  height: 0px;
  z-index: 1;
  border: 1px dashed var(--main-color);
  width: 75%;
}

.timeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  background: #fff;
  color: var(--main-color);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  margin: 0 auto 10px;
  position: relative;
  z-index: 3;
}

.timeline-content h5 {
  font-size: 16px;
  color: var(--main-color);
  margin: 5px 0;
  font-weight: 600;
}

.timeline-content p {
  font-size: 14px;
  color: black;
  margin: 0;
}



@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    margin-bottom: 30px;
  }
}

/*** Timeline verticale ****/

.timeline--vertical {
  position: relative;
  padding-left: 60px;
  flex-direction: column;
  position: relative;
  padding-left: 60px;
  flex-direction: column;
  margin-bottom: 3em;
  margin-top: 7px;
}

.timeline--vertical::before{
    content: '';
    height: 87%;
    display: block;
    position: absolute;
    left: 27px;
    border: 1px dashed grey;
    width: 0;
}

.timeline--vertical .timeline-step {
  position: relative;
  margin-bottom: 30px;
  display: flex;
}

.timeline--vertical .timeline-step:last-child {
  margin-bottom: 0;
}

/* Icônes */
.timeline--vertical .timeline-icon {
  position: absolute;
  left: -52px;
  background: #fff;
  color: #0f5132;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Contenu */
.timeline--vertical .timeline-content {
  line-height: 1.5;
  max-width: 600px;
  text-align: left;
}

.timeline--vertical .timeline-content h5 {
  margin: 0 0 5px;
  font-weight: 600;
  color: var(--main-color);
  font-size: 16px;
  padding: 0;
}

.timeline--vertical .timeline-content p {
  margin: 0;
  color: black;
  line-height: 1.5;
}

.timeline--vertical .timeline-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 3px;
}

/* Petites améliorations visuelles */
.timeline--vertical .timeline-step i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .timeline--vertical {
    padding-left: 30px;
  }
  .timeline--vertical .timeline-icon {
    width: 35px;
    height: 35px;
    left: -20px;
    font-size: 16px;
  }
  .timeline--vertical .timeline-content {
    margin-left: 30px;
  }
}

/*********** Barre RESERVATION ***/

.lodges-template-default .lodge--reservit.resa-sidebar--fixe {display: none;}

/********************* RESPONSIVE ****************************/


/******* BARRE RESERVATION ******/


@media (max-width: 1600px) {
      .tab-content {
          padding-right: 28em;
      }
}

@media (max-width: 1440px) {
      .tab-content {
          padding-right: 42em;
      }
      .lodge--reservit { top: 54px;}


        .room-description {
          max-width: 700px;
        }
}



@media (max-width: 1200px) and (min-width: 1000px){
  .tab-content .tab{
    max-width: 638px;
    margin: 0 auto 0 0;
  }
  .room-tabs li {
  padding: 14px 15px;
  font-size: 14px;
    }

}

@media (max-width: 1200px) {

  .tab-content {
      padding: 26px 50px;
    }

    .lodge--reservit {
      top: -58px;
    }


    .sidebar-block {width: auto;}
    .res-title {display: none;}

    .sidebar-block .resa-content button span.display{display: none;}

    #res-form .form-date, #res-form .form-person{
      flex-direction: column;
    }



    .room-info {
        margin-top: 118px;
    }

    .tab-grid {
    display: flex;
    row-gap: 4em;
    column-gap: 10em;
  }
    /*.sidebar-block.sidebar--vip {display: none;}*/
}


@media (max-width: 1000px){

.tab-grid {
  row-gap: 4em;
  column-gap: 2em;
   }

  .grid-item {
    flex: calc(50% - 5em);
  }

  .room-description {
    max-width: 472px;
  }
.lodge-body .lodge--reservit .sidebar-block {
   display: none;
 }

 .lodges-template-default .lodge--reservit.resa-sidebar--fixe {display: block;}
}

@media(max-width:800px){
  .room-tabs li{font-size: 12px; padding: 14px 22px;}
}

@media(max-width:768px){

  .tab-grid {
    flex-direction: column;
}

  .lodge-infos-content {

    flex-direction: column;
    gap: 20px;
  }
}

@media(max-width:480px){
  .room-tabs{
    flex-direction: column;
    width: 100%;
    margin-bottom: 11px;
  }
  
  .tab-content {  padding: 20px 26px;}
  .lodges-template-default .lodge--reservit.resa-sidebar--fixe {display: none;}
  .resa-sidebar--button {display: block;}
  .lodges-template-default .lodge--reservit {top: auto;}
}
