/* Bonne Compo — vitrine bonnecompo.fr
   La mise en page est portée par les styles en ligne de la maquette validée (16/11/2026).
   Ce fichier ne contient que les bases de page, le menu mobile et les ajustements aux petits écrans. */

html { scroll-behavior: smooth; }
body { margin: 0; background: oklch(98.5% .005 90); -webkit-font-smoothing: antialiased; }
a { color: oklch(50% .09 175); }
a:hover { color: oklch(40% .09 175); }
img { max-width: 100%; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; font-weight: 400; color: oklch(50% .09 175); }
details[open] summary::after { content: "–"; }
:focus-visible { outline: 3px solid oklch(62% .11 175); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Menu mobile */
.menu-btn { display: none; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid oklch(86% .005 90); background: #fff; color: oklch(22% .03 265); cursor: pointer; min-height: 44px; }

/* Section fondateur : une seule colonne tant que la photo est masquée */
.fondateur:has([data-feature="photo-fondateur"][hidden]) { grid-template-columns: minmax(0, 1fr) !important; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .menu { display: none !important; width: 100%; flex-direction: column; align-items: stretch !important; gap: 8px !important; padding-top: 8px; }
  .menu.open { display: flex !important; }
  .menu a { padding: 12px 16px; border-radius: 12px; text-align: center; min-height: 44px; box-sizing: border-box; }
  h1 { font-size: 34px !important; }
  h2 { font-size: 28px !important; }
  section > div, main > section { padding-left: 20px !important; padding-right: 20px !important; }
  /* Boutons pleine largeur dans le haut de page et l'appel final */
  #top a[href*="calendly"], #top a[href="#fonctionnement"], #tarif a[href*="calendly"], #demo a[href*="calendly"] { display: block; text-align: center; width: 100%; box-sizing: border-box; }
  table { font-size: 13px; }
  #benefices h3 { min-height: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
