/* =========================================================================
   SYNERGIE SHORE — Feuille de style globale
   Charte : institutionnelle, sobre, profession réglementée.
   Bleu nuit + accent doré discret + sérif pour les titres (rigueur).
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy:        #0E2A47;
  --navy-deep:   #08203A;
  --navy-soft:   #1C3D5E;
  --gold:        #B8924F;
  --gold-soft:   #CBA968;
  --ink:         #1A2330;
  --slate:       #4A5568;
  --slate-light: #6B7686;
  --bg:          #FBFAF7;
  --surface:     #FFFFFF;
  --surface-alt: #F4F2EC;
  --line:        #E5E2DB;
  --line-strong: #CFCABF;
  --success:     #1E6E5C;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(8, 32, 58, .06);
  --shadow-md: 0 6px 24px rgba(8, 32, 58, .08);
  --shadow-lg: 0 16px 48px rgba(8, 32, 58, .12);

  --radius:    4px;
  --radius-lg: 8px;

  --container: 1180px;
  --gap:       clamp(1.5rem, 4vw, 3rem);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 3. Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); }
h4 { font-size: 1.08rem; }
p  { color: var(--slate); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}
.lead { font-size: 1.16rem; color: var(--slate); max-width: 60ch; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--navy { background: var(--navy); color: #E8EDF3; }
.section--navy h2, .section--navy h3 { color: #FFFFFF; }
.section--navy p { color: #B9C6D6; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #f1efe8; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  border: 1.5px solid var(--gold);
}
/* Logo officiel — symbole « barres ascendantes ». Les barres héritent de currentColor
   (navy sur fond clair, blanc sur fond sombre) ; la barre haute et la base restent dorées. */
.brand__logo { display: inline-flex; width: 42px; height: 42px; flex: 0 0 auto; color: var(--navy); }
.brand__logo svg { width: 100%; height: 100%; display: block; }
.site-footer .brand__logo, .footer__brand .brand__logo, .section--navy .brand__logo { color: #fff; }
.brand__name { font-family: var(--serif); font-weight: 300; font-size: 1.24rem; color: var(--navy); letter-spacing: .03em; }
.brand__name span { color: var(--gold); }
.brand__tag { display: block; font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); margin-top: -2px; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .96rem; font-weight: 500; color: var(--slate); transition: color .15s; position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--navy); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--gold);
}
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; background: none; border: none; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

@media (max-width: 940px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--surface); padding: 1.6rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__trust { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2rem; }
.hero__trust div strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1; }
.hero__trust div span { font-size: .85rem; color: var(--slate-light); }

.hero__panel {
  background: var(--navy); color: #E8EDF3; border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow-lg); position: relative;
  border: 1px solid var(--navy-soft);
}
.hero__panel h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.4rem; }
.hero__panel .row { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero__panel .row:last-child { border-bottom: none; }
.hero__panel .row span { color: #9DB0C5; font-size: .92rem; }
.hero__panel .row b { font-family: var(--serif); color: #fff; font-size: 1.05rem; }
.hero__panel .row b.save { color: var(--gold-soft); }

/* ---------- 8. Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--radius); background: var(--surface-alt);
  display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--navy);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.card p { font-size: .96rem; }

.card--accent { border-top: 3px solid var(--gold); }

/* ---------- 9. Tableaux comparatifs ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 540px; }
table.compare th, table.compare td { padding: .95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--surface-alt); font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 600; }
table.compare tbody td { font-size: .98rem; }
table.compare tbody td:first-child { color: var(--ink); font-weight: 600; }
table.compare td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compare tr:last-child td { border-bottom: none; }
table.compare .col-fr { color: var(--slate); }
table.compare .col-ma { color: var(--navy); font-weight: 600; }
table.compare .col-save { color: var(--success); font-weight: 700; }
table.compare tfoot td { background: var(--navy); color: #fff; font-weight: 600; }
table.compare tfoot td.num { font-family: var(--serif); }

/* ---------- 10. Listes à puces qualifiées ---------- */
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--slate); }
.checklist li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 13px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 13px no-repeat;
}
.checklist li strong { color: var(--ink); }

/* ---------- 11. Bandeau / CTA final ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: #B9C6D6; max-width: 56ch; margin: 0 auto 2rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9DB0C5; padding: 3.5rem 0 1.8rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.site-footer a { color: #9DB0C5; transition: color .15s; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .footer__links li { margin-bottom: .6rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: #8294AB; margin-top: 1rem; font-size: .9rem; max-width: 34ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #6E809A; }

/* ---------- 12b. Comparatif de coût (pourcentage) ---------- */
.cmp-bars { display: grid; gap: 1.1rem; }
.cmp-bar__label { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; margin-bottom: .4rem; }
.cmp-bar__track { height: 16px; border-radius: 100px; overflow: hidden; }
.cmp-bar__fill { height: 100%; border-radius: 100px; transition: width .8s cubic-bezier(.2,.7,.2,1); }

/* Variante fond clair */
.cmp-light .cmp-bar__label span { color: var(--slate); }
.cmp-light .cmp-bar__label b { color: var(--navy); font-family: var(--serif); font-size: 1.05rem; }
.cmp-light .cmp-bar__track { background: var(--surface-alt); }
.cmp-light .cmp-bar__fill--fr { background: #8493A6; }
.cmp-light .cmp-bar__fill--ma { background: var(--gold); }

/* Variante fond navy (hero / sections sombres) */
.cmp-dark .cmp-bar__label span { color: #9DB0C5; }
.cmp-dark .cmp-bar__label b { color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.cmp-dark .cmp-bar__track { background: rgba(255,255,255,.12); }
.cmp-dark .cmp-bar__fill--fr { background: #5E7791; }
.cmp-dark .cmp-bar__fill--ma { background: var(--gold); }

/* Chiffre-clé (jauge) */
.cmp-figure { text-align: center; }
.cmp-figure .big { display: block; font-family: var(--serif); font-weight: 700; line-height: 1; font-size: clamp(3rem, 9vw, 4.6rem); }
.cmp-dark .cmp-figure .big { color: var(--gold-soft); }
.cmp-light .cmp-figure .big { color: var(--navy); }
.cmp-figure .cap { display: block; font-size: .9rem; margin-top: .5rem; }
.cmp-dark .cmp-figure .cap { color: #9DB0C5; }
.cmp-light .cmp-figure .cap { color: var(--slate); }

/* ---------- 12c. Accordéon (contenu sur demande) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion + .accordion { margin-top: .8rem; }
.accordion > summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--navy);
  transition: background .15s;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.6rem; line-height: 1; color: var(--gold); flex: 0 0 auto;
}
.accordion[open] > summary::after { content: "\2212"; }
.accordion > summary:hover { background: var(--surface-alt); }
.accordion__body { padding: .4rem 1.5rem 1.6rem; }

/* ---------- 13. Utilitaires ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 100px; background: var(--surface-alt); color: var(--navy); border: 1px solid var(--line); }
.badge--gold { background: rgba(184,146,79,.12); color: var(--gold); border-color: rgba(184,146,79,.3); }
.note { font-size: .82rem; color: var(--slate-light); font-style: italic; }
.anchor-offset { scroll-margin-top: 90px; }

/* Animations d'entrée discrètes */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 14. Ajustements ---------- */
/* Corps de texte justifié (césure auto pour éviter les lézardes) */
main p, main .lead { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.section-head.center p, .section-head.center .lead,
.cta-band p, .text-center p { text-align: center; }

/* Cartes blanches sur fond navy : texte lisible (titres navy, corps slate) */
.section--navy .card { color: var(--ink); }
.section--navy .card h3, .section--navy .card h4 { color: var(--navy); }
.section--navy .card p { color: var(--slate); }
