/* ====================================================================
   LOCVOILIER — thème : base de page, articles, recherche
   Le design des pages vient de lv-adn.css (tout est préfixé .lv-page).
   ==================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: #001a33;
  color: #eef3f6;
  font-family: 'Lora', Georgia, serif;
  line-height: 1.6;
}
.lv-main { display: block; min-height: 60vh; }
.lv-main > .lv-page { width: 100%; }
/* v2.2 : aucune bande entre la page et le pied de page. Le fond restant prend la couleur du bas
   de page (#010c1a) et les paragraphes vides ajoutés par l'éditeur après le bloc sont masqués. */
.lv-main:has(> .lv-page), body.lv-contenu .lv-main { background: #010c1a; min-height: 0; }
.lv-main > .lv-page { margin-bottom: 0; }
/* dimensions ajoutées par le thème : l'image garde ses proportions (toute règle de la page reste prioritaire) */
:where(.lv-page img[width][height]) { height: auto; }
.lv-main > .lv-page ~ p, .lv-main > .lv-page ~ br, .lv-main > p:empty,
.lv-page > p:empty, .lv-page > br { display: none !important; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lv-skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto;
  padding: 10px 16px; background: #c5a059; color: #001a33; border-radius: 6px; font-weight: 600;
}

/* Grandes pages : hauteur du haut de page plafonnée sur grand écran */
@media (min-width: 1000px) { .lv-page .hero { min-height: min(88vh, 1100px); } }

/* Reflet des boutons WhatsApp animé sans recalcul de mise en page */
html body .lv-page .btn.wa::before { left: 0; animation-name: lv-wa-shine-t; }
@keyframes lv-wa-shine-t {
  0% { transform: translateX(-273%) skewX(-20deg); }
  55%, 100% { transform: translateX(273%) skewX(-20deg); }
}


/* ---------- Articles, pages simples, recherche (contenu WordPress classique) ---------- */
.lv-page .lv-prose { max-width: 780px; margin: 0 auto; font-size: 18px; }
.lv-page .lv-prose > * + * { margin-top: 1.1em; }
.lv-page .lv-prose h2 { font-size: 30px; margin-top: 1.6em; }
.lv-page .lv-prose h3 { font-size: 23px; margin-top: 1.4em; }
.lv-page .lv-prose h4 { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 19px; margin: 1.3em 0 0; }
.lv-page .lv-prose a:not(.btn) { color: var(--turquoise); text-decoration: underline; text-underline-offset: 3px; }
.lv-page .lv-prose ul, .lv-page .lv-prose ol { padding-left: 1.3em; }
.lv-page .lv-prose li + li { margin-top: .35em; }
.lv-page .lv-prose img, .lv-page .lv-prose figure img { border-radius: 10px; height: auto; }
.lv-page .lv-prose figure { margin: 1.6em 0; }
.lv-page .lv-prose figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
.lv-page .lv-prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold);
  font-style: italic; color: #dfe8ee;
}
.lv-page .lv-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.lv-page .lv-prose th, .lv-page .lv-prose td { padding: 10px 12px; border-bottom: 1px solid rgba(197,160,89,.25); text-align: left; }
.lv-page .lv-prose th { color: #fff; }
.lv-page .lv-prose .wp-block-image.aligncenter, .lv-page .lv-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.lv-page .lv-prose .alignwide, .lv-page .lv-prose .alignfull { max-width: none; }
.lv-page .lv-prose iframe, .lv-page .lv-prose video { max-width: 100%; }
.lv-page .lv-post-meta { color: var(--muted); font-size: 15px; margin-top: 14px; }
.lv-page .lv-post-meta a { color: var(--gold-soft); }

.lv-page .lv-hero-simple { padding: 150px 0 40px; text-align: center; }
.lv-page .lv-hero-simple h1 { font-size: clamp(30px, 5vw, 46px); }

.lv-page .lv-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.lv-page .lv-post-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(197,160,89,.28); background: rgba(255,255,255,.04);
  transition: border-color .2s, transform .2s;
}
.lv-page .lv-post-card:hover, .lv-page .lv-post-card:focus-within { border-color: var(--gold); transform: translateY(-2px); }
.lv-page .lv-post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.lv-page .lv-post-card .in { padding: 18px 20px 20px; }
.lv-page .lv-post-card h2 { font-size: 21px; }
.lv-page .lv-post-card h2 a { color: #fff; }
.lv-page .lv-post-card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.lv-page .lv-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.lv-page .lv-pagination .page-numbers {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(197,160,89,.35); color: #fff; padding: 0 12px;
}
.lv-page .lv-pagination .current { background: var(--turquoise); border-color: var(--turquoise); color: #001a33; }

/* ---------- Recherche et page 404 ---------- */
.lv-404-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.lv-404-grille a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(197,160,89,.3); background: rgba(255,255,255,.04); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.lv-404-grille a:hover, .lv-404-grille a:focus-visible { border-color: var(--gold, #c5a059); transform: translateY(-2px); }
.lv-404-grille b { color: #fff; font-size: 16px; }
.lv-404-grille span { color: var(--muted, #9fb3c3); font-size: 14px; }
.lv-404-recherche { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 10px auto 0; max-width: 620px; }
.lv-404-recherche label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lv-404-recherche input {
  flex: 1 1 260px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(197,160,89,.4); background: rgba(255,255,255,.06); color: #fff; font-size: 16px;
}

/* ---------- Bloc réservation des fiches bateaux (remplacé par le CRM plus tard) ---------- */
.lv-page .lv-resa {
  border: 1px solid rgba(197,160,89,.35); border-radius: 16px; padding: 26px 24px;
  background: rgba(4,33,63,.55); text-align: center;
}
.lv-page .lv-resa h3 { font-size: 24px; margin-bottom: 8px; }
.lv-page .lv-resa p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.lv-page .lv-resa .cta-row { justify-content: center; }

/* ---------- Tableau des tarifs des fiches bateaux ---------- */
.lv-page .lv-tarifs { max-width: 860px; margin: 0 auto; }
.lv-page .lv-tarifs-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.lv-page .lv-tarifs-table th, .lv-page .lv-tarifs-table td { padding: 13px 14px; border-bottom: 1px solid rgba(197,160,89,.22); vertical-align: top; }
.lv-page .lv-tarifs-table th { text-align: left; font-weight: 400; color: var(--ink); }
.lv-page .lv-tarifs-table td { text-align: right; white-space: nowrap; color: var(--gold-soft); font-weight: 600; }
.lv-page .lv-tarifs-infos { list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.lv-page .lv-tarifs-infos li { padding-left: 18px; position: relative; margin-top: 6px; }
.lv-page .lv-tarifs-infos li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); }
.lv-page .lv-tarifs-options { margin-top: 22px; border: 1px solid rgba(197,160,89,.28); border-radius: 12px; padding: 4px 16px; }
.lv-page .lv-tarifs-options summary { cursor: pointer; padding: 12px 0; color: #fff; font-weight: 600; }
@media (max-width: 600px) { .lv-page .lv-tarifs-table td { white-space: normal; } }

/* Bandeau cookies (Complianz) : le logo reste dans sa case, sans chevaucher le titre */
.cmplz-cookiebanner .cmplz-logo { overflow: hidden; }
.cmplz-cookiebanner .cmplz-logo img, .cmplz-cookiebanner .cmplz-logo svg { max-width: 100% !important; height: auto !important; }

/* Avis Google natifs [lv_avis] */
.lv-page .lv-avis { text-align: center; }
.lv-page .lv-avis-note { font-size: 18px; color: var(--gold-soft, #dcc48a); }
.lv-page .lv-avis-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; text-align: left; }
.lv-page .lv-avis-carte { margin: 0; padding: 22px; border: 1px solid rgba(197,160,89,.25); border-radius: 12px; background: rgba(255,255,255,.03); }
.lv-page .lv-avis-etoiles { color: #c5a059; letter-spacing: 2px; margin-bottom: 8px; }
.lv-page .lv-avis-carte blockquote { margin: 0 0 12px; color: var(--ink, #eef3f6); font-size: 15px; }
.lv-page .lv-avis-carte figcaption { color: var(--muted, #a9b7bf); font-size: 13px; }
.lv-page .lv-avis-source { color: var(--muted, #a9b7bf); font-size: 12px; }

/* v2.5 : animations décoratives en pause pendant le chargement (classe retirée par lv-adn.js).
   Liste ciblée : aucun sélecteur universel, le calcul des styles reste léger. */
html.lv-calme .lv-wa-float, html.lv-calme .lv-page .btn.wa::before, html.lv-calme .lv-page .lv-rating .stars span,
html.lv-calme .lv-page .tagline, html.lv-calme #lvFooter .lvf-slogan, html.lv-calme #lvFooter .lvf-logo .lvf-l1,
html.lv-calme #lvFooter .lvf-logo .lvf-l2, html.lv-calme .lvh-star, html.lv-calme .lvh-logo::after,
html.lv-calme .lvh-book::before, html.lv-calme .lvbar__i--book svg { animation-play-state: paused !important; }

/* v3.1 : sélecteur de langue en drapeaux */
.lv-langs { display: inline-flex; align-items: center; gap: 6px; font-family: 'Montserrat', Arial, sans-serif; }
.lv-langs a, .lv-langs > span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(238,243,246,.8); border-radius: 999px; transition: opacity .2s ease, transform .2s ease; }
.lv-flag { position: relative; display: inline-block; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.28); }
/* effet bonbon : reflet brillant en haut, lumière renvoyée en bas, bord ombré = bille bombée */
.lv-flag::before { content: ""; position: absolute; left: 14%; right: 14%; top: 5%; height: 44%; border-radius: 50%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.28) 60%, rgba(255,255,255,0) 100%); }
.lv-flag::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 118%, rgba(255,255,255,.45) 0, rgba(255,255,255,0) 42%),
              radial-gradient(circle at 50% 45%, rgba(0,0,0,0) 52%, rgba(0,0,0,.42) 100%); }
.lv-flag-svg { display: block; width: 100%; height: 100%; }
.lv-langs a .lv-flag { opacity: .82; transition: opacity .2s ease, transform .2s ease; }
.lv-langs a:hover .lv-flag { transform: scale(1.1); }
.lv-langs a:hover .lv-flag, .lv-langs a:focus-visible .lv-flag { opacity: 1; }
.lv-langs a:hover { transform: translateY(-1px); }
.lv-langs .is-on .lv-flag { box-shadow: 0 2px 5px rgba(0,0,0,.55), 0 0 0 2px #c5a059, 0 0 12px rgba(197,160,89,.55); }
.lvh-langs { margin-right: 10px; }
.lvh-langs .lv-lang-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lvd-langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; }
.lvd-langs a, .lvd-langs > span { padding: 7px 14px 7px 8px; border: 1px solid rgba(197,160,89,.35); }
.lvd-langs .is-on { color: #08131f; background: #c5a059; border-color: #c5a059; }
@media (max-width: 760px) { .lvh-langs { display: none; } }

/* v3.0.2 : compatibilité Imagify (mode <picture>). Imagify déplace la classe de l'image
   (ex. hero-poster) sur la balise <picture> : l'image intérieure doit remplir ce cadre. */
.lv-page picture[class] { display: block; }
.lv-page picture[class] > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lv-page .hero-bg picture, .lv-page .hero-bg picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
