/* Dibsoft Hôtels — site public. Trois modèles : classique, savane, lagune.
   --accent vient de la couleur choisie par l'hôtel. */

:root {
  --fond: #faf7f2; --surface: #ffffff; --texte: #1f1d1a; --doux: #6b655c; --ligne: #e6dfd3;
  --accent: #0F5C4D; --accent-texte: #ffffff;
  --titre: 'Fraunces', Georgia, serif; --corps: 'Source Sans 3', system-ui, sans-serif;
  --rayon: 6px; --ombre: 0 1px 2px rgba(0,0,0,.05);
}
.theme-savane {
  --fond: #f6efe3; --surface: #fffaf2; --texte: #2b1d12; --doux: #7a634d; --ligne: #e3d3bd;
  --titre: 'DM Serif Display', Georgia, serif; --corps: 'Work Sans', system-ui, sans-serif; --rayon: 2px;
}
.theme-lagune {
  --fond: #f3f8fa; --surface: #ffffff; --texte: #0f2530; --doux: #557080; --ligne: #d8e6ec;
  --titre: 'Manrope', system-ui, sans-serif; --corps: 'Manrope', system-ui, sans-serif; --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.6 var(--corps); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
.theme-savane h1, .theme-savane h2, .theme-savane h3 { font-weight: 400; }
.theme-lagune h1, .theme-lagune h2 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: var(--rayon); border: 1.5px solid var(--accent); color: var(--accent); background: transparent;
  font: 600 1rem var(--corps); text-decoration: none; cursor: pointer; }
.btn-plein { background: var(--accent); color: var(--accent-texte); }
.btn:hover { filter: brightness(.94); }
.btn-wa { background: #1f9e55; border-color: #1f9e55; color: #fff; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.entete-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none;
  font: 700 1.15rem var(--titre); margin-right: auto; }
.marque img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--texte); text-decoration: none; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current] { border-color: var(--accent); }
.entete-cta { display: none; }
.menu-mobile summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary span { display: block; width: 22px; height: 2px; background: var(--texte); }
.menu-mobile nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--ligne);
  padding: 8px 16px 20px; display: grid; gap: 4px; }
.menu-mobile nav a:not(.btn) { color: var(--texte); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.menu-mobile nav .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .nav, .entete-cta { display: flex; }
  .menu-mobile { display: none; }
}

/* Héros */
.heros { position: relative; min-height: min(78vh, 620px); display: grid; align-items: end; color: #fff; background: #222; }
.heros img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.65)); }
.heros-in { position: relative; z-index: 1; padding: 48px 0 56px; }
.heros p { font-size: 1.15rem; max-width: 42ch; }
.heros .btn { border-color: #fff; color: #fff; }
.heros .btn-plein { background: var(--accent); border-color: var(--accent); }
.heros-sans-photo { background: var(--accent); }
.heros-sans-photo::after { background: none; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.theme-lagune .heros { margin: 16px; border-radius: 22px; overflow: hidden; }
.theme-savane .heros-in h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--ligne); }
.surtitre { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: .5em; font-weight: 600; }
.intro { display: grid; gap: 32px; }
@media (min-width: 860px) { .intro { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  border-left: 4px solid var(--accent); }
.mot { font-style: italic; font-size: 1.1rem; border-left: 3px solid var(--accent); padding-left: 18px; color: var(--doux); }

/* Cartes chambres */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--ombre); }
.carte-img { aspect-ratio: 4 / 3; background: var(--ligne); object-fit: cover; width: 100%; }
.carte-corps { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte-corps h3 { margin: 0; }
.carte-corps h3 a { color: inherit; text-decoration: none; }
.infos { color: var(--doux); font-size: .92rem; margin: 0; }
.prix { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.prix small { font-weight: 400; color: var(--doux); font-size: .85rem; }
.equipements { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.equipements li { font-size: .82rem; padding: 3px 10px; border: 1px solid var(--ligne); border-radius: 99px; }

/* Fiche chambre */
.fiche { display: grid; gap: 32px; }
@media (min-width: 860px) { .fiche { grid-template-columns: 1.4fr 1fr; } }
.fiche-img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.encadre { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.encadre .prix { font-size: 1.6rem; }

/* Galerie */
.albums { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.albums a { padding: 6px 14px; border: 1px solid var(--ligne); border-radius: 99px; text-decoration: none; color: var(--texte); font-size: .92rem; }
.albums a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mosaique { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mosaique figure { margin: 0; }
.mosaique img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--rayon); }
.mosaique figcaption { font-size: .85rem; color: var(--doux); padding-top: 4px; }

/* Actualités */
.actus { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.date { color: var(--doux); font-size: .88rem; }
.article { max-width: 72ch; }
.article img { border-radius: var(--rayon); margin-bottom: 20px; }

/* Formulaires */
.formulaire { display: grid; gap: 16px; max-width: 640px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ input, .champ select, .champ textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--ligne);
  border-radius: var(--rayon); background: var(--surface); color: var(--texte); width: 100%; }
.champ textarea { min-height: 140px; resize: vertical; }
.deux { display: grid; gap: 16px; }
@media (min-width: 600px) { .deux { grid-template-columns: 1fr 1fr; } }
.aide { font-size: .88rem; color: var(--doux); }
.piege { position: absolute; left: -5000px; }
.alerte { padding: 14px 16px; border-radius: var(--rayon); margin: 20px 0 0; }
.alerte-succes { background: #e5f4ea; color: #145c2e; }
.alerte-erreur { background: #fbe7e5; color: #8a1f12; }

.contact-grille { display: grid; gap: 32px; }
@media (min-width: 860px) { .contact-grille { grid-template-columns: 1fr 1.2fr; } }
.carte-acces { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--rayon); }
.texte-long { white-space: pre-line; }

/* Pied */
.pied { background: #15130f; color: #d9d3c7; padding: 40px 0 90px; margin-top: 40px; }
.theme-lagune .pied { background: #0c2029; }
.pied a { color: #fff; }
.pied-in { display: grid; gap: 24px; }
@media (min-width: 760px) { .pied-in { grid-template-columns: repeat(3, 1fr); } }
.pied-nom { font: 700 1.2rem var(--titre); color: #fff; }
.pied-dibsoft { font-size: .82rem; opacity: .7; }

.wa-flottant { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1f9e55; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.vide { padding: 32px; text-align: center; color: var(--doux); border: 1.5px dashed var(--ligne); border-radius: var(--rayon); }
.centre { text-align: center; }
