/* WINATO — feuille de style du site
   Mise en page : bandeaux pleine largeur, contenu sur une colonne de 72rem,
   bleu marine du logo pour les bandeaux, or pour les accents, étiquettes en police mono
   (comme la brochure). */
:root {
  --navy: #0c2756;
  --navy-deep: #071a3b;
  --gold: #c6922e;
  --gold-soft: #f3e6cc;
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #14213a;
  --muted: #55607a;
  --line: #d9dfeb;
  --on-navy: #e8edf7;
  --on-navy-muted: #a9b6d0;
  --danger: #a3281d;
  --ok: #1d6b45;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.8rem);

  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  color: inherit;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.prose { display: grid; gap: 1rem; max-width: 42rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .6rem;
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; white-space: nowrap; }
.lang-switch { display: flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .04em; white-space: nowrap; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: .3rem .15rem; }
.lang-switch a:hover { color: var(--navy); text-decoration: underline; }
.lang-switch [aria-current] { color: var(--navy); font-weight: 500; border-bottom: 2px solid var(--gold); }
.lang-switch .sep { color: var(--line); }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .94rem;
  padding-block: .4rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav a.btn { border-bottom: 0; padding: .55rem 1rem; color: var(--white); }
.nav a.btn:hover { color: var(--navy-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: .45rem .7rem; font: inherit; color: var(--navy); cursor: pointer;
}
@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter-r) 1rem var(--gutter-l);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .8rem; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-weight: 600; padding: .8rem 1.3rem; border-radius: 4px; border: 2px solid var(--navy);
  font-family: var(--font-body); font-size: 1rem; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Bandeau d'ouverture ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(7,26,59,.94) 0%, rgba(12,39,86,.86) 45%, rgba(12,39,86,.55) 100%),
    var(--hero-img, none);
  background-size: cover; background-position: center 30%;
}
.hero .wrap { padding-block: clamp(3.5rem, 8vw, 6.5rem); display: grid; gap: 1.4rem; }
.hero h1 { max-width: 46rem; }
.hero .lead { color: var(--on-navy); }
.hero--short .wrap { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.hero--placeholder {
  background-image:
    linear-gradient(100deg, rgba(7,26,59,.97) 0%, rgba(12,39,86,.9) 60%, rgba(12,39,86,.8) 100%),
    repeating-linear-gradient(135deg, rgba(198,146,46,.10) 0 2px, transparent 2px 22px);
}
.photo-slot {
  position: absolute; right: var(--gutter-r); bottom: .7rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  color: var(--on-navy-muted); border: 1px dashed rgba(169,182,208,.5);
  padding: .25rem .5rem; border-radius: 3px; max-width: calc(100% - 32px);
}
.photo-credit {
  position: absolute; right: var(--gutter-r); bottom: .5rem;
  font-size: .7rem; color: var(--on-navy-muted);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold-soft); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.4rem; max-width: 46rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Chiffres */
.figures { display: grid; gap: 2.6rem; }
.figure-group { display: grid; gap: 1rem; }
.figure-group__title {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--navy); padding-bottom: .5rem;
}
.figure-group__title h3 { font-size: var(--step-2); }
.figure-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figure {
  padding: 1.1rem 1.2rem 1.2rem 0; display: grid; gap: .35rem; align-content: start;
  border-right: 1px solid var(--line); padding-left: 1.2rem; min-width: 0;
}
.figure:first-child { padding-left: 0; }
.figure:last-child { border-right: 0; }
.figure__value {
  font-family: var(--font-display); font-stretch: 87.5%; font-weight: 800;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.figure__value small { font-size: .5em; font-weight: 700; margin-left: .15em; }
.figure__label { font-size: .95rem; color: var(--ink); }
.figure__note { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 900px) {
  .figure-row { grid-template-columns: 1fr 1fr; }
  .figure { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .figure:nth-child(odd) { border-right: 1px solid var(--line); }
  .figure:nth-child(even) { padding-left: 1.2rem; }
}
@media (max-width: 480px) {
  .figure-row { grid-template-columns: 1fr; }
  .figure, .figure:nth-child(odd), .figure:nth-child(even) { border-right: 0; padding-left: 0; }
}
.sources { font-size: .8rem; color: var(--muted); max-width: 60rem; }
.sources a { color: var(--muted); }

/* Liste de technologies duales */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .03em;
  border: 1px solid var(--line); background: var(--white); padding: .35rem .7rem; border-radius: 3px;
}
.section--navy .tags li { background: transparent; border-color: rgba(169,182,208,.4); color: var(--on-navy); }

/* Étapes (séquence réelle) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps > li { position: relative; padding: 1.4rem 1.4rem 1.4rem 0; border-top: 2px solid var(--gold); display: grid; gap: .5rem; align-content: start; min-width: 0; }
.steps > li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.section--navy .steps > li + li { border-left-color: rgba(169,182,208,.25); }
.steps > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .85rem; color: var(--gold); font-weight: 500;
}
@media (max-width: 860px) {
  .steps, .steps--4 { grid-template-columns: 1fr; }
  .steps > li + li { padding-left: 0; border-left: 0; }
}

/* Piliers */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pillar { background: var(--white); border: 1px solid var(--line); padding: 1.6rem; display: grid; gap: .7rem; align-content: start; min-width: 0; }
.pillar ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Appels à l'action */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cta-pair > div { padding: clamp(2rem, 5vw, 3rem); display: grid; gap: 1rem; align-content: start; }
.cta-pair > div:first-child { background: var(--navy); color: var(--on-navy); }
.cta-pair > div:first-child h3 { color: var(--white); }
.cta-pair > div:last-child { background: var(--gold-soft); }
.cta-pair h3 { font-size: var(--step-2); }
@media (max-width: 760px) { .cta-pair { grid-template-columns: 1fr; } }

/* Modules (page services) */
.module { --mod-gap: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 14rem 1fr; gap: var(--mod-gap); }
.module > * { min-width: 0; }
.module__tag { display: grid; gap: .4rem; align-content: start; }
.module__tag .num { font-family: var(--font-display); font-stretch: 87.5%; font-weight: 800; font-size: 4rem; line-height: 1; color: var(--gold); }
.module__body { display: grid; gap: 1.4rem; }
@media (max-width: 760px) { .module { grid-template-columns: 1fr; } .module__tag .num { font-size: 3rem; } }
.callout { border-left: 3px solid var(--gold); background: var(--white); padding: 1.2rem 1.4rem; display: grid; gap: .8rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border: 2px solid var(--gold); transform: rotate(45deg); }

/* Tableau acheteurs */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
th, td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td:first-child { font-family: var(--font-display); font-stretch: 87.5%; font-weight: 700; font-size: 1.1rem; color: var(--navy); white-space: nowrap; }
td.num { font-family: var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Pays */
.countries { columns: 3 14rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.countries li { break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.countries .year { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Fondateur */
.portrait { display: grid; gap: .6rem; }
.portrait img { width: 100%; border: 1px solid var(--line); }
.portrait figcaption { font-size: .8rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.timeline li > * { min-width: 0; }
.timeline .when { font-family: var(--font-mono); font-size: .85rem; color: var(--gold); font-weight: 500; padding-top: .15rem; }
.timeline .what { display: grid; gap: .45rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--gold); }
.keyfacts div { padding: 1rem 1rem 0 0; display: grid; gap: .2rem; }
.keyfacts strong { font-family: var(--font-display); font-stretch: 87.5%; font-size: 2rem; line-height: 1; color: var(--white); }
.keyfacts span { font-size: .9rem; color: var(--on-navy-muted); }
@media (max-width: 520px) { .keyfacts { grid-template-columns: 1fr; } .keyfacts div { padding-bottom: .6rem; } }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 2rem; max-width: 52rem; }
.form fieldset { border: 1px solid var(--line); background: var(--white); padding: 1.4rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.form legend { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-weight: 500; padding: 0 .4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-2 > * { min-width: 0; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #b9c3d6; border-radius: 4px; padding: .65rem .75rem;
}
textarea { min-height: 7rem; resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.product { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .8rem; }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product__head h4 { font-family: var(--font-mono); font-stretch: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.product-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.counter { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.consent input { margin-top: .3rem; flex: none; }
.form-msg { padding: .9rem 1.1rem; border-left: 3px solid var(--navy); background: var(--white); font-size: .95rem; }
.form-msg--error { border-left-color: var(--danger); color: var(--danger); }
.hidden-field { position: absolute; left: -9999px; }

/* Contact */
.contact-card { display: grid; gap: 1.2rem; align-content: start; }
.contact-line { display: grid; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-line .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-line .value { font-size: 1.15rem; font-weight: 600; color: var(--navy); word-break: break-word; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .92rem; }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; display: grid; gap: .5rem; align-content: start; }
.footer-grid img { height: 44px; width: auto; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(169,182,208,.25); padding-top: 1.2rem; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Bannière d'aperçu */
.preview-banner { background: var(--gold-soft); color: var(--navy-deep); font-size: .85rem; }
.preview-banner .wrap { padding-block: .5rem; }

/* Photos dans le contenu */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.photo-row figure, .gallery figure, .photo-dark { margin: 0; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-row--duo { grid-template-columns: 1.5fr .673fr; max-width: 52rem; margin-inline: auto; }
.photo-row--duo img { aspect-ratio: auto; height: auto; }
.photo-row figcaption, .gallery figcaption { font-size: .8rem; color: var(--muted); }
.photo-dark img { width: 100%; }
.photo-dark figcaption { font-size: .8rem; color: var(--on-navy-muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.2rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 820px) { .photo-row, .gallery { grid-template-columns: 1fr 1fr; } .photo-row--duo { grid-template-columns: 1.5fr .673fr; } }
@media (max-width: 520px) { .photo-row, .gallery { grid-template-columns: 1fr; } .photo-row--duo img { max-width: 22rem; } }
.step-list { list-style: disc; margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }

/* Rubriques numérotées (page services) */
.rubriques { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: rub; }
.rubriques > li { display: grid; gap: .8rem; padding: 1.6rem 0 1.6rem 3.4rem; border-top: 1px solid var(--line); position: relative; min-width: 0; }
.rubriques > li::before {
  counter-increment: rub; content: counter(rub, decimal-leading-zero);
  position: absolute; left: 0; top: 1.75rem;
  font-family: var(--font-mono); font-size: .9rem; color: var(--gold); font-weight: 500;
}
.rubriques h3 { font-size: var(--step-2); }
.rubriques .pillar h4 { font-family: var(--font-display); font-stretch: 87.5%; font-size: var(--step-1); font-weight: 700; margin: 0; }
.rubriques .pillar { background: var(--paper); }
@media (max-width: 560px) { .rubriques > li { padding-left: 0; padding-top: 2.8rem; } .rubriques > li::before { top: 1.4rem; } }
@media (max-width: 820px) and (min-width: 521px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfacts div { padding-bottom: .8rem; } }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .gallery--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery--4 { grid-template-columns: 1fr; } }
/* Colonne de gauche de la Partie 1 : médaillon et photo calés sur les rubriques */
.side { position: absolute; left: calc(-14rem - var(--mod-gap)); width: 14rem; margin: 0; }
.side--star { top: 0; transform: translateY(-46%); display: flex; justify-content: center; }
.side--mid { top: 50%; transform: translateY(-50%); }
.medaillon { width: 100%; max-width: 12rem; }
@media (max-width: 760px) {
  .side { position: static; width: auto; transform: none; }
  .side--star { justify-content: flex-start; }
  .medaillon { max-width: 8rem; }
}
