/* ============================================================================
   Villa Calma Djerba — overrides & compléments par-dessus le CSS d'origine.
   Reconstruit le hero (ex-Revolution Slider), la galerie/lightbox, le
   formulaire de réservation, et ajuste le responsive. Couleurs fidèles :
   navy #344a71, dark #1f232b, beige #faf0e6, WhatsApp #25d366.
   ============================================================================ */

:root {
  --vc-navy: #344a71;
  --vc-navy-light: #3a598b;
  --vc-dark: #1f232b;
  --vc-beige: #faf0e6;
  --vc-text: #232323;
}

html { scroll-behavior: smooth; }
body { background-color: #f7f7f7; }

/* Les @font-face du thème (icônes Hillter) sont absents : on neutralise pour
   éviter des requêtes 404. Les 2 icônes utilisées (lieu/tél) passent en FontAwesome. */
.hillter-icon-location:before { font-family: "FontAwesome"; content: "\f041"; }
.hillter-icon-phone:before    { font-family: "FontAwesome"; content: "\f095"; }

/* ── Layout général ─────────────────────────────────────────────────────── */
#page-wrap { overflow: visible; }
img { max-width: 100%; height: auto; }
.section-padding { padding: 80px 0; }

/* ── HERO (remplace Revolution Slider) ──────────────────────────────────── */
.section-slider { position: relative; }
.banner-slider { position: relative; overflow: hidden; }
.banner-slider .slider-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
  background-position: 50% 50%;
  background-size: cover;
}
.banner-slider .slider-item.is-active { opacity: 1; visibility: visible; z-index: 1; }
.banner-slider { height: 100vh; min-height: 560px; max-height: 860px; }
.banner-slider .slider-item:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 35, 43, 0.34);
}
.banner-slider .slider-text { z-index: 2; text-align: center; padding: 0 20px; }
/* l'overlay impose un texte blanc sur tous les slides (l'original mettait le slide 2 en sombre) */
.banner-slider .slider-caption,
.banner-slider .slider-caption small,
.banner-slider .slider-caption-sub { color: #fff !important; }
.banner-slider .slider-text .slider-caption-sub { margin-bottom: 18px; }
.banner-slider .slider-text .slider-caption { padding: 7px 0; }

/* animation d'entrée des légendes */
.banner-slider .slider-item.is-active .slider-caption-sub,
.banner-slider .slider-item.is-active .slider-caption,
.banner-slider .slider-item.is-active .awe-btn {
  animation: vcFadeUp 0.9s ease both;
}
.banner-slider .slider-item.is-active .slider-caption { animation-delay: 0.2s; }
.banner-slider .slider-item.is-active .awe-btn { animation-delay: 0.45s; }
@keyframes vcFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* contrôles du slider */
.vc-slider-dots {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  z-index: 5; text-align: center; font-size: 0;
}
.vc-slider-dots button {
  width: 12px; height: 12px; margin: 0 6px; padding: 0;
  border-radius: 50%; border: 2px solid #fff; background: transparent;
  cursor: pointer; transition: all 0.3s ease;
}
.vc-slider-dots button.is-active { background: #fff; }
.vc-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 46px; height: 46px; line-height: 44px;
  text-align: center; color: #fff; background: rgba(52, 74, 113, 0.55);
  border: none; cursor: pointer; font-size: 20px; transition: all 0.3s ease;
}
.vc-slider-arrow:hover { background: var(--vc-navy); }
.vc-slider-arrow.prev { left: 24px; }
.vc-slider-arrow.next { right: 24px; }

/* ── Header : compléments ───────────────────────────────────────────────── */
.header_logo a { display: inline-block; }
.header_content .menu > li > a { cursor: pointer; }
.menu-bars { background-color: rgba(255,255,255,0.08); }
/* fermeture off-canvas (overlay) */
.vc-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 998; opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.vc-menu-overlay.is-active { opacity: 1; visibility: visible; }
.header_top .header_right .dropdown ul.is-open { opacity: 1; visibility: visible; }

/* ── Sub-banner (bannière interne) ──────────────────────────────────────── */
.section-sub-banner {
  position: relative;
  background-position: 50% 50%;
  background-size: cover;
  background-attachment: fixed;
}
.sub-banner { position: relative; z-index: 1; padding: 200px 0 90px; }
.sub-banner .text h2 {
  color: #fff; font-family: "Montserrat"; font-weight: bold;
  text-transform: uppercase; font-size: 46px; margin: 0 0 10px;
}
.sub-banner .text p { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; margin: 0; }

/* ── Titres de section avec trait ───────────────────────────────────────── */
.heading.vc-center { text-align: center; }
.vc-heading-wrap { text-align: center; margin-bottom: 50px; }
.vc-heading-wrap .heading:after {
  content: ""; display: block; width: 70px; height: 3px;
  background: var(--vc-navy); margin: 18px auto 0;
}
.vc-heading-wrap.white .heading { color: #fff; }
.vc-heading-wrap p.vc-sub { color: #888; margin-top: 14px; font-size: 15px; }

/* ── Cartes chambres (accueil) ──────────────────────────────────────────── */
.section-accommo_1 { padding: 90px 0; }
.accomd-modations-room_1 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
  margin-bottom: 60px;
}
.accomd-modations-room_1 .img { flex: 1 1 340px; overflow: hidden; }
.accomd-modations-room_1 .img img { width: 100%; transition: transform 0.6s ease; display: block; }
.accomd-modations-room_1:hover .img img { transform: scale(1.05); }
.accomd-modations-room_1 .text { flex: 1 1 340px; }
.accomd-modations-room_1:nth-child(even) { flex-direction: row-reverse; }
.accomd-modations-room_1 .text h2 { font-family: "Montserrat"; font-size: 24px; text-transform: uppercase; margin: 0 0 16px; }
.accomd-modations-room_1 .text h2 a { color: var(--vc-text); }
.accomd-modations-room_1 .text h2 a:hover { color: var(--vc-navy); }
.accomd-modations-room_1 .text .desc { color: #666; margin-bottom: 22px; }

/* ── Liste des chambres (page chambres) ─────────────────────────────────── */
.section-room { padding: 90px 0; }
.room_item-6 {
  position: relative; min-height: 420px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; margin-bottom: 30px;
  color: #fff; overflow: hidden;
}
.room_item-6:before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,35,43,0.85) 0%, rgba(31,35,43,0.15) 60%, rgba(31,35,43,0.05) 100%); transition: all .4s ease; }
.room_item-6:hover:before { background: linear-gradient(to top, rgba(52,74,113,0.9) 0%, rgba(52,74,113,0.25) 70%, rgba(52,74,113,0.1) 100%); }
.room_item-6 .text { position: relative; z-index: 2; padding: 34px; width: 100%; }
.room_item-6 .text h2 { font-family: "Montserrat"; text-transform: uppercase; font-size: 26px; margin: 0 0 6px; }
.room_item-6 .text h2 a { color: #fff; }
.room_item-6 .text .price { color: var(--vc-beige); display: block; margin-bottom: 14px; font-size: 15px; }
.room_item-6 .text p { color: rgba(255,255,255,0.88); margin-bottom: 20px; }

/* ── Détail chambre ─────────────────────────────────────────────────────── */
.room-detail { padding: 80px 0; }
.room-detail .room-gallery img { width: 100%; margin-bottom: 24px; display: block; }
.room-detail .room-features { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.room-detail .room-features li { display: flex; align-items: center; gap: 10px; color: #444; font-size: 14px; width: calc(50% - 14px); }
.room-detail .room-features li i { color: var(--vc-navy); font-size: 18px; width: 22px; text-align: center; }
.room-detail h1 { font-family: "Montserrat"; text-transform: uppercase; font-size: 34px; margin: 0 0 6px; }
.room-detail .subtitle { color: var(--vc-navy); font-family: "Montserrat"; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; margin-bottom: 22px; display: block; }
.room-detail p { color: #555; }
.other-suites { background: #fff; padding: 70px 0; border-top: 1px solid #eee; }
.other-suites .suite-card { position: relative; overflow: hidden; margin-bottom: 24px; }
.other-suites .suite-card img { width: 100%; display: block; transition: transform .6s ease; }
.other-suites .suite-card:hover img { transform: scale(1.06); }
.other-suites .suite-card .cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(31,35,43,0.45); color: #fff; text-align: center; transition: background .4s ease; }
.other-suites .suite-card:hover .cap { background: rgba(52,74,113,0.6); }
.other-suites .suite-card .cap h3 { font-family: "Montserrat"; text-transform: uppercase; font-size: 20px; }

/* ── Sections accueil (about / our best / guestbook) ────────────────────── */
.section-home-about, .section-our-best, .section-guestbook-event { padding: 80px 0; }
.home-about .img img, .our-best .img img { width: 100%; display: block; }
.home-about .text, .our-best .text { padding: 10px 0; }
.home-about .text .heading, .our-best .text .heading { margin-bottom: 18px; }
.home-about .text span { color: var(--vc-navy); font-family: "Montserrat"; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; display: block; margin-bottom: 16px; }
.home-about .text p, .our-best .text p { color: #666; margin-bottom: 22px; }
.our-best .text ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.our-best .text ul li { padding: 6px 0 6px 26px; position: relative; color: #555; break-inside: avoid; }
.our-best .text ul li:before { content: "\f00c"; font-family: "FontAwesome"; position: absolute; left: 0; color: var(--vc-navy); font-size: 13px; }
.guestbook-item_1 { background: #fff; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 24px; height: 100%; }
.guestbook-item_1 h3 { font-family: "Montserrat"; font-size: 17px; color: var(--vc-navy); margin: 0 0 14px; line-height: 1.4; }
.guestbook-item_1 .text p { color: #666; }
.event-item img { width: 100%; display: block; margin-bottom: 24px; }

/* ── Services ───────────────────────────────────────────────────────────── */
.section-services { padding: 80px 0; }
/* cartes à hauteur égale par ligne (sinon le flottement Bootstrap crée des trous) */
.section-services .row { display: flex; flex-wrap: wrap; }
.section-services .row > [class*="col-"] { display: flex; }
.section-services .service-card { width: 100%; }
.service-group-title { font-family: "Montserrat"; text-transform: uppercase; font-size: 22px; color: var(--vc-navy); text-align: center; margin: 10px 0 40px; letter-spacing: 1px; }
.service-card { background: #fff; padding: 34px 28px; height: 100%; margin-bottom: 30px; transition: all 0.35s ease; border-bottom: 3px solid transparent; }
.service-card:hover { box-shadow: 0 16px 40px rgba(52,74,113,0.12); transform: translateY(-4px); border-bottom-color: var(--vc-navy); }
.service-card .icon { font-size: 40px; color: var(--vc-navy); margin-bottom: 18px; }
.service-card h3 { font-family: "Montserrat"; text-transform: uppercase; font-size: 17px; margin: 0 0 14px; }
.service-card p { color: #666; font-size: 14px; margin: 0; }

/* ── Galerie + lightbox ─────────────────────────────────────────────────── */
.section-gallery { padding: 80px 0; }
.gallery-filter { text-align: center; margin-bottom: 40px; font-size: 0; }
.gallery-filter button {
  font-family: "Montserrat"; text-transform: uppercase; font-size: 12px;
  letter-spacing: 1px; background: none; border: none; cursor: pointer;
  color: #888; padding: 8px 18px; margin: 4px; transition: all 0.3s ease;
}
.gallery-filter button.is-active, .gallery-filter button:hover { color: #fff; background: var(--vc-navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .g-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-item:after { content: "\f00e"; font-family: "FontAwesome"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: rgba(52,74,113,0.0); opacity: 0; transition: all 0.4s ease; }
.gallery-grid .g-item:hover:after { background: rgba(52,74,113,0.55); opacity: 1; }

.vc-lightbox { position: fixed; inset: 0; background: rgba(15,17,22,0.94); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.vc-lightbox.is-open { opacity: 1; visibility: visible; }
.vc-lightbox img { max-width: 90vw; max-height: 86vh; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.vc-lightbox .lb-close { position: absolute; top: 22px; right: 30px; color: #fff; font-size: 34px; background: none; border: none; cursor: pointer; line-height: 1; }
.vc-lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 40px; background: none; border: none; cursor: pointer; padding: 0 22px; }
.vc-lightbox .lb-nav.prev { left: 6px; }
.vc-lightbox .lb-nav.next { right: 6px; }
.vc-lightbox .lb-counter { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-size: 13px; letter-spacing: 1px; }

/* ── Contact + formulaire de réservation ────────────────────────────────── */
.section-contact { padding: 80px 0; }
.contact-info-item { display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start; }
.contact-info-item .ci-icon { width: 50px; height: 50px; min-width: 50px; border-radius: 50%; background: var(--vc-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-info-item h4 { font-family: "Montserrat"; text-transform: uppercase; font-size: 14px; margin: 4px 0 6px; }
.contact-info-item p, .contact-info-item a { color: #666; margin: 0; }
.contact-info-item a:hover { color: var(--vc-navy); }

.vc-form .form-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.vc-form .form-row > div { flex: 1 1 220px; }
.vc-form label { display: block; font-family: "Montserrat"; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #555; margin-bottom: 7px; }
.vc-form input, .vc-form textarea, .vc-form select {
  width: 100%; border: 1px solid #d4d4d4; background: #fff; padding: 0 14px;
  height: 48px; line-height: 48px; color: #444; font-family: "Montserrat"; font-size: 13px;
}
.vc-form textarea { height: 130px; line-height: 1.6; padding: 12px 14px; resize: vertical; }
.vc-form .btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.vc-btn-submit { background: var(--vc-navy); color: #fff; border: 2px solid var(--vc-navy); font-family: "Montserrat"; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; padding: 13px 34px; cursor: pointer; transition: all 0.3s ease; }
.vc-btn-submit:hover { background: #fff; color: var(--vc-navy); }
.vc-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.vc-btn-whatsapp { background: #25d366; color: #fff; border: 2px solid #25d366; font-family: "Montserrat"; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; padding: 13px 28px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; }
.vc-btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }
.vc-form-msg { padding: 14px 18px; margin-top: 18px; font-size: 14px; }
.vc-form-msg.ok { background: #e8f6ec; color: #1da851; border: 1px solid #b6e3c3; }
.vc-form-msg.err { background: #fdecea; color: #d43f3a; border: 1px solid #f5c6c2; }

.map-wrap { width: 100%; height: 420px; position: relative; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  background: var(--vc-navy); color: #fff; font-family: "Montserrat";
  text-transform: uppercase; font-size: 12px; letter-spacing: 1px;
  padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25); transition: all 0.3s ease;
}
.map-link:hover { background: #fff; color: var(--vc-navy); }

/* ── Visite virtuelle ───────────────────────────────────────────────────── */
.section-visite { padding: 80px 0; text-align: center; }
.visite-card { background: #fff; padding: 60px 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); max-width: 760px; margin: 0 auto; }
.visite-card .icon { font-size: 56px; color: var(--vc-navy); margin-bottom: 24px; }

/* ── Awe-btn fidèle (navy) ──────────────────────────────────────────────── */
.awe-btn.awe-btn-default, .awe-btn.awe-btn-13 {
  border: 2px solid var(--vc-navy); background-color: var(--vc-navy); color: #fff;
  padding: 11px 26px; font-size: 12px; letter-spacing: 1px;
}
.awe-btn.awe-btn-default:hover, .awe-btn.awe-btn-13:hover { background-color: #fff; color: var(--vc-navy); }
.awe-btn-slider { background-color: var(--vc-navy); color: #fff; border: 2px solid var(--vc-navy); }
.awe-btn-slider:hover { background-color: #fff; color: var(--vc-navy); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .slider-caption { font-size: 42px !important; }
  .slider-caption.slider-caption-2, .slider-caption.slider-caption-3 { font-size: 48px !important; }
  .slider-caption-sub.slider-caption-sub-1 { letter-spacing: 10px; font-size: 18px; }
  .sub-banner { padding: 170px 0 70px; }
  .sub-banner .text h2 { font-size: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .accomd-modations-room_1, .accomd-modations-room_1:nth-child(even) { flex-direction: column; }
}
@media (max-width: 575px) {
  .slider-caption { font-size: 30px !important; }
  .slider-caption.slider-caption-2, .slider-caption.slider-caption-3 { font-size: 34px !important; }
  .slider-caption-sub { font-size: 15px !important; letter-spacing: 4px !important; }
  .banner-slider { height: 86vh; }
  .gallery-grid { grid-template-columns: 1fr; }
  .room-detail .room-features li { width: 100%; }
  .our-best .text ul { columns: 1; }
  .vc-slider-arrow { display: none; }
  .sub-banner .text h2 { font-size: 27px; }
}
