/* ==========================================================================
   ComptaPaie — feuille de style
   Aucune police chargée depuis un service tiers (RGPD + vitesse) : Montserrat est auto-hébergée. Aucun framework.
   ========================================================================== */

:root {
  --navy: #0d2440;
  --navy-2: #143559;
  --ink: #16243a;
  --muted: #526078;
  --teal: #0b7a6b;
  --teal-2: #0f9d8a;
  --teal-soft: #e6f5f2;
  --amber: #f4b33f;
  --amber-soft: #fff5df;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --danger: #b3261e;
  --ok: #17693a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 64, .06), 0 1px 3px rgba(13, 36, 64, .08);
  --shadow: 0 10px 30px -12px rgba(13, 36, 64, .25);
  --maxw: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.5em; height: 1.5em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(2rem, 4.5vw, 3.5rem) 0; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.section--dark { background: var(--navy); color: #d6e0ee; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--amber); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 1.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: .5rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 122, 107, .7); }
.btn--primary:hover { background: #096659; color: #fff; }
.btn--amber { background: var(--amber); color: #2a1d00; }
.btn--amber:hover { background: #ffc35b; color: #2a1d00; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

:root { --brand-blue: #1c4f9c; --brand-green: #1f9d55; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--brand-blue); font-weight: 800; letter-spacing: -.02em; }
.logo:hover { color: var(--brand-blue); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; gap: .2rem; line-height: 1; }
.logo-name { font-size: 1.5rem; }
.logo .i { color: var(--brand-green); }
.logo-tag { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.logo-tag::before, .logo-tag::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 12px;
  color: var(--navy); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.primary-nav {
  position: absolute; inset: 72px 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 1rem 1rem 1.5rem;
  display: none; flex-direction: column; gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a { text-decoration: none; }
.primary-nav a:not(.btn) {
  color: var(--navy); font-weight: 600; padding: .8rem .5rem; border-radius: 10px;
}
.primary-nav a:not(.btn):hover { background: var(--teal-soft); color: var(--teal); }
.primary-nav a[aria-current="page"]:not(.btn) { color: var(--teal); background: var(--teal-soft); }
.primary-nav .btn { margin-top: .5rem; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: .15rem;
    background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .primary-nav a:not(.btn) { padding: .5rem .8rem; font-size: .98rem; }
  .primary-nav .btn { margin: 0 0 0 .75rem; padding: .65rem 1.2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(15, 157, 138, .35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(244, 179, 63, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0a1c33 100%);
  color: #d6e0ee;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--amber); }
.hero .lead { color: #b9c8dc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.75rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; color: #b9c8dc; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges .icon { color: var(--amber); width: 1.2em; height: 1.2em; }
.hero-visual { max-width: 540px; margin-inline: auto; width: 100%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0a1c33 100%);
  color: #b9c8dc; padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 157, 138, .4), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: .6rem; }
.page-hero p { max-width: 62ch; font-size: 1.15rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: #8ea3bf; }
.breadcrumb a { color: #b9c8dc; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { display: block; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd6e4; }
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 700; color: var(--teal); }
.card .more .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.card:hover .more .icon { transform: translateX(4px); }

.ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--teal-soft); color: var(--teal);
}
.ico .icon { width: 28px; height: 28px; }
.ico--amber { background: var(--amber-soft); color: #9a6300; }

.checklist { list-style: none; display: grid; gap: .6rem; margin: 1rem 0 0; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--teal-2); width: 1.3em; height: 1.3em; margin-top: .2em; }

/* Pourquoi nous */
.feature { display: flex; gap: 1.1rem; }
.feature h3 { margin-top: 0; margin-bottom: .3rem; }
.feature p { color: var(--muted); margin: 0; }

/* Étapes */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--amber); color: #2a1d00; font-weight: 800; font-size: 1.1rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: #b9c8dc; font-size: .98rem; }

/* Pour qui */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; }
.chips li {
  padding: .6rem 1.1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm);
}

/* Bloc split */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--rev > :first-child { order: 2; } }

/* Détail service */
.service-block { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 280px 1fr; gap: 3rem; } }
.service-block .two-col { display: grid; gap: 0 2.5rem; }
@media (min-width: 700px) { .service-block .two-col { grid-template-columns: 1fr 1fr; } }
.service-block h2 { font-size: 1.7rem; }
.tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--amber-soft); color: #7a4f00; font-size: .8rem; font-weight: 700; }

/* Formules */
.plan { display: flex; flex-direction: column; }
.plan .checklist { margin-bottom: 1.5rem; flex: 1; }
.plan--featured { border: 2px solid var(--teal); position: relative; }
.plan--featured::before {
  content: "Le plus choisi"; position: absolute; top: -13px; left: 1.5rem;
  background: var(--teal); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px;
}
.plan .price { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: .25rem 0 0; }

/* FAQ */
.faq { max-width: 1000px; margin-inline: auto; display: grid; gap: .8rem; align-items: start; }
@media (min-width: 800px) { .faq { grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.4rem; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details[open] { border-color: #b7dfd8; }
.faq .answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Bandeau CTA */
.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, #0a5f77 100%);
  color: #e8fbf8; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; font-size: 1.1rem; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
label { display: block; font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
label .opt { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: .8rem 1rem; border: 1.5px solid #c5d0de; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 157, 138, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin: .35rem 0 0; min-height: 0; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--teal); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 600; margin-bottom: 1.25rem; }
.alert[hidden] { display: none; }
.alert--ok { background: #e7f6ec; color: var(--ok); border: 1px solid #b6e0c3; }
.alert--err { background: #fdecea; color: var(--danger); border: 1px solid #f3b9b4; }

.contact-list { list-style: none; display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.contact-list .ico .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { font-weight: 600; }

/* ---------- Simulateur ---------- */
.sim { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .sim { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--muted); }
.seg input:checked + label { background: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.result-card { background: var(--navy); color: #d6e0ee; border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.25rem); }
.result-main { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; color: #fff; line-height: 1.1; margin: .25rem 0 .2rem; }
.result-label { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-weight: 700; }
.result-rows { margin: 1.5rem 0 0; padding: 0; display: grid; gap: .1rem; }
.result-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.result-rows dt { color: #b9c8dc; }
.result-rows dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.note { font-size: .9rem; color: var(--muted); }
.result-card .note { color: #93a6c0; margin: 1.25rem 0 0; }

/* ---------- Texte juridique ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35rem; }
.todo { background: var(--amber-soft); border-bottom: 2px dashed #d9a13a; padding: 0 .3em; border-radius: 3px; font-weight: 600; color: #6b4300; }

/* ---------- Pied de page ---------- */
.site-footer { background: #091a2f; color: #9fb1c9; padding: 4rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #cfdcec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .logo { color: #fff; }
.site-footer .logo .i { color: #3ddc84; }
.site-footer .logo-tag { color: #9fb1c9; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .09em; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.footer-about { margin-top: 1rem; max-width: 36ch; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .9rem;
}

/* ---------- Téléphone, recrutement, fichiers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.header-right { display: flex; align-items: center; gap: .6rem; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal); color: #fff;
}
.header-call:hover { background: #096659; color: #fff; }
.header-call .icon { width: 22px; height: 22px; }
@media (min-width: 980px) { .header-right { display: none; } }

.primary-nav .icon { width: 1.05em; height: 1.05em; }
/* Barre supérieure : coordonnées + bandeau orange « Stage / Emploi » */
:root { --orange: #d1410e; }
.site-header { transition: transform .3s ease, border-color .2s, box-shadow .2s; }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.navbar { position: relative; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; font-size: .93rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 42px; }
.topbar-info { display: none; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar-info li { display: flex; align-items: center; gap: .55rem; padding: 0 1.6rem 0 0; margin-right: 1.6rem; border-right: 1px solid var(--line); }
.topbar-info li:last-child { border-right: 0; margin-right: 0; }
.topbar-info .icon { color: var(--orange); width: 1.2em; height: 1.2em; }
.topbar-info a { color: inherit; text-decoration: none; }
.topbar-info a:hover { color: var(--orange); }

.topbar-cta {
  position: relative; isolation: isolate; flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; padding: .6rem 1rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: .8rem; line-height: 1.25; text-align: center;
}
.topbar-cta::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw 0 -100vw; background: var(--orange); transition: background-color .15s; }
.topbar-cta:hover { color: #fff; }
.topbar-cta:hover::before { background: #b63508; }
.topbar-cta-text { display: inline-flex; align-items: center; gap: .55rem; }
.topbar-cta .icon { width: 1.35em; height: 1.35em; }
@media (min-width: 980px) {
  .topbar-info { display: flex; }
  .topbar-cta { flex: none; padding: 0 2rem 0 3rem; font-size: .9rem; }
  .topbar-cta::before { inset: 0 -100vw 0 0; clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%); }
}

.cta-band--navy { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #d6e0ee; }
.cta-band--navy .eyebrow { color: var(--amber); margin-bottom: .4rem; }
.cta-band .cta-tel { color: #fff; font-weight: 700; white-space: nowrap; }
.cta-band .btn .icon { width: 1.2em; height: 1.2em; }

address { font-style: normal; }
.site-footer address { color: #9fb1c9; }
.contact-list address { margin: 0; }
.contact-list .ico { align-self: flex-start; }

label .req { font-weight: 500; color: var(--muted); }
input[type="file"] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: .55rem; border: 1.5px dashed #9fb0c6; border-radius: 12px; cursor: pointer;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; margin-right: .9rem; padding: .55rem 1.1rem; cursor: pointer;
  background: var(--teal-soft); color: var(--teal); border: 0; border-radius: 999px;
}
input[type="file"]:hover { border-color: var(--teal); }
input[type="file"][aria-invalid="true"] { border-color: var(--danger); }

/* ---------- Accueil : diaporama (2 photos + 2 textes), comme le slider de l'ancien site ---------- */
:root { --orange-light: #ff7a3d; }
.hero { padding: 0; }
.hero-slides { position: relative; display: grid; overflow: hidden; background: var(--navy); }
.hero-slide {
  grid-area: 1 / 1; position: relative; z-index: 1; display: flex; align-items: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(5rem, 10vw, 7.5rem);
  visibility: hidden; transform: translateX(100%);
  transition: transform .7s cubic-bezier(.65, .05, .25, 1), visibility 0s linear .7s;
}
.hero-slide > .container { width: min(100% - 2rem, var(--maxw)); }
.hero-slide.is-active { z-index: 2; visibility: visible; transform: none; transition-delay: 0s, 0s; }
.hero-slide.is-before { transform: translateX(-100%); }
.hero-slide.is-after { transform: translateX(100%); }
.hero-slide.no-anim { transition: none !important; }

.hero-slide-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.11); }
.hero-slide::after { /* voile sombre pour la lisibilité du texte */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(8, 22, 40, .92) 0%, rgba(10, 28, 51, .76) 45%, rgba(10, 28, 51, .40) 100%);
}
.hero::after { z-index: 3; }
.hero-grid--single { grid-template-columns: 1fr !important; }
.slide-copy { max-width: 680px; }

.hero .eyebrow { color: var(--orange-light); }
.eyebrow--dash { color: #e8eef7 !important; }
.eyebrow--dash > span::before { content: ""; display: inline-block; width: 30px; height: 2px; margin-right: .8rem; vertical-align: middle; background: var(--orange-light); }
.hero-bar { display: block; width: 64px; height: 5px; margin-bottom: 1.1rem; border-radius: 3px; background: var(--orange-light); transform-origin: left center; }

.slide-title { margin: 0 0 1rem; font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; line-height: 1.12; color: #fff; text-transform: capitalize; letter-spacing: -.01em; }
.slide-text { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; color: #e3ebf6; max-width: 34em; line-height: 1.55; }
.btn--upper { text-transform: uppercase; letter-spacing: .06em; }

/* Masque : chaque ligne sort d'une fente et remonte de bas en haut */
.mask { overflow: hidden; }
h1 .mask, .eyebrow.mask, p.mask, h2.mask { display: block; }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
.hero h1 .mask { padding-bottom: .12em; margin-bottom: -.12em; }
.slide-title.mask { padding-bottom: .14em; }
.hero-cta.mask { display: block; padding: 6px 0; margin: 1.5rem 0 1.1rem; }
.hero-cta > div { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Flèches, points, pause */
.hero-arrow {
  position: absolute; z-index: 4; top: 50%; width: 50px; height: 50px; margin-top: -25px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(8, 22, 40, .45); color: #fff;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow:active { transform: scale(.94); }
.hero-arrow .icon { width: 22px; height: 22px; }
.hero-arrow--prev { left: 1rem; }
.hero-arrow--next { right: 1rem; }
@media (min-width: 900px) { .hero-slide > .container { padding-inline: 3.75rem; } }
@media (max-width: 899px) {
  .hero-arrow { top: auto; bottom: .6rem; margin: 0; width: 42px; height: 42px; }
}
.hero-bg-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 1.1rem; display: flex; justify-content: center; align-items: center; gap: .55rem; pointer-events: none; }
.hero-bg-controls > * { pointer-events: auto; }
.bg-dot { width: 11px; height: 11px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background-color .3s; }
.bg-dot.is-active { width: 30px; background: var(--orange-light); }
.bg-pause { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: .3rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(8, 22, 40, .4); color: #fff; cursor: pointer; }
.bg-pause:hover { background: rgba(255, 255, 255, .18); }
.bg-pause .icon { width: 14px; height: 14px; }

/* Poeme vertical : chaque vers sort d'une fente et remonte du bas, l'un apres l'autre */
.verse { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.verse > span { display: block; }
.poem { margin-top: 0; }
.lead.poem { margin: 1.1rem 0 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Les animations ne se jouent que sur la diapositive active : elles repartent a chaque changement (cycle de 3 s) */
  .hero-slide.is-active .hero-slide-bg { animation: kenburns 4s ease-out both; }
  @keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.11); } }
  .hero-slide.is-active .hero-bar { animation: bar-in .5s .1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes bar-in { from { transform: scaleX(0); } to { transform: none; } }
  .hero-slide.is-active .mask > *, .hero-slide.is-active .verse > span { animation: line-up .6s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes line-up { from { transform: translateY(118%); } to { transform: none; } }
  .hero-slide.is-active .mask.d1 > * { animation-delay: .2s; }
  .hero-slide.is-active .mask.d5 > * { animation-delay: 1s; }
  .hero-slide.is-active .mask.d6 > * { animation-delay: 1.15s; }
  .hero-slide.is-active .poem-a .verse:nth-child(1) > span { animation-delay: 0.3s; }
  .hero-slide.is-active .poem-a .verse:nth-child(2) > span { animation-delay: 0.37s; }
  .hero-slide.is-active .poem-a .verse:nth-child(3) > span { animation-delay: 0.44s; }
  .hero-slide.is-active .poem-a .verse:nth-child(4) > span { animation-delay: 0.51s; }
  .hero-slide.is-active .poem-a .verse:nth-child(5) > span { animation-delay: 0.58s; }
  .hero-slide.is-active .poem-a .verse:nth-child(6) > span { animation-delay: 0.65s; }
  .hero-slide.is-active .poem-a .verse:nth-child(7) > span { animation-delay: 0.72s; }
  .hero-slide.is-active .poem-a .verse:nth-child(8) > span { animation-delay: 0.79s; }
  .hero-slide.is-active .poem-a .verse:nth-child(9) > span { animation-delay: 0.86s; }
  .hero-slide.is-active .poem-a .verse:nth-child(10) > span { animation-delay: 0.93s; }
  .hero-slide.is-active .poem-b .verse:nth-child(1) > span { animation-delay: 0.62s; }
  .hero-slide.is-active .poem-b .verse:nth-child(2) > span { animation-delay: 0.68s; }
  .hero-slide.is-active .poem-b .verse:nth-child(3) > span { animation-delay: 0.74s; }
  .hero-slide.is-active .poem-b .verse:nth-child(4) > span { animation-delay: 0.8s; }
  .hero-slide.is-active .poem-b .verse:nth-child(5) > span { animation-delay: 0.86s; }
  .hero-slide.is-active .poem-b .verse:nth-child(6) > span { animation-delay: 0.92s; }
  .hero-slide.is-active .poem-b .verse:nth-child(7) > span { animation-delay: 0.98s; }
  .hero-slide.is-active .poem-b .verse:nth-child(8) > span { animation-delay: 1.04s; }
  .hero-slide.is-active .poem-b .verse:nth-child(9) > span { animation-delay: 1.1s; }
  .hero-slide.is-active .poem-b .verse:nth-child(10) > span { animation-delay: 1.16s; }
  .hero-slide.is-active .poem-c .verse:nth-child(1) > span { animation-delay: 0.3s; }
  .hero-slide.is-active .poem-c .verse:nth-child(2) > span { animation-delay: 0.39s; }
  .hero-slide.is-active .poem-c .verse:nth-child(3) > span { animation-delay: 0.48s; }
  .hero-slide.is-active .poem-c .verse:nth-child(4) > span { animation-delay: 0.57s; }
  .hero-slide.is-active .poem-c .verse:nth-child(5) > span { animation-delay: 0.66s; }
  .hero-slide.is-active .poem-c .verse:nth-child(6) > span { animation-delay: 0.75s; }
  .hero-slide.is-active .poem-c .verse:nth-child(7) > span { animation-delay: 0.84s; }
  .hero-slide.is-active .poem-c .verse:nth-child(8) > span { animation-delay: 0.93s; }
  .hero-slide.is-active .poem-c .verse:nth-child(9) > span { animation-delay: 1.02s; }
  .hero-slide.is-active .poem-c .verse:nth-child(10) > span { animation-delay: 1.11s; }
  .hero-slide.is-active .poem-d .verse:nth-child(1) > span { animation-delay: 0.65s; }
  .hero-slide.is-active .poem-d .verse:nth-child(2) > span { animation-delay: 0.72s; }
  .hero-slide.is-active .poem-d .verse:nth-child(3) > span { animation-delay: 0.79s; }
  .hero-slide.is-active .poem-d .verse:nth-child(4) > span { animation-delay: 0.86s; }
  .hero-slide.is-active .poem-d .verse:nth-child(5) > span { animation-delay: 0.93s; }
  .hero-slide.is-active .poem-d .verse:nth-child(6) > span { animation-delay: 1s; }
  .hero-slide.is-active .poem-d .verse:nth-child(7) > span { animation-delay: 1.07s; }
  .hero-slide.is-active .poem-d .verse:nth-child(8) > span { animation-delay: 1.14s; }
  .hero-slide.is-active .poem-d .verse:nth-child(9) > span { animation-delay: 1.21s; }
  .hero-slide.is-active .poem-d .verse:nth-child(10) > span { animation-delay: 1.28s; }
  .hero-slide.is-active .hero-visual { animation: visual-in .7s .6s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes visual-in { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
}

/* ---------- Actualités ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip-btn { font: inherit; font-weight: 700; font-size: .95rem; padding: .5rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip-btn:hover { border-color: var(--teal); color: var(--teal); }
.chip-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.news-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.news-card[hidden] { display: none; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: .85rem; color: var(--muted); }
.tag--fiscal { background: #e6f5f2; color: #085f53; }
.tag--social { background: #e8eefb; color: #23407a; }
.tag--entreprise { background: var(--amber-soft); color: #7a4f00; }
.news-card h3 { margin-top: 0; }
.news-card > p { color: var(--muted); }
.news-card details { margin-top: auto; border-top: 1px solid var(--line); padding-top: .9rem; }
.news-card summary { cursor: pointer; font-weight: 800; color: var(--teal); list-style: none; }
.news-card summary::-webkit-details-marker { display: none; }
.news-card summary::after { content: " ▾"; }
.news-card details[open] summary::after { content: " ▴"; }
.news-card .more-body { margin-top: .9rem; color: var(--ink); }
.news-card .more-body ul { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.news-card .more-body li { margin-bottom: .4rem; }
.news-card .caveat { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--amber); padding-left: .8rem; }
.sources { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 700px) { .sources { grid-template-columns: repeat(3, 1fr); } }
.sources a { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.sources a:hover { border-color: var(--teal); }
.sources .icon { color: var(--teal); }

/* ---------- Offres de nos clients ---------- */
.ads-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .ads-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ads-grid { grid-template-columns: repeat(3, 1fr); } }
.ad-card { display: flex; flex-direction: column; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.ad-card h3 { margin: .3rem 0 0; }
.ad-company { font-weight: 700; color: var(--teal); }
.ad-desc { white-space: pre-line; color: var(--muted); margin: .3rem 0; }
.ad-foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); display: grid; gap: .25rem; }
.ads-empty { text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; color: var(--muted); }
.ads-empty strong { display: block; color: var(--navy); font-size: 1.2rem; margin-bottom: .4rem; }
.ads-empty[hidden] { display: none; }
.steps-inline { list-style: none; counter-reset: st; display: grid; gap: .8rem; margin: 1.2rem 0 0; padding: 0; }
.steps-inline li { counter-increment: st; display: flex; gap: .8rem; align-items: flex-start; }
.steps-inline li::before { content: counter(st); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .9rem; }

/* Menu : 6 liens, on resserre un peu entre 980 et 1140 px */
@media (min-width: 980px) and (max-width: 1140px) {
  .primary-nav a:not(.btn) { padding: .5rem .55rem; font-size: .92rem; }
  .primary-nav .btn { margin-left: .4rem; padding: .6rem 1rem; }
}

/* ---------- Mot du président ---------- */
.president { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .president { grid-template-columns: 340px 1fr; gap: 4.5rem; } }
.president-photo { margin: 0; max-width: 360px; width: 100%; margin-inline: auto; position: relative; isolation: isolate; }
.president-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 6px solid #fff; background: var(--teal-soft);
}
.president-photo::after {
  content: ""; position: absolute; z-index: -1; inset: 18px -14px -14px 18px;
  border-radius: var(--radius-lg); background: var(--orange); opacity: .9;
}
.president-photo figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1.6rem;
  background: rgba(13, 36, 64, .92); color: #d6e0ee; border-radius: 12px; padding: .7rem 1rem; line-height: 1.3; font-size: .9rem;
}
.president-photo figcaption strong { display: block; color: #fff; font-size: 1.05rem; }
.president-quote { margin: 1.25rem 0 1rem; padding: 0 0 0 1.4rem; border-left: 4px solid var(--orange); color: var(--ink); font-size: 1.08rem; }
.president-sign { color: var(--muted); margin-bottom: 1.5rem; }
.president-sign strong { color: var(--navy); font-size: 1.1rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound .big { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; color: var(--teal); line-height: 1; margin: 0; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .grid > .reveal:nth-child(2), .js .news-grid > .reveal:nth-child(2) { transition-delay: .12s; }
.js .grid > .reveal:nth-child(3), .js .news-grid > .reveal:nth-child(3) { transition-delay: .24s; }
.js .grid > .reveal:nth-child(4), .js .news-grid > .reveal:nth-child(4) { transition-delay: .36s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ---------- Bandeau des pages intérieures : le texte remonte au chargement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-hero .breadcrumb { animation: rise-in .9s .05s cubic-bezier(.2, .8, .2, 1) both; }
  .page-hero h1 { animation: rise-in .9s .18s cubic-bezier(.2, .8, .2, 1) both; }
  .page-hero p:not(.breadcrumb) { animation: rise-in .9s .34s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}

/* ---------- Poème du bandeau : tailles resserrées pour que tout tienne à l'écran ---------- */
.hero-slide { padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(4rem, 7vw, 5rem); }
.hero h1.poem { font-size: clamp(1.9rem, 3.9vw, 2.8rem); line-height: 1.14; margin-bottom: .4rem; }
.hero .lead.poem { font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.45; margin-top: .8rem; }
.hero-slide .hero-cta.mask { margin: 1.1rem 0 .8rem; }
.hero-slide .hero-badges { margin-top: 0; }
.slide-title.poem { font-size: clamp(2.1rem, 4.8vw, 3.5rem); line-height: 1.12; }
.slide-text.poem { font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.5; }

/* ==========================================================================
   Police Montserrat (auto-hébergée, licence OFL) pour le nom du logo et les titres de missions
   ========================================================================== */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root { --font-brand: "Montserrat", var(--font); }
.logo-name { font-family: var(--font-brand); font-weight: 600; font-size: 1.6rem; letter-spacing: .005em; }
.logo-tag { font-family: var(--font-brand); font-weight: 500; font-size: .72rem; letter-spacing: .16em; }

/* ==========================================================================
   Missions : cercles interactifs (anneau orange + icône qui se colorise au survol)
   ========================================================================== */
.missions { position: relative; display: grid; gap: 2.75rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .missions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .missions { grid-template-columns: repeat(4, 1fr); }
  /* Deux cercles sur quatre en retrait vers le bas, reliés par un trait pointillé ondulé */
  .missions { padding-bottom: 40px; }
  .mission:nth-child(even) { margin-top: 44px; }
  .missions::before {
    content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='none'%3E%3Cpath d='M125 80C219 80 219 124 312 124C406 124 406 80 500 80C594 80 594 124 688 124C781 124 781 80 875 80' fill='none' stroke='%23ffcdb5' stroke-width='2' stroke-dasharray='7 7' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  }
}

.mission { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none; padding: 0 .35rem; }
.mission:hover { color: inherit; }
.mission:focus-visible { outline-offset: 8px; border-radius: var(--radius-lg); }

.mission-disc {
  position: relative; display: grid; place-items: center; flex: none;
  width: 156px; height: 156px; border-radius: 50%;
  background: #fff; border: 3px solid #ffdccb;
  transition: border-color .35s ease, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, background-color .35s ease;
}
.mission-disc::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 5px, var(--orange-light) 0 5px, transparent 5.5px);
  transition: opacity .3s ease;
}
.mission-svg { width: 74px; height: 74px; overflow: visible; }
.mission-svg .s { fill: none; stroke: #2f3540; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: fill .35s ease, stroke .35s ease; }
.mission-svg .f, .mission-svg .f circle { fill: #c9ced6; transition: fill .35s ease; }
.mission-svg .f2 { fill: #7b828d; }

.mission h3 { margin: 1.5rem 0 .55rem; font-family: var(--font-brand); font-size: 1.12rem; font-weight: 700; transition: color .25s ease; }
.mission p { margin: 0; max-width: 27ch; color: var(--muted); font-size: 1rem; }
.mission .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; color: var(--teal); transition: color .25s ease; }
.mission .more .icon { width: 1.1em; height: 1.1em; transition: transform .25s ease; }

.mission:hover .mission-disc, .mission:focus-visible .mission-disc {
  border-color: var(--orange-light); background: #fffaf6; transform: translateY(-8px) scale(1.05);
  box-shadow: 0 22px 34px -18px rgba(255, 106, 43, .6);
}
.mission:hover .mission-disc::after, .mission:focus-visible .mission-disc::after { opacity: 1; }
.mission:hover .mission-svg .f, .mission:hover .mission-svg .f circle, .mission:focus-visible .mission-svg .f, .mission:focus-visible .mission-svg .f circle { fill: var(--orange-light); }
.mission:hover .mission-svg .f2, .mission:focus-visible .mission-svg .f2 { fill: #e8410a; }
.mission:hover .mission-svg .sf, .mission:focus-visible .mission-svg .sf { stroke: var(--orange-light); }
.mission:hover h3, .mission:focus-visible h3, .mission:hover .more, .mission:focus-visible .more { color: var(--orange); }
.mission:hover .more .icon, .mission:focus-visible .more .icon { transform: translateX(4px); }

@media (prefers-reduced-motion: no-preference) {
  .mission:hover .mission-disc::after, .mission:focus-visible .mission-disc::after { animation: mission-orbit 2.6s linear infinite; }
  .mission:hover .mission-svg { animation: mission-pop .5s cubic-bezier(.2, .8, .2, 1); }
  .js .missions > .reveal:nth-child(2) { transition-delay: .12s; }
  .js .missions > .reveal:nth-child(3) { transition-delay: .24s; }
  .js .missions > .reveal:nth-child(4) { transition-delay: .36s; }
}
@keyframes mission-orbit { to { transform: rotate(360deg); } }
@keyframes mission-pop { 0% { transform: scale(1); } 45% { transform: scale(1.14) rotate(-3deg); } 100% { transform: scale(1); } }

@media (max-width: 480px) {
  .mission-disc { width: 132px; height: 132px; }
  .mission-svg { width: 62px; height: 62px; }
}

/* ---------- Page coworking / domiciliation Marrakech ---------- */
.cw-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .cw-grid { grid-template-columns: 1fr 1fr; } }
.cw-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.cw-card h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.cw-card > p { color: var(--muted); margin-bottom: .6rem; }
.cw-rates { list-style: none; margin: .8rem 0 0; }
.cw-rates li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.cw-rates .cw-label { font-weight: 600; }
.cw-rates .cw-price { font-size: 1.4rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.cw-rates .cw-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cw-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Logo : monogramme CP (image) + nom d'origine, « Expert » en orange comme la 3e barre ---------- */
.logo, .logo:hover { color: #0f2d5e; }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.logo-mark { width: auto; height: 46px; object-fit: contain; }
.logo-tag { color: #e8a21c; }
.logo-tag::before, .logo-tag::after { background: var(--muted); }
.site-footer .logo-tag { color: #f0b93a; }
.site-footer .logo-tag::before, .site-footer .logo-tag::after { background: #9fb1c9; }
@media (max-width: 480px) { .logo-mark { height: 38px; } }

/* ---------- Accueil : diapositive d'ouverture Paris (60 %) | Marrakech (40 %) ---------- */
.hero-slide--duo { padding: 0; align-items: stretch; }
.hero-slide--duo::after { display: none; }
.duo-grid { position: relative; z-index: 1; width: 100%; align-self: stretch; display: grid; grid-template-columns: 1fr; }
.duo-side { position: relative; overflow: hidden; display: flex; }
.duo-side::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.duo-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.duo-copy { position: relative; z-index: 1; width: 100%; }

/* Paris : photo entière (3:2) ; si le bandeau est plus haut, elle se prolonge par un fond flouté de la même photo */
.duo-side--fr { flex-direction: column; justify-content: flex-start; background: #0d1a30; }
.duo-side--fr::before { content: ""; position: absolute; inset: -30px; z-index: 0; background: url("../img/hero-paris.webp") 50% 100% / cover no-repeat; filter: blur(22px) brightness(.75); }
.duo-side--fr .duo-img { position: relative; z-index: 1; inset: auto; flex: none; height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%; -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
.duo-side--fr::after { z-index: 2; background: linear-gradient(180deg, rgba(8, 22, 40, 0) 55%, rgba(8, 22, 40, .8) 100%); }
.duo-copy--fr { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; width: auto; padding: 0 1.25rem 4.25rem; }
.duo-copy--fr .hero-cta.mask { margin: 0 0 .7rem; }
.duo-copy--fr .hero-badges { margin: 0; }

/* Marrakech : texte directement sur la photo, sous les montagnes, en petit */
.duo-side--ma { min-height: 26rem; align-items: flex-end; }
.duo-side--ma .duo-img { object-position: 30% 50%; }
.duo-side--ma::after { background: linear-gradient(180deg, rgba(8, 22, 40, 0) 38%, rgba(8, 22, 40, .55) 62%, rgba(8, 22, 40, .88) 100%); }
.duo-copy--ma { padding: 0 1.25rem 1.6rem; text-align: right; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.duo-copy--ma .eyebrow { font-size: .74rem; letter-spacing: .1em; margin-bottom: .4rem; }
.duo-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 1.4vw + .85rem, 1.85rem); font-weight: 800; line-height: 1.15; color: #fff; }
.duo-title .hl { color: var(--amber); }
.duo-text { margin: 0; font-size: clamp(.86rem, .55vw + .58rem, 1.05rem); font-weight: 600; line-height: 1.45; color: #eef3fa; }
.duo-copy--ma .hero-cta.mask { margin: .8rem 0 0; padding: 4px 0; text-shadow: none; }
.duo-copy--ma .hero-cta > div { gap: .5rem; justify-content: flex-end; }
.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }

@media (max-width: 899px) {
  .duo-side--fr { display: block; background: var(--navy); }
  .duo-side--fr::before { display: none; }
  .duo-side--fr .duo-img { display: block; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .duo-side--fr::after { display: none; }
  .duo-copy--fr { position: relative; padding: 1.25rem 1.25rem 1.6rem; }
}
@media (min-width: 900px) {
  .duo-grid { grid-template-columns: 3fr 2fr; }
  .duo-copy--fr { padding-left: 4.5rem; }
  .duo-side--ma::before { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 4px; background: rgba(255, 255, 255, .85); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .poem-e .verse:nth-child(1) > span { animation-delay: .3s; }
  .hero-slide.is-active .poem-e .verse:nth-child(2) > span { animation-delay: .4s; }
  .hero-slide.is-active .poem-f .verse:nth-child(1) > span { animation-delay: .65s; }
  .hero-slide.is-active .poem-f .verse:nth-child(2) > span { animation-delay: .75s; }
  .hero-slide.is-active .poem-f .verse:nth-child(3) > span { animation-delay: .85s; }
}

/* Diapositive « La satisfaction du client » : même style et même taille que « votre gestion enfin sereine. » */
.hero .slide-title.poem { font-size: clamp(1.9rem, 3.9vw, 2.8rem); line-height: 1.14; text-transform: none; margin-bottom: .4rem; }
.hero .slide-title .hl { color: var(--amber); }

/* ---------- Barre du haut : deux adresses (France + Maroc), adaptée à la largeur ---------- */
.topbar-inner.container { width: min(100% - 2rem, 1400px); }
.topbar-info { min-width: 0; font-size: .8rem; }
.topbar-info li { white-space: nowrap; padding-right: .8rem; margin-right: .8rem; }
@media (min-width: 980px) { .topbar-cta { padding: 0 1.4rem 0 2.6rem; font-size: .8rem; } }
@media (max-width: 1399px) { .topbar-info li:nth-child(3) { display: none; } }
@media (max-width: 1199px) { .topbar-info .tb-pre { display: none; } }
@media (max-width: 1049px) { .topbar-info li:nth-child(4) { display: none; } .topbar-info li:nth-child(2) { border-right: 0; } }
