/* =============================================================
   LAOU — Styles globaux WordPress
   Reset léger + defaults body — pas de styles inline.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--fg-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font-family: inherit; cursor: pointer; }

/* Supprime les styles de liste WP par défaut dans Elementor */
.elementor ul, .elementor ol { padding-left: 0; margin: 0; list-style: none; }

/* Layout helpers */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }

/* Texture grain (charte Laou) */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* Boutons Laou */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  font: var(--text-button);
  border-radius: 0;
  padding: 14px 22px;
  min-height: 48px;
  border: 1.6px solid transparent;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn-solid   { background: var(--teal-deep); color: #fff; }
.btn-solid:hover  { background: var(--teal-700); transform: translateY(-2px); text-decoration: none; }
.btn-light   { background: #fff; color: var(--teal-deep); }
.btn-light:hover  { transform: translateY(-2px); text-decoration: none; }
.btn-coral   { background: var(--coral-deep); color: #fff; }
.btn-coral:hover  { background: var(--coral-600); transform: translateY(-2px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-outline:hover { background: rgba(20,32,31,.05); transform: translateY(-2px); text-decoration: none; }

/* Elementor — override border-radius boutons */
.elementor-button { border-radius: 0 !important; }

/* Barre de progression de lecture */
.laou-read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--teal-deep);
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* Bouton retour en haut */
.laou-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-deep);
  color: #fff;
  border: 0;
  z-index: 80;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background .2s;
  pointer-events: none;
}
.laou-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.laou-back-to-top:hover { background: var(--teal-700); }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 52px 0; }
}
