/* Base commune aux sites clients OTOP Sites. Chaque modèle redéfinit les variables. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  color: var(--text, #1b1b1b);
  background: var(--bg, #fff);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; }
figure, blockquote { margin: 0; }
.ico { flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.3em; border-radius: var(--radius-btn, 999px);
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Formulaire de contact */
.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400;
  padding: .85em 1em; border-radius: var(--radius-field, 12px);
  border: 1.5px solid var(--field-border, #d6d6d6);
  background: var(--field-bg, #fff); color: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field input:disabled, .field textarea:disabled { opacity: .6; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .92rem; padding: .85em 1em; border-radius: 12px; background: var(--note-bg, rgba(0,0,0,.05)); }
.form-note--ok { background: #E3F6EC; color: #0D5C3A; }
.form-note--err { background: #FDE8E8; color: #8A1C1C; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-radius: 999px; background: #1FA855; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.wa-float span { font-size: .92rem; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* Visionneuse photos */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-height: 84vh; width: auto; margin: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; padding: 12px; font-size: .95rem; }
.lightbox [data-close] {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; cursor: pointer;
}

.stars { display: inline-flex; gap: 2px; color: #F2B01E; }
.map-embed { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-card, 16px); background: rgba(127,127,127,.15); }
.site-credit { font-size: .8rem; opacity: .7; }
.site-credit a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
