/* WAGEWINGS — site public (WW-016), direction n° 10 « Vol » : marine, bleu royal, blanc.
   Typographie : polices système sans empattements (Avenir Next, Avenir, Helvetica Neue, Arial).
   Aucune police distante, aucun style en ligne : la politique CSP du site reste stricte. */
:root {
  --ww-font: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --ww-script: "Snell Roundhand", "Brush Script MT", cursive;
  --ww-shadow: 0 10px 26px rgba(11, 31, 75, 0.1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ww-white);
  color: var(--ww-ink);
  font-family: var(--ww-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ww-royal); }
:focus-visible { outline: 3px solid var(--ww-royal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ww-white); color: var(--ww-navy); padding: 8px 12px; z-index: 5; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
h1, h2, h3 { font-family: var(--ww-font); color: var(--ww-navy); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--ww-muted); max-width: 60ch; }
.muted { color: var(--ww-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ww-royal); margin-bottom: 16px; }
.accent { color: var(--ww-royal); }
.tagline { font-family: var(--ww-script); font-size: 1.5rem; color: var(--ww-royal); margin: 18px 0 0; }

/* Icônes */
.icon { width: 28px; height: 28px; flex: none; color: var(--ww-royal); }
.badge-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ww-tint); display: grid; place-items: center; margin-bottom: 14px; }
.badge-icon .icon { width: 30px; height: 30px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ww-royal);
  background: var(--ww-royal); color: var(--ww-white); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #1841b3; border-color: #1841b3; }
.btn.outline { background: var(--ww-white); color: var(--ww-navy); border-color: var(--ww-navy); }
.btn.outline:hover { background: var(--ww-tint); }
.btn.light { background: var(--ww-white); color: var(--ww-navy); border-color: var(--ww-white); }
.btn.light:hover { background: var(--ww-tint); }
.btn.navy { background: var(--ww-navy); border-color: var(--ww-navy); }
.btn.navy:hover { background: #07163a; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* En-tête et navigation */
header.site { border-bottom: 1px solid var(--ww-line); background: var(--ww-white); position: sticky; top: 0; z-index: 4; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; position: relative; }
.brand { display: block; }
.brand img { height: 115px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { color: var(--ww-navy); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.primary-nav a:hover { color: var(--ww-royal); }
.primary-nav a[aria-current="page"] { color: var(--ww-royal); border-bottom-color: var(--ww-royal); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--ww-navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--ww-white); border-bottom: 1px solid var(--ww-line); box-shadow: var(--ww-shadow); padding: 12px 20px 20px; }
.menu-panel a { display: block; padding: 12px 0; color: var(--ww-navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ww-tint); }
.menu-panel a[aria-current="page"] { color: var(--ww-royal); }
.menu-panel .lang-switch { margin-top: 14px; }

/* Accueil : héros */
.hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--ww-tint) 0%, var(--ww-white) 100%); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: center; }
.hero h1 .line2 { display: block; color: var(--ww-royal); }
.hero .lead { margin-top: 18px; }

/* Aperçu de tableau de bord (exemple fictif, pas une photo) */
.preview { background: var(--ww-white); border-radius: 20px; box-shadow: var(--ww-shadow); padding: 20px; border: 1px solid var(--ww-line); }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.preview-head strong { color: var(--ww-navy); }
.pill { font-size: 0.78rem; font-weight: 700; color: var(--ww-navy); background: var(--ww-tint); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--ww-tint); border-radius: 14px; padding: 12px; min-width: 0; }
.kpi span { display: block; font-size: 0.78rem; color: var(--ww-muted); }
.kpi strong { display: block; font-size: 1.2rem; color: var(--ww-navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chart { margin: 16px 0 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.goal-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.goal-row .icon { color: var(--ww-royal); }
.goal-row div { flex: 1; min-width: 0; }
.goal-row strong { color: var(--ww-navy); display: block; }
.w-20 { width: 20%; }
.w-35 { width: 35%; }
.w-55 { width: 55%; }
.w-75 { width: 75%; }
.progress { height: 10px; background: var(--ww-tint); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: var(--ww-royal); border-radius: 999px; }

/* Fonctionnalités */
.features { background: var(--ww-white); }
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.feature { background: var(--ww-white); border: 1px solid var(--ww-line); border-radius: var(--ww-radius); padding: 26px; box-shadow: var(--ww-shadow); }
.feature p { color: var(--ww-muted); margin: 0; }
.feature.planned { border-style: dashed; }
.status { display: inline-block; margin-bottom: 10px; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.status.available { background: var(--ww-navy); color: var(--ww-white); }
.status.planned { background: var(--ww-white); color: var(--ww-navy); border: 1px solid var(--ww-navy); }

/* Tarifs */
.plans-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; align-items: stretch; }
.plan { position: relative; background: var(--ww-white); border: 1px solid var(--ww-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--ww-shadow); }
.plan.featured { border: 2px solid var(--ww-royal); }
.plan .ribbon { position: absolute; top: -13px; right: 22px; background: var(--ww-royal); color: var(--ww-white); font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.price { font-size: 2.8rem; font-weight: 800; color: var(--ww-navy); line-height: 1; margin: 12px 0 18px; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ww-muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.plan li .icon { width: 20px; height: 20px; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan h3 { font-size: 1.45rem; }
.note { font-size: 0.92rem; color: var(--ww-muted); margin-top: 22px; }

/* Famille */
.family { background: var(--ww-tint); }
.family-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.family ul.points { list-style: none; padding: 0; margin: 20px 0 0; }
.family ul.points li { display: flex; gap: 12px; padding: 8px 0; color: var(--ww-ink); }
.family ul.points .icon { width: 22px; height: 22px; margin-top: 3px; }
.family-card { background: var(--ww-white); border-radius: 20px; padding: 26px; box-shadow: var(--ww-shadow); }
.goal-list { list-style: none; padding: 0; margin: 14px 0 0; }
.goal-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ww-tint); color: var(--ww-navy); font-weight: 600; }
.goal-list li:last-child { border-bottom: 0; }
.goal-list .icon { width: 26px; height: 26px; }

/* Bandeau d'appel */
.band { background: var(--ww-navy); color: var(--ww-white); padding: 56px 0; }
.band h2 { color: var(--ww-white); }
.band .lead { color: #D6E0F5; }
.band .btn { margin-top: 10px; }

/* Pages secondaires */
.page-head { padding: 64px 0 28px; }
.page-main { min-height: 62vh; }
.page-section { padding-top: 8px; }
.option-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-grid .card h2 { font-size: 1.35rem; }
.option-grid .card p { color: var(--ww-muted); }
.option-grid .card { display: flex; flex-direction: column; }
.option-grid .btn, .option-grid .status { margin-top: auto; align-self: flex-start; }
.option-grid .btn { margin-top: auto; }
.page-head .lead { margin-bottom: 0; }
.card { background: var(--ww-white); border: 1px solid var(--ww-line); border-radius: var(--ww-radius); padding: 26px; box-shadow: var(--ww-shadow); }
.two-col { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ww-tint); }
.check-list .icon { width: 22px; height: 22px; margin-top: 3px; }
form.signin { display: grid; gap: 6px; max-width: 420px; }
form.signin label { font-weight: 600; color: var(--ww-navy); margin-top: 10px; }
form.signin input {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--ww-muted); border-radius: 12px; font: inherit; font-size: 16px; color: var(--ww-ink); background: var(--ww-white);
}
form.signin .btn { margin-top: 18px; }
.form-message { min-height: 1.5em; font-weight: 600; color: var(--ww-navy); margin-top: 12px; }

/* Pied de page */
.site-foot { background: var(--ww-tint); border-top: 1px solid var(--ww-line); padding: 36px 0; color: var(--ww-muted); font-size: 0.92rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr; align-items: start; }
.site-foot .brand-line { color: var(--ww-navy); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.site-foot nav a { display: block; color: var(--ww-navy); text-decoration: none; padding: 4px 0; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot p { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 820px) {
  .option-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .menu { display: block; }
  .header-actions .btn, .header-actions .lang-switch { display: none; }
  .hero-grid, .family-grid, .two-col, .foot-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .bar { min-height: 72px; }
  .brand img { height: 82px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .band { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Sélecteur de langue à trois boutons visibles (WW-034) */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lang-btn {
  min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ww-royal);
  background: var(--ww-white); color: var(--ww-navy); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.lang-btn:hover { background: var(--ww-tint); }
.lang-btn[aria-pressed="true"] { background: var(--ww-navy); color: var(--ww-white); border-color: var(--ww-navy); }
.lang-btn:focus-visible { outline: 3px solid var(--ww-royal); outline-offset: 2px; }
