/* Hazo Velona — styles communs. Les variables viennent de brand.css. */

:root {
  --ink-soft: color-mix(in srgb, var(--text) 70%, var(--bg));
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
::selection { background: var(--accent); color: var(--surface); }

/* Grille 12 colonnes visible par filets 1 px */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-2);
}
.rule-top { border-top: 1px solid var(--border); }
.rule-bottom { border-bottom: 1px solid var(--border); }
.section { padding-block: var(--space-5); border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: 44ch; }
.h-xl { font-size: var(--step-4); }
.h-lg { font-size: var(--step-3); }
.h-md { font-size: var(--step-2); }
.num { font-family: var(--font-heading); font-variant-numeric: lining-nums tabular-nums; font-weight: 500; }

/* Liens et états interactifs */
a { text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 3px; transition: text-decoration-color .15s ease; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Boutons */
.btn { font-family: var(--font-body); font-size: var(--step-0); border-radius: 0; text-decoration: none; }
.btn:hover { transform: none; opacity: 1; background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ghost:hover { background: transparent; border-color: var(--text); color: var(--text); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.btn-light { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.link-arrow:hover { text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.icon { width: 20px; height: 20px; flex: none; }

/* En-tête sticky */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-2); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand svg { width: 36px; height: 36px; color: var(--accent); }
.brand-name { font-family: var(--font-heading); font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 400; color: var(--muted); margin-top: .25rem; letter-spacing: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.main-nav a { font-size: var(--step--1); font-weight: 600; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--foret); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-cta { padding: .6rem 1rem; font-size: var(--step--1); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 0;
  width: 44px; height: 44px; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--text); color: var(--bg);
  display: none; flex-direction: column; padding: var(--space-3);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .menu-toggle { color: var(--bg); border-color: var(--muted); }
.mobile-menu ol { list-style: none; margin: var(--space-4) 0 0; padding: 0; counter-reset: m; }
.mobile-menu li { border-top: 1px solid var(--muted); counter-increment: m; }
.mobile-menu li a {
  display: flex; gap: var(--space-2); align-items: baseline; padding: .9rem 0;
  font-family: var(--font-heading); font-size: var(--step-2); text-decoration: none; color: var(--bg);
}
.mobile-menu li a::before { content: counter(m, decimal-leading-zero); font-family: var(--font-body); font-size: var(--step--1); color: var(--accent); min-width: 2ch; }
.mobile-menu li a:hover, .mobile-menu li a[aria-current="page"] { color: var(--accent); }
.mobile-menu li:last-child { border-bottom: 1px solid var(--muted); }

/* Pied de page */
.site-footer { background: var(--text); color: var(--bg); padding-block: var(--space-5) var(--space-3); margin-top: var(--space-5); }
.site-footer a { color: var(--bg); text-decoration-color: transparent; }
.site-footer a:hover { text-decoration-color: var(--accent); }
.site-footer .muted { color: #B9C2B5; }
.footer-grid { row-gap: var(--space-3); }
.footer-col { grid-column: span 3; }
.footer-col h2 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-brand { grid-column: span 4; }
.footer-brand .brand { color: var(--bg); }
.footer-brand .brand svg { color: var(--accent); }
.footer-base { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--muted); font-size: var(--step--1); color: #B9C2B5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }

/* Formulaires */
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: var(--step--1); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 0; border-bottom: 1px solid var(--text); border-radius: 0;
  padding: .75rem .1rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; border: 1px solid var(--border); padding: .75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field-error { color: var(--accent); font-size: var(--step--1); font-weight: 600; min-height: 1.2em; margin: 0; }
.form-status { padding: var(--space-2); border: 1px solid var(--text); font-weight: 600; margin: 0; }
.form-status.is-error { border-color: var(--accent); color: var(--accent); }
.form-status.is-success { background: var(--foret-soft, var(--surface)); color: var(--text); border-color: var(--text); }
.choice { display: flex; gap: .6rem; align-items: center; font-size: var(--step-0); }
.choice input { width: 18px; height: 18px; accent-color: var(--text); }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice-row label { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--border); padding: .7rem 1rem; cursor: pointer; background: var(--surface); }
.choice-row label:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.choice-row input { accent-color: var(--bg); }

/* Squelette de chargement */
.skeleton-line { height: 1.1em; background: var(--border); margin-bottom: .7rem; animation: pulse 1.2s ease-in-out infinite; }
.skeleton-line.short { width: 40%; }
.skeleton-line.wide { width: 90%; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skeleton-line { animation: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .footer-col, .footer-brand { grid-column: span 6; }
}
@media (max-width: 560px) {
  .footer-col, .footer-brand { grid-column: span 12; }
  .section { padding-block: var(--space-4); }
}
