/* Lizarder : refonte visuelle légère (14/10/2026).
   Chargée après les styles externes, elle ne change pas la structure HTML.
   Priorités : lisibilité mobile, cibles tactiles ≥ 44px, zones de recherche claires,
   pas de vide inutile entre les blocs, pas de zoom forcé sur iOS. */

:root {
  --lz-primary: #0b6fd6;
  --lz-primary-dark: #0a5bb0;
  --lz-accent: #12b3f0;
  --lz-text: #1d2433;
  --lz-muted: #5b6474;
  --lz-line: #e3e7ee;
  --lz-surface: #ffffff;
  --lz-soft: #f5f7fa;
  --lz-radius: 12px;
  --lz-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --lz-focus: 0 0 0 3px rgba(11, 111, 214, .35);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lz-text);
  background: var(--lz-soft);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--lz-primary); text-underline-offset: 2px; }
a:hover { color: var(--lz-primary-dark); }

/* Accessibilité : focus visible au clavier */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--lz-focus);
  border-radius: 6px;
}

/* ---------- En-tête ---------- */
nav.LeMenu {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--lz-surface);
  box-shadow: 0 1px 0 var(--lz-line);
  min-height: 56px;
}
.LeMenu .navbar-brand {
  font-weight: 700;
  color: var(--lz-text);
  letter-spacing: -.01em;
}
.LeMenuButton button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
}

/* ---------- Accueil : héros et slogans ---------- */
#maindiv { padding-bottom: 24px; }
.design_main h1, h1.logo_name {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  color: var(--lz-text);
}
.design_main h2, h2 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.design_main img.logo { max-height: 120px; width: auto; }
.LeMenu .navbar-brand img { width: 36px !important; height: 36px !important; margin-right: 6px; }

@media (max-width: 575.98px) {
  body { font-size: 15.5px; }
  .design_main h1, h1.logo_name { font-size: 1.75rem; }
  .design_main img.logo { max-width: 120px; }
  .design_main p, .design_main .intro { font-size: 1rem; }
}

/* ---------- Champ de recherche ---------- */
form .form-control,
input[name="phrase"],
input[name="word"],
input[type="search"] {
  font-size: 16px; /* évite le zoom automatique iOS */
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #cdd3dd;
  background: var(--lz-surface);
  color: var(--lz-text);
}
form .form-control:focus,
input[name="phrase"]:focus,
input[name="word"]:focus {
  border-color: var(--lz-primary);
  box-shadow: var(--lz-focus);
  outline: none;
}
form .btn-primary, form button[type="submit"], .submit-form {
  min-height: 48px;
  min-width: 48px;
  border-radius: 10px;
  font-weight: 600;
  background: var(--lz-primary);
  border-color: var(--lz-primary);
}
form .btn-primary:hover, form button[type="submit"]:hover {
  background: var(--lz-primary-dark);
  border-color: var(--lz-primary-dark);
}
.bootstrap-select > .dropdown-toggle {
  min-height: 44px;
  border-radius: 10px;
}

/* ---------- Pages de résultats ---------- */
.resultpage .callout,
.resultats .callout,
.callout {
  border-radius: var(--lz-radius);
  background: var(--lz-surface);
  box-shadow: var(--lz-shadow);
  border-left-width: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.resultpage h2, .resultpage h3, .resultpage .h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.3;
  word-break: break-word;
}
.resultpage h3 { font-size: 1.1rem; }

/* Mots-clés : puces lisibles et tactiles */
.badge-light, .badge.badge-light {
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .9rem;
  color: var(--lz-text);
  background: #eef2f7;
  border: 1px solid var(--lz-line);
  margin: 2px;
}
.badge-light a { color: inherit; text-decoration: none; }
.badge-light a:hover { text-decoration: underline; }

/* Exemples : ne jamais déborder sur mobile */
.sentence, .resultats p, .resultpage p { overflow-wrap: anywhere; }
.resultpage mark, .resultpage .highlight { border-radius: 3px; padding: 0 2px; }

/* Les blocs publicitaires vides ne doivent pas laisser de trou dans la page */
ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle[data-adsbygoogle-status="unfilled"] { display: none !important; }
.adsense-responsive-ad-container { margin: 12px 0; min-height: 0; }
.adsense-responsive-ad-container:empty { display: none; }

/* ---------- Tableaux et contenus larges ---------- */
.resultpage table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Pied de page ---------- */
footer, #footer, .footer {
  color: var(--lz-muted);
  font-size: .95rem;
  border-top: 1px solid var(--lz-line);
  padding: 24px 0;
}
footer a, .footer a { display: inline-block; padding: 6px 4px; min-height: 32px; }

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