/* Djerba Resort — guide des services. Palette du site officiel : bleu #0092df / marine #104378. */
:root{
  --navy:#0b3a63; --navy-2:#104378; --blue:#0092df; --blue-d:#0077b6; --sky:#e8f5fd; --sand:#f3ead9; --gold:#d9b46a;
  --ink:#13222f; --muted:#546879; --line:#d8e5ee; --bg:#f3f8fb; --white:#fff;
  --radius:18px; --shadow:0 8px 26px rgba(11,58,99,.10); --shadow-lg:0 16px 40px rgba(11,58,99,.18); --maxw:1060px;
  --serif:Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;min-width:320px}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue-d)}
h1,h2,h3{font-family:var(--serif);line-height:1.2;margin:0}
.ic{flex:none;vertical-align:-.2em}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}

/* ----------------------------------------------------------------- barre supérieure */
.topbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;padding:.35rem .8rem;
  background:rgba(11,58,99,.97);backdrop-filter:blur(8px);color:#fff;border-bottom:3px solid var(--blue)}
.topbar .brand img{height:44px;width:auto;object-fit:contain}
.topbar-actions{display:flex;align-items:center;gap:.4rem;justify-content:flex-end}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;text-decoration:none;background:rgba(255,255,255,.1)}
.icon-btn:hover{background:rgba(255,255,255,.22)}
.weather-chip{display:inline-flex;align-items:center;gap:.3rem;color:#fff;text-decoration:none;background:rgba(255,255,255,.12);border-radius:99px;padding:.25rem .65rem;font-size:.95rem}
.weather-chip:hover{background:rgba(255,255,255,.24)}

/* ------------------------------------------------------------------------- bandeau */
.hero{position:relative;min-height:clamp(210px,34vw,340px);display:flex;align-items:flex-end;overflow:hidden;background:var(--navy)}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,58,99,.12) 0%,rgba(11,58,99,.35) 45%,rgba(11,58,99,.88) 100%)}
.hero-inner{position:relative;z-index:1;width:100%;max-width:var(--maxw);margin:0 auto;padding:1.2rem 1rem 3.2rem;color:#fff;display:flex;align-items:center;gap:.8rem}
.hero h1{font-size:clamp(1.7rem,4.6vw,2.8rem);font-weight:700;text-shadow:0 2px 14px rgba(0,0,0,.4)}
.back{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.4);color:#fff;text-decoration:none;flex:none;backdrop-filter:blur(4px)}
.back:hover{background:rgba(255,255,255,.32)}
html[dir=rtl] .back .ic,html[dir=rtl] .tile-label .ic,html[dir=rtl] .btn .ic[data-flip]{transform:scaleX(-1)}
.hero-home{min-height:clamp(300px,52vw,520px)}
.hero-inner-home{flex-direction:column;align-items:flex-start;justify-content:flex-end;padding-bottom:3.6rem;gap:.2rem}
.hero-home h1{font-size:clamp(2rem,6vw,3.6rem)}
.eyebrow{margin:0;font-size:.85rem;letter-spacing:.18em;text-transform:uppercase;color:#cfe9f8}
.tagline{margin:.2rem 0 0;color:#e8f3fa;font-size:1.05rem}

.intro{position:relative;z-index:2;max-width:var(--maxw);margin:-2rem auto 0;padding:0 1rem}
.intro p{margin:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:1.1rem 1.3rem;font-size:1.05rem;color:var(--ink);border-inline-start:5px solid var(--blue)}

/* ------------------------------------------------------------------------ contenu */
.content{max-width:var(--maxw);margin:1.6rem auto 2rem;padding:0 1rem;display:flex;flex-direction:column;gap:1.4rem}
.content.narrow{max-width:760px}
.block-title{font-size:1.5rem;color:var(--navy);margin:.4rem 0 .9rem}
.block-title::after{content:"";display:block;width:54px;height:3px;background:linear-gradient(90deg,var(--blue),var(--gold));border-radius:3px;margin-top:.5rem}
.center{text-align:center}.center .block-title::after{margin-inline:auto}
.panel{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1.4rem}
.note{color:var(--muted);font-size:.95rem;margin:.8rem 0 0}

.split{display:grid;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.split .media,.split .carousel{min-width:0}
.split .media img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.split .body{padding:1.4rem}
.split h2{font-size:1.45rem;color:var(--navy);margin-bottom:.5rem}
.split p{margin:.3rem 0;color:var(--muted)}
@media (min-width:780px){
  .split{grid-template-columns:1.05fr 1fr;align-items:stretch}
  .split.flip .media,.split.flip .carousel{order:2}
  .split .body{padding:2rem;display:flex;flex-direction:column;justify-content:center}
  .split .media img{aspect-ratio:auto;min-height:300px}
}
.carousel{display:flex;gap:2px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;background:var(--navy)}
.carousel .slide{flex:0 0 100%;scroll-snap-align:start}
.carousel img{width:100%;aspect-ratio:4/3;object-fit:cover}
@media (min-width:780px){.carousel img{height:100%;min-height:300px;aspect-ratio:auto}}
.badge-row{margin:.6rem 0 0}
.badge{display:inline-block;background:var(--sky);color:var(--navy-2);font-weight:700;border-radius:99px;padding:.15rem .8rem;font-size:.9rem}

.checks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.6rem 1.2rem}
.checks li{display:flex;gap:.6rem;align-items:flex-start}
.checks .ic{color:var(--blue);margin-top:.2rem;background:var(--sky);border-radius:50%;padding:2px;width:22px;height:22px}

.why-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}
.why{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1.2rem}
.why img{width:56px;height:56px;margin-bottom:.4rem}
.why h3{font-size:1.1rem;color:var(--navy);margin-bottom:.3rem}
.why p{margin:0;color:var(--muted);font-size:.96rem}

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1rem}
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.card-media img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card-body{padding:1.1rem 1.2rem 1.3rem}
.card h3{font-size:1.15rem;color:var(--navy);margin-bottom:.35rem}
.card p{margin:0;color:var(--muted);font-size:.97rem}
.card-text{border-top:4px solid var(--blue)}

.faq{display:flex;flex-direction:column;gap:.6rem}
.faq-item{background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.faq-item summary{cursor:pointer;padding:1rem 1.2rem;font-weight:600;color:var(--navy);list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--blue);flex:none}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin:0;padding:0 1.2rem 1.1rem;color:var(--muted)}

.btn{display:inline-flex;align-items:center;gap:.5rem;font:inherit;font-weight:600;text-decoration:none;color:var(--navy-2);background:#fff;border:1.5px solid var(--line);border-radius:99px;padding:.65rem 1.2rem;cursor:pointer;margin:.2rem}
.btn:hover{border-color:var(--blue);background:var(--sky)}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-d);border-color:var(--blue-d)}

.contact-list{display:flex;flex-direction:column;padding:.4rem}
.contact-row{display:flex;gap:1rem;align-items:center;padding:1rem;text-decoration:none;color:var(--ink);border-radius:12px}
.contact-row+.contact-row{border-top:1px solid var(--line)}
.contact-row:hover{background:var(--sky)}
.contact-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--sky);color:var(--blue-d);flex:none}
.contact-row small{display:block;color:var(--muted)}.contact-row b{font-size:1.1rem}.contact-row em{display:block;font-style:normal;color:var(--blue-d);font-size:.92rem}

/* --------------------------------------------------------------------- accueil */
.tiles{max-width:var(--maxw);margin:-2rem auto 2rem;padding:0 1rem;display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;position:relative;z-index:2}
.tile{position:relative;display:block;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;box-shadow:var(--shadow-lg);background:var(--navy);text-decoration:none;color:#fff;isolation:isolate}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,58,99,0) 35%,rgba(11,58,99,.86) 100%);z-index:1}
.tile-label{position:absolute;z-index:2;inset-inline:0;bottom:0;padding:.8rem .9rem;display:flex;justify-content:space-between;align-items:center;gap:.4rem;font-family:var(--serif);font-size:1.05rem;font-weight:700}
.tile:hover img{transform:scale(1.06)}
.tile-contact{grid-column:1/-1;aspect-ratio:16/6}
@media (min-width:700px){.tiles{grid-template-columns:repeat(3,1fr);gap:1rem}.tile-contact{grid-column:auto;aspect-ratio:4/3}.tile-label{font-size:1.15rem}}
@media (min-width:1000px){.tiles{grid-template-columns:repeat(4,1fr)}}

/* ----------------------------------------------------------------- galerie */
.chips{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{font:inherit;font-size:.92rem;border:1.5px solid var(--line);background:#fff;border-radius:99px;padding:.35rem .9rem;cursor:pointer;color:var(--navy-2)}
.chip.is-active{background:var(--navy-2);border-color:var(--navy-2);color:#fff}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.5rem}
.g-item{display:block;border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:var(--navy)}
.g-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.g-item:hover img{transform:scale(1.07)}
.g-item[hidden]{display:none}
@media (min-width:700px){.gallery{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.7rem}}
.lightbox{position:fixed;inset:0;z-index:100;background:rgba(5,20,35,.94);display:flex;align-items:center;justify-content:center;padding:1rem}
.lightbox img{max-width:min(96vw,1100px);max-height:86vh;width:auto;height:auto;border-radius:10px}
.lb-btn{position:absolute;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;cursor:pointer}
.lb-btn:hover{background:rgba(255,255,255,.3)}
.lb-close{top:1rem;inset-inline-end:1rem}.lb-prev{inset-inline-start:.6rem;top:50%}.lb-next{inset-inline-end:.6rem;top:50%}
html[dir=rtl] .lb-prev .ic,html[dir=rtl] .lb-next .ic{transform:scaleX(-1)}

/* ------------------------------------------------------------------- météo */
.weather-now{text-align:center}
.weather-icon{font-size:4rem;line-height:1}.weather-temp{font-family:var(--serif);font-size:3.4rem;font-weight:700;color:var(--navy)}
.weather-desc{color:var(--muted);font-size:1.1rem}
.weather-facts{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap;margin:1rem 0 0}
.weather-facts div{text-align:center}.weather-facts dt{font-size:.85rem;color:var(--muted)}.weather-facts dd{margin:0;font-weight:700;font-size:1.1rem}
.forecast{list-style:none;margin:0;padding:0}
.forecast li{display:grid;grid-template-columns:1.4fr .6fr 1fr .8fr;gap:.5rem;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--line)}
.forecast li:last-child{border:0}.f-icon{font-size:1.5rem;text-align:center}.f-temps i{color:var(--muted);font-style:normal;margin-inline-start:.4rem}.f-rain{color:var(--blue-d);text-align:end;font-size:.92rem}

/* ------------------------------------------------------------------ pied de page */
.footer{background:linear-gradient(180deg,var(--navy),#082c4b);color:#dcebf6;margin-top:2rem}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:2rem 1rem;text-align:center}
.footer-logo{width:120px;margin:0 auto .4rem;opacity:.95}
.footer-slogan{margin:0 0 1rem;font-family:var(--serif);font-style:italic;color:#a8cde6}
.footer-links{display:flex;gap:1.4rem;flex-wrap:wrap;justify-content:center;margin:0}
.footer-links a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem}
.footer-links a:hover{text-decoration:underline}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.footer,.back{display:none}.hero{min-height:120px}}


/* ============================================================
   Écran de bienvenue (sélecteur de langue) — refonte 2026-11
   ============================================================ */
body.is-selector { background: #071f33; --flag-accent: #8fd3f7; }

.welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/images/heroes/language.jpg') center 45%/cover no-repeat;
  transform: scale(1.03);
}

.welcome-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(7, 31, 51, 0.35) 0%, rgba(7, 31, 51, 0.85) 65%),
    linear-gradient(180deg, rgba(7, 31, 51, 0.35) 0%, rgba(7, 31, 51, 0.88) 100%);
}

.welcome-panel {
  width: min(520px, 100%);
  background: rgba(9, 36, 58, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(143, 211, 247, 0.32);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #fff;
  animation: welcomeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.welcome-brand {
  text-align: center;
  padding: 26px 26px 20px;
  border-bottom: 1px solid rgba(143, 211, 247, 0.22);
  background: linear-gradient(180deg, rgba(0, 146, 223, 0.14) 0%, rgba(0, 146, 223, 0) 100%);
}

.welcome-logo {
  height: 54px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.welcome-kicker {
  margin: 14px 0 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(200, 234, 252, 0.9);
}

.welcome-slogan {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.welcome-name {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.welcome-stars {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #8fd3f7;
}

.welcome-body { padding: 22px 20px 24px; }

.welcome-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 4vw, 21px);
  font-weight: 400;
}

.welcome-lead {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wbtn {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wbtn--wide { grid-column: 1 / -1; justify-content: center; }

.wbtn:hover,
.wbtn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(143, 211, 247, 0.6);
  transform: translateY(-1px);
  color: #fff;
}

.wbtn .flag { flex: none; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }

.wname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wbtn.is-active {
  background: rgba(0, 146, 223, 0.22);
  border-color: rgba(143, 211, 247, 0.9);
  box-shadow: inset 0 0 0 1px rgba(143, 211, 247, 0.35);
}

.wbtn.is-active .wname::after {
  content: '✓';
  margin-inline-start: 8px;
  color: #8fd3f7;
  font-size: 13px;
}

@media (max-width: 379px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .wbtn--wide { grid-column: auto; justify-content: flex-start; }
}

@media (min-width: 520px) {
  .welcome-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wbtn--wide { grid-column: auto; justify-content: flex-start; }
}

.welcome-hint {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 900px) {
  .welcome { justify-content: flex-end; padding-right: clamp(40px, 7vw, 120px); }
  .welcome-scrim {
    background:
      linear-gradient(90deg, rgba(7, 31, 51, 0.10) 0%, rgba(7, 31, 51, 0.50) 55%, rgba(7, 31, 51, 0.88) 100%),
      linear-gradient(180deg, rgba(7, 31, 51, 0.30) 0%, rgba(7, 31, 51, 0.62) 100%);
  }
}

@media (prefers-reduced-motion: reduce) { .welcome-panel { animation: none; } }
