/* Résidence Fleur de Lys — ambiance tropicale élégante, mobile d'abord.
   Couleurs principales : modifier ici pour adapter à la future charte (DK-2026-003). */
:root {
  --green-dark: #0f3d32;
  --green: #0f6b5c;
  --green-soft: #e6f2ee;
  --turquoise: #2bb3c0;
  --turquoise-light: #c9eef0;
  --sand: #fbf7ef;
  --hibiscus: #d94f70;
  --sun: #ffd166;
  --text: #16352b;
  --muted: #5b6f68;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 61, 50, 0.12);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--sand); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--green-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; }
h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: .35em; border-radius: 3px;
  background: linear-gradient(90deg, var(--hibiscus), var(--sun)); }
h1 em, .brand em { font-style: italic; color: inherit; }
section { padding: 56px 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sub { color: var(--muted); margin-top: -.5em; }
.small { font-size: .9rem; color: var(--muted); }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px; }

.preview-banner { background: var(--sun); color: var(--green-dark); text-align: center; padding: 6px 12px; font-size: .9rem; font-weight: 600; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(15, 61, 50, .08); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); margin-right: auto; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
@media (min-width: 420px) { .brand-name { font-size: 1.35rem; } }
.brand-name::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -2px;
  background: url("/img/favicon.svg") center / contain no-repeat; }
.main-nav { display: none; }
.main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--sand);
  padding: 12px 16px 20px; box-shadow: var(--shadow); gap: 4px; }
.main-nav a { text-decoration: none; color: var(--text); padding: 8px 4px; font-weight: 500; }
.main-nav a.btn { color: #fff; text-align: center; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 10px; cursor: pointer; order: 3; }
.nav-toggle span { width: 22px; height: 2px; background: var(--green-dark); border-radius: 2px; }
.lang-switch { display: flex; border: 1px solid var(--green); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: 0; background: transparent; padding: 4px 10px; font-weight: 600; color: var(--green); cursor: pointer; font-size: .85rem; }
.lang-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.open { display: flex; flex-direction: row; position: static; box-shadow: none; padding: 0; background: none; align-items: center; gap: 14px; }
  .main-nav a { font-size: .95rem; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-block; background: var(--green); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s; }
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .7); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--turquoise-light); }
.btn-whatsapp { background: #1f9e57; }
.btn-whatsapp:hover { background: #157a42; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.link { background: none; border: 0; color: var(--green); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Photos / espaces réservés ---------- */
.ph { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--green-soft); aspect-ratio: 4 / 3; }
.ph img, .ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media .ph { border-radius: 0; height: 100%; aspect-ratio: auto; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 61, 50, .1) 30%, rgba(15, 61, 50, .75)); }
.hero-content { position: relative; padding: 120px 0 56px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 36em; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--sun); margin: 0 0 8px; }

.intro { text-align: center; max-width: 760px; }
.intro h2::after { margin-inline: auto; }
.badges { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.badges li { background: #fff; border-radius: var(--radius); padding: 16px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
@media (min-width: 700px) { .badges { grid-template-columns: repeat(4, 1fr); } }

/* Icônes simples (SVG en ligne) */
.ico { width: 40px; height: 40px; border-radius: 50%; background: var(--turquoise-light) center / 24px no-repeat; display: inline-block; flex: none; }
.ico-pool { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 16c2 0 2-1.5 4-1.5S8 16 10 16s2-1.5 4-1.5 2 1.5 4 1.5 2-1.5 4-1.5M2 20c2 0 2-1.5 4-1.5S8 20 10 20s2-1.5 4-1.5 2 1.5 4 1.5 2-1.5 4-1.5M8 13V5a2 2 0 0 1 4 0M16 13V5a2 2 0 0 0-4 0M8 9h8'/%3E%3C/svg%3E"); }
.ico-snow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M4.9 6l14.2 12M19.1 6 4.9 18M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E"); }
.ico-wifi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 9a15 15 0 0 1 20 0M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0'/%3E%3Ccircle cx='12' cy='19.5' r='1' fill='%230f6b5c'/%3E%3C/svg%3E"); }
.ico-hand { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ico-fruit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d94f70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 11h18l-2 9H5zM7 11l3-6M17 11l-3-6'/%3E%3C/svg%3E"); background-color: #fde3ea; }
.ico-punch { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d94f70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 2h4v4l2 3v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V9l2-3z'/%3E%3Cpath d='M8 13h8'/%3E%3C/svg%3E"); background-color: #fde3ea; }
.ico-sun { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); background-color: #fff3cf; }

/* ---------- Bungalows ---------- */
.unit { display: grid; gap: 24px; align-items: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .ph:first-child { grid-column: 1 / -1; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.price-from { font-family: var(--serif); font-size: 1.4rem; color: var(--green); }
@media (min-width: 860px) {
  .unit { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .unit-alt .gallery { order: 2; }
}

.both { background: linear-gradient(135deg, var(--green), var(--turquoise)); color: #fff; }
.both h2 { color: #fff; }
.both-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .both-inner { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Équipements ---------- */
.amenities { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px 24px; }
.amenities li { padding: 8px 0 8px 30px; border-bottom: 1px dashed rgba(15, 61, 50, .15); position: relative; }
.amenities li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 0 60% 0 60%; background: var(--turquoise); transform: rotate(-10deg); }
.amenities-extra li::before { background: var(--hibiscus); }
@media (min-width: 640px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .amenities { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Tarifs ---------- */
.rates { background: var(--green-soft); }
.table-scroll { overflow-x: auto; }
.rates table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 520px; }
.rates th, .rates td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--green-soft); }
.rates thead th { background: var(--green); color: #fff; font-weight: 600; }
.rates td:nth-child(n+3) { font-weight: 700; color: var(--green); }
.notes { padding-left: 20px; color: var(--muted); }

/* ---------- Offerts / règlement / proximité ---------- */
.cards { list-style: none; padding: 0; display: grid; gap: 16px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.card p { margin: 0; font-weight: 500; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.rule-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.rule-list li { background: #fff; border-left: 4px solid var(--turquoise); padding: 12px 16px; border-radius: 8px; }
@media (min-width: 800px) { .rule-list { grid-template-columns: 1fr 1fr; } }

.nearby { background: #fff; }
.nearby-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .nearby-inner { grid-template-columns: 1fr 1fr; gap: 48px; } }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--green); color: var(--green); border-radius: 999px; padding: 4px 14px; font-weight: 600; }

/* ---------- Réservation ---------- */
.booking form { display: grid; gap: 20px; }
fieldset { border: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .6; }
legend { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green-dark); padding: 0; margin-bottom: 12px; float: left; width: 100%; }
legend + * { clear: both; }
.unit-choice { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .unit-choice { grid-template-columns: repeat(3, 1fr); } }
.unit-choice label { cursor: pointer; }
.unit-choice input { position: absolute; opacity: 0; }
.unit-choice span { display: flex; flex-direction: column; border: 2px solid var(--green-soft); border-radius: var(--radius); padding: 14px; transition: border-color .15s, background .15s; }
.unit-choice input:checked + span { border-color: var(--green); background: var(--green-soft); }
.unit-choice input:focus-visible + span { outline: 3px solid var(--turquoise); }
.unit-choice small { color: var(--muted); }
.field { display: grid; gap: 4px; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
.field-inline { display: flex; align-items: center; gap: 12px; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #c8d6d1; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.field-inline select { width: auto; min-width: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--turquoise); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 16px; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.error { color: #b3261e; font-weight: 600; }
.notice { background: var(--turquoise-light); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.hint { color: var(--muted); margin: 6px 0; }
.secure { font-size: .85rem; color: var(--muted); }
.btn-pay { width: 100%; padding: 16px; font-size: 1.05rem; }

.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-dates { display: flex; gap: 24px; }
.cal-dates div { display: flex; flex-direction: column; }
.cal-dates small { color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.calendar { position: relative; margin-top: 8px; }
.cal-nav { display: flex; justify-content: space-between; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.cal-nav button { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--green-soft); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--green); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; gap: 24px; }
@media (min-width: 760px) { .cal-months { grid-template-columns: 1fr 1fr; } }
.cal-month h4 { text-align: center; text-transform: capitalize; font-size: 1.2rem; line-height: 36px; margin: 0 0 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .wd { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
.day { aspect-ratio: 1; border: 0; background: var(--green-soft); border-radius: 8px; font: inherit; font-size: .95rem; cursor: pointer; color: var(--text); }
@media (min-width: 760px) { .day { aspect-ratio: auto; height: 42px; } }
.day:hover:not(:disabled) { background: var(--turquoise-light); }
.day.taken { background: #e3e3e3; color: #9a9a9a; text-decoration: line-through; }
.day.taken.can-end { cursor: pointer; text-decoration: none; background: linear-gradient(135deg, var(--green-soft) 50%, #e3e3e3 50%); color: var(--text); }
.day.out { background: transparent; color: #c2c2c2; }
.day:disabled { cursor: default; }
.day.in { background: var(--turquoise-light); }
.day.start, .day.end { background: var(--green) !important; color: #fff !important; text-decoration: none; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.sw-free { background: var(--green-soft); }
.sw-taken { background: #e3e3e3; }
.sw-sel { background: var(--green); }

.quote { background: var(--sand); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.quote table { width: 100%; border-collapse: collapse; }
.quote td { padding: 6px 0; border-bottom: 1px solid rgba(15, 61, 50, .1); }
.quote td:last-child { text-align: right; white-space: nowrap; }
.quote .total td { font-weight: 800; font-size: 1.15rem; border-bottom: 0; color: var(--green-dark); padding-top: 10px; }
.gift-list { list-style: none; padding: 0; margin: 10px 0 0; }
.gift-list li { color: var(--hibiscus); font-weight: 700; }
.gift-list li::before { content: "✿ "; }

/* ---------- Contact / pied de page ---------- */
.contact { background: var(--green-dark); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact h2::after { margin-inline: auto; }
.contact .actions { justify-content: center; }
.contact-lines { opacity: .85; margin-top: 20px; }
.site-footer { background: #0a2b23; color: rgba(255, 255, 255, .75); padding: 20px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
@media (min-width: 760px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Pages de texte (CGV, mentions légales, confirmation) ---------- */
.doc { max-width: 820px; padding: 40px 0 64px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc h2::after { width: 40px; }
.todo { background: #fff3cf; border: 1px dashed #b8860b; padding: 2px 6px; border-radius: 4px; }
.doc .box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* Photos réelles (DK-2026-002) : cadrage de l'image d'accueil et dernière photo d'une galerie paire */
.hero-media .ph img { object-position: 58% 40%; }
.gallery .ph:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (max-width: 700px) {
  /* Mobile : la photo occupe le haut de l'en-tête, le texte s'affiche en dessous sur un fond vert profond */
  .hero { background: #0f3d32; }
  .hero-media { bottom: auto; height: 58%; }
  .hero-media .ph img { object-position: 62% 50%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(15, 61, 50, 0) 30%, rgba(15, 61, 50, .55) 48%, #0f3d32 58%); }
}

/* Logo définitif (DK-2026-003, piste A en couleur) : quand il est affiché, le nom en texte reste lisible par les lecteurs d'écran seulement */
.brand-logo { height: 48px; }
@media (min-width: 900px) { .brand-logo { height: 56px; } }
.brand:has(.brand-logo:not([hidden])) .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
