/* Winnersoft – feuille de style commune à toutes les pages.
   Mise en page : en-tête fixe en haut, sections pleine largeur, contenu centré à 1120 px. */
:root {
  --navy: #012169;      /* bleu du logo */
  --navy-deep: #001446;
  --gold: #F2B705;      /* accent (étoiles du logo) */
  --ink: #14213D;       /* texte courant */
  --muted: #3A4660;     /* texte secondaire */
  --mist: #F2F5FB;      /* fonds de cartes */
  --line: #DCE3F0;
  --white: #FFFFFF;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.nav a.btn { margin-left: 6px; color: var(--white); padding: 11px 20px; border-radius: 999px; }
.nav a.btn:hover { background: var(--navy-deep); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* Boutons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px; background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn:hover { background: var(--navy-deep); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #FFC82E; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* Bandeau d'ouverture */
.hero { background: var(--navy); color: var(--white); padding: 72px 0 76px; }
.hero .container { display: grid; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--gold); }
.eyebrow.dark { color: var(--navy); }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; max-width: 15em; }
.hero p.lead { font-size: 19px; color: #DCE3F2; max-width: 40em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--mist); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46em; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; color: var(--navy); }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
section.block.alt .card { border-color: transparent; }
.card h3 { font-size: 18px; color: var(--navy); }
.card p { font-size: 15px; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: #E8EDF8; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cartes projets */
.project { display: grid; grid-template-rows: auto 1fr auto; padding: 0; overflow: hidden; }
.project .band { background: var(--navy); color: var(--white); padding: 22px 24px; display: grid; gap: 6px; }
.project .band .tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.project .band h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--white); }
.project .body { padding: 20px 24px; display: grid; gap: 10px; align-content: start; }
.project .foot { padding: 0 24px 24px; }
.project.soon .band { background: #C9D3EA; color: var(--navy); }
.project.soon .band h3 { color: var(--navy); }
.project.soon .band .tag { color: var(--navy); }

/* Frise « journée type » */
.timeline { display: grid; gap: 0; max-width: 760px; }
.step { display: grid; grid-template-columns: 82px 1fr; gap: 20px; }
.step .time { display: flex; flex-direction: column; align-items: center; }
.step .time span { width: 82px; text-align: center; background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; padding: 7px 0; border-radius: 999px; font-variant-numeric: tabular-nums; }
.step .time::after { content: ""; flex: 1; width: 2px; background: #C9D3EA; }
.step:last-child .time::after { display: none; }
.step:last-child .time span { background: var(--gold); color: var(--navy); }
.step .text { padding: 4px 0 26px; display: grid; gap: 4px; }
.step .text h3 { font-size: 18px; color: var(--navy); }
.step .text p { color: var(--muted); font-size: 15px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }

/* Bandeau sur mesure */
.highlight { border: 2px solid var(--gold); border-radius: 16px; padding: 28px; display: grid; gap: 10px; background: var(--white); }
.highlight h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--navy); }

/* Contact */
.contact { background: var(--navy); color: var(--white); padding: 72px 0; }
.contact .container { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.contact h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.08; }
.contact p { color: #DCE3F2; }
.contact-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 28px; display: grid; gap: 14px; }
.contact-card .name { font-weight: 700; font-size: 20px; }
.contact-card a { color: var(--white); text-decoration: none; font-size: 18px; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .row { display: flex; gap: 12px; align-items: center; }
.contact-card svg { width: 22px; height: 22px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: #B9C4DC; font-size: 14px; padding: 28px 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer img { height: 44px; width: auto; }
.site-footer a { color: #DCE3F2; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Pages de texte (mentions légales, modèle) */
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--navy); margin-top: 18px; }
.page-title { background: var(--mist); padding: 56px 0 44px; }
.page-title h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 50px); color: var(--navy); }
.note { background: #FFF6D6; border: 1px solid #F2D879; border-radius: 10px; padding: 16px 18px; font-size: 15px; color: #4A3B00; }

/* Menu déroulant « Solutions » (une entrée par logiciel, ajoutée par maj_site.py) */
.nav-group { position: relative; }
.nav-sub-toggle { background: none; border: 0; font: inherit; font-weight: 500; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-sub-toggle:hover, .nav-group.open .nav-sub-toggle { background: var(--mist); color: var(--navy); }
.nav-group.current .nav-sub-toggle { color: var(--navy); font-weight: 700; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 16px 36px rgba(1, 33, 105, 0.14); flex-direction: column; gap: 2px; z-index: 20; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.open .nav-sub { display: flex; }
.nav .nav-sub a { display: grid; gap: 1px; padding: 10px 12px; }
.nav .nav-sub a strong { font-weight: 700; color: var(--navy); }
.nav .nav-sub a span { font-size: 13px; color: var(--muted); }
.nav .nav-sub a[aria-current="page"] { background: var(--mist); }
.nav .nav-sub a.all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--navy); }

@media (max-width: 760px) {
  .nav-group { display: grid; }
  .nav-sub-toggle { justify-content: space-between; width: 100%; text-align: left; }
  .nav-sub { position: static; display: flex; min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px 12px; }
}
.nav .nav-sub .nav-sub-title { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 2px; }
.nav .nav-sub .nav-sub-title:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
