/* Syrma — feuille de style unique. Aucune ressource externe (polices système). */

:root {
  --ink: #14263a;        /* bleu encre : texte, titres */
  --ink-soft: #3d4f62;   /* texte secondaire */
  --paper: #f5f7f6;      /* fond */
  --white: #ffffff;
  --sante: #b4561f;      /* orange du logo : accent, pôle santé */
  --sante-wash: #f7eae1;
  --numerique: #2c4f8a;  /* bleu : pôle numérique */
  --numerique-wash: #e3e9f3;
  --line: #d5ddda;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--numerique); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--sante); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ink); text-decoration: none;
}
.brand img { height: 3rem; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.45rem 0.8rem; cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.8rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 0.98rem;
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sante); border-radius: 0; }
.site-nav .nav-cta a { background: var(--ink); color: var(--white); }
.site-nav .nav-cta a:hover { background: var(--sante); }

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sante); }
}

/* ---------- Héros d'accueil : les deux pôles ---------- */

.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-intro { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-intro h1 { max-width: 22ch; text-wrap: balance; }
.hero-intro .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

.poles { display: grid; grid-template-columns: 1fr 1fr; }
.pole {
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  color: var(--white);
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 17rem;
}
.pole-sante { background: var(--sante); }
.pole-numerique { background: var(--numerique); }
.pole .pole-name {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1; margin: 0 0 0.75rem;
}
.pole p { color: rgba(255,255,255,0.88); margin: 0; max-width: 40ch; }
.pole .pole-link {
  margin-top: 1.25rem; color: var(--white); font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.25em;
}
.pole-link:hover { color: var(--white); text-decoration-thickness: 2px; }

@media (max-width: 40rem) {
  .poles { grid-template-columns: 1fr; }
  .pole { min-height: 13rem; }
}

/* ---------- En-tête de page intérieure ---------- */

.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { font-size: 1.15rem; color: var(--ink-soft); }
.page-head.is-sante { border-top: 6px solid var(--sante); }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: var(--white); }
.section-head { margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); }

/* Grille de compétences : filets en tête, pas de cartes */
.grid { display: grid; gap: 2rem 2.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }

.item { border-top: 2px solid var(--ink); padding-top: 1rem; }
.item h3 { margin-bottom: 0.4em; }
.item p { color: var(--ink-soft); margin: 0; }
.item.tag-sante { border-top-color: var(--sante); }
.item.tag-numerique { border-top-color: var(--numerique); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.list-plain li:last-child { border-bottom: 0; }

/* Mise en avant (offres) */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 3rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature .price { font-family: var(--serif); font-size: 1.5rem; color: var(--sante); margin: 0.25rem 0 1rem; }
@media (max-width: 48rem) { .feature { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Réalisations */
.cases { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.cases:first-of-type { border-top: 0; padding-top: 0; }
.cases h2 { font-size: 1.5rem; }
.cases ul { margin: 0; padding-left: 1.1rem; }
.cases li { margin-bottom: 0.9rem; color: var(--ink-soft); max-width: 70ch; }
@media (max-width: 48rem) { .cases { grid-template-columns: 1fr; } }

/* Équipe */
.person { border-top: 2px solid var(--ink); padding-top: 1rem; }
.person .role { color: var(--sante); font-weight: 600; margin-bottom: 0.75rem; }
.person p { color: var(--ink-soft); }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2rem 2.5rem; }
.news article { border-top: 1px solid var(--line); padding-top: 1rem; }
.news time { font-size: 0.9rem; color: var(--ink-soft); }
.news h3 { font-size: 1.15rem; margin-top: 0.35rem; }
.news p { color: var(--ink-soft); font-size: 0.98rem; }

/* Bandeau contact */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cta-band h2 { margin: 0; max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0.5rem 0 0; }

.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 6px;
  background: var(--sante); color: var(--white); font-weight: 600; text-decoration: none;
  border: 2px solid var(--sante);
}
.btn:hover { background: var(--white); color: var(--sante); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.cta-band .btn:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 2rem 2.5rem; }
.contact-grid h3 { font-size: 1.05rem; font-family: var(--sans); color: var(--ink-soft); font-weight: 600; margin-bottom: 0.35rem; }
.contact-grid p { font-size: 1.15rem; }
address { font-style: normal; }

.note { background: var(--sante-wash); border-left: 4px solid var(--sante); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 0.95rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h2 { font-size: 1rem; font-family: var(--sans); color: var(--ink); margin-bottom: 0.5rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* ---------- Page Cybermed Guardian ---------- */

.cg-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 7vw, 5rem) 0; }
.cg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.cg-hero h1 { max-width: 18ch; }
.cg-hero .lede { font-size: 1.15rem; color: var(--ink-soft); }
.cg-kicker { color: var(--sante); font-weight: 600; margin-bottom: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
@media (max-width: 52rem) { .cg-hero-grid { grid-template-columns: 1fr; } }

.badges { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badges li { font-size: 0.88rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--sante-wash); color: var(--ink); }
.badges-light { margin: 0; }
.badges-light li { background: rgba(255,255,255,0.12); color: var(--white); }

.status-panel { background: var(--ink); color: var(--white); border-radius: 14px; padding: 1.5rem; }
.status-top { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; margin-bottom: 1.25rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 4px rgba(76,195,138,0.25); }
.status-panel dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.12); border-radius: 8px; overflow: hidden; }
.status-panel dl > div { background: var(--ink); padding: 0.9rem 1rem; }
.status-panel dt { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.status-panel dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.5rem; }
.status-foot { margin: 1rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.cg-band { background: var(--sante); color: var(--white); }
.cg-band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 2rem; padding-bottom: 2rem; }
.cg-band p { margin: 0; color: rgba(255,255,255,0.9); }
.cg-band .cg-band-title { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 0.25rem; }

.cg-closing { margin-top: 2.25rem; font-family: var(--serif); font-size: 1.25rem; max-width: 50ch; }

.tab-list { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tab-list button { font: inherit; background: none; border: 0; padding: 0.7rem 1rem; color: var(--ink-soft); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--sante); }
.tab-list button:hover { color: var(--ink); }
.tab-panel { max-width: 46rem; }
.tab-note { color: var(--ink-soft); margin-top: 1.25rem; }

.blocks .block { border: 1px solid var(--line); border-top: 4px solid var(--sante); border-radius: 0 0 10px 10px; padding: 1.5rem; background: var(--white); }
.block-sub { color: var(--sante); font-weight: 600; margin-bottom: 0.75rem; }
.block p:last-child { color: var(--ink-soft); margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.steps p { color: var(--ink-soft); margin: 0; }

.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 2rem 4rem; align-items: center; }
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.price-big { font-family: var(--serif); font-size: 3.25rem; line-height: 1; margin: 0; color: var(--ink); }
.price-unit { color: var(--ink-soft); margin: 0.4rem 0 1.25rem; }
.price-box .btn { margin-top: 1.25rem; width: 100%; text-align: center; }
@media (max-width: 48rem) { .price-wrap { grid-template-columns: 1fr; } }

.faq-wrap { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sante); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: 0 0 1.1rem; }

.cg-logo { width: min(100%, 18rem); height: auto; margin: 0 0 1.5rem; }
.consultants { margin-top: 2.5rem; }

/* Encarts d'accueil aux couleurs du logo Cybermed Guardian */
.pole-sante { background: #e4692a; color: #0c1d3a; }
.pole-sante p { color: #0c1d3a; }
.pole-sante .pole-link, .pole-sante .pole-link:hover { color: #0c1d3a; }
.pole-numerique { background: #17305c; }
.pole-sante:focus-visible { outline-color: #17305c; }

.person-photo { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.portrait { width: 100%; height: auto; border-radius: 10px; }
.person-text h3 { margin-top: 0; }
@media (max-width: 44rem) { .person-photo { grid-template-columns: 1fr; } .portrait { max-width: 15rem; } }

.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--sante); margin: -0.2em 0 1.25rem; }

/* Sélecteur de langue */
.site-nav .lang-switch a { border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.45rem 0.65rem; margin-left: 0.25rem; }
.site-nav .lang-switch a:hover { border-color: var(--ink); background: var(--white); }
@media (max-width: 52rem) { .site-nav .lang-switch a { display: inline-block; margin: 0.5rem 0 0; } }

/* Page Références */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0 2.5rem; }
.refs li { border-top: 1px solid var(--line); padding: 0.9rem 0; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ref-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.ref-sub { font-size: 0.92rem; color: var(--ink-soft); }
.team-member { margin-top: 2.5rem; }
