/* Karoka – accueil v2. Tokens, puis base, puis composants. */
/* Polices auto-hébergées (latin) : aucune requête vers un service tiers */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.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+2212; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/space-grotesk-latin.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+2212; }

:root {
  --ink: #0b0b0c;
  --ink-2: #3a3d44;
  --muted: #5b6070;
  --paper: #ffffff;
  --tint: #f4f6fb;
  --line: #e2e6ef;
  --accent: #1f3fd8;
  --accent-dark: #1731ad;
  --dot: #e5322d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 11, 12, .08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
h1, h2, h3, .heading p, .hero__lead, .jobs p { text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .hero :focus-visible, .jobs :focus-visible, .footer :focus-visible { outline-color: #fff; }
.jobs .btn:focus-visible, .hero .btn:focus-visible { outline-offset: 4px; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Bandeau haut */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 1.5rem; margin: 0; flex-wrap: wrap; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand img { height: 44px; width: auto; }
.nav ul { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--tint); }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.burger__bars, .burger__bars::before, .burger__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; content: ""; transition: transform .2s; }
.burger__bars { position: relative; }
.burger__bars::before { position: absolute; top: -6px; left: 0; }
.burger__bars::after { position: absolute; top: 6px; left: 0; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Boutons */
.btn { display: inline-block; text-align: center; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent); transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--small { padding: .5rem 1.1rem; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .82) 50%, rgba(11, 11, 12, .5) 100%),
    url("../images/hero-karoka.webp") 60% 14% / cover no-repeat;
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lead { font-size: 1.15rem; max-width: 56ch; color: #e8eaf1; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.eyebrow::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--dot); border-radius: 50%; margin-right: .55rem; vertical-align: .05em; }
.hero .eyebrow { color: #cfd6ff; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.facts span { font-size: .9rem; color: #cfd3de; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.heading { max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media { margin: 0; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Cartes */
.cards { display: grid; gap: 1.25rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon { width: 64px; height: 64px; object-fit: contain; padding: 8px; background: var(--tint); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 1rem; }
.card p { margin: 0; }
/* Cartes de service : icône et titre sur la même ligne, texte dessous */
.card:has(> .card__icon) { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; column-gap: 1rem; }
.card:has(> .card__icon) .card__icon { margin-bottom: 0; }
.card:has(> .card__icon) h3 { margin: 0; }
.card:has(> .card__icon) p { grid-column: 1 / -1; margin-top: 1rem; }

/* Abonnements */
.pill { display: inline-block; margin: 0 0 1rem; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 600; }
.jobs .pill { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; margin-bottom: .75rem; }
.split__text .pill { margin-bottom: 1rem; }
.switch { display: inline-flex; gap: .25rem; margin-top: 1.5rem; padding: .3rem; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.switch button { font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: .55rem 1.1rem; cursor: pointer; }
.switch button.is-on { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 1px 3px rgba(11, 11, 12, .12); }
.switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.switch__tag { margin-left: .35rem; padding: .05rem .4rem; border-radius: 6px; background: #dcfce7; color: #0f5222; font-size: .75rem; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.plan--pop { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.plan h3 { font-size: 1.25rem; margin: 0; }
.plan__badge { padding: .2rem .7rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600; }
.plan__sub { margin: .35rem 0 1.5rem; color: var(--muted); font-size: .92rem; }
.plan__price { margin: 0; color: var(--ink); white-space: nowrap; }
.plan__price strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--ink); }
.plan__unit { margin-left: .35rem; color: var(--muted); }
.plan__unit i { font-style: normal; }
.plan__alt { margin: .5rem 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.plan .ticks { flex: 1; margin-bottom: 1.5rem; }
.plan .ticks li { color: var(--ink); }
.plan .btn { border-radius: 10px; }

/* Villes */
.city { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.city img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.city h3 { font-size: 1.1rem; padding: 1rem 1.1rem 0; margin: 0; }
.city .city__dom { color: var(--accent); font-weight: 600; font-size: .85rem; padding-bottom: 0; }
.city p { font-size: .92rem; padding: .4rem 1.1rem 1.2rem; margin: 0; }

/* Portfolio */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.logo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.logo__img { position: relative; overflow: hidden; aspect-ratio: 592 / 264; background: #fff; border-bottom: 1px solid var(--line); }
.logo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo__name { margin: 0; padding: .8rem 1rem 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.logo__desc { margin: 0; padding: .1rem 1rem .9rem; font-size: .85rem; color: var(--muted); }
.logo > .logo__img + .logo__name:last-child { padding-bottom: .9rem; }
.logo__link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.logo__link .logo__name { padding-bottom: .9rem; color: var(--accent); }
.logo__link:hover .logo__name { text-decoration: underline; }

/* Emploi */
.jobs { background: var(--ink); color: #fff; padding-block: 2.5rem; }
.jobs__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.jobs h2 { color: #fff; margin-bottom: .3rem; font-size: 1.6rem; }
.jobs p { margin: 0; color: #cfd3de; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.contact__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.contact__list { margin: 0; background: var(--tint); border-radius: var(--radius); padding: 1.75rem; }
.contact__list div + div { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.contact__list dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__list dd { margin: .2rem 0 0; font-weight: 500; color: var(--ink); }

/* Formulaire */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field--full { grid-column: 1 / -1; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .3rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #aab1c3; border-radius: 10px; padding: .7rem .85rem; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }
.form__status { margin: .8rem 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #146c2e; }
.form__status.is-error { color: #b3261e; }

/* Contact : colonne d'accès rapide + carte de devis */
.contact__lead { color: var(--muted); font-size: 1.05rem; max-width: 26ch; }
.crows { display: grid; gap: .75rem; margin-top: 1.75rem; }
.crow { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.crow:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.crow b { color: var(--ink); font-weight: 500; }
.crow__ic { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form--quote { padding: 0; overflow: hidden; box-shadow: none; }
.form--quote .form__body { padding: clamp(1.25rem, 3vw, 1.75rem); }
.form--quote h3 { margin-bottom: .35rem; }
.form--quote .field input, .form--quote .field select { height: 46px; }
.form__sub { margin: 0 0 1.5rem; color: var(--muted); font-size: .95rem; }
.form--quote .field select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #aab1c3; border-radius: 10px; padding: .7rem .85rem; }
.form--quote .form__status { margin-top: 0; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.25rem, 3vw, 1.75rem); border-top: 1px solid var(--line); background: var(--paper); }
.form__foot .form__note { margin: 0; }
.form--quote .form__foot .btn { width: auto; flex: none; }
@media (max-width: 560px) { .form__foot { flex-direction: column; align-items: stretch; } .form--quote .form__foot .btn { width: 100%; } }

/* Pied de page */
.footer { background: var(--ink); color: #cfd3de; padding-block: 2rem; font-size: .92rem; }
.footer a { color: #fff; }
.footer__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.footer__in > :first-child { justify-self: start; }
.footer__in > :last-child { justify-self: end; }
.footer__in p { margin: 0; }
.social { display: flex; gap: .6rem; }
.social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.social img { border-radius: 21%; width: 36px; height: 36px; object-fit: cover; }

/* Tablette */
@media (max-width: 980px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
}

/* Menu repliable : dès que les liens ne tiennent plus sur une ligne (le menu complet demande ~1040 px) */
@media (max-width: 1040px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 1rem 1.25rem; display: none; }
  .nav.is-open { display: block; }
  .nav { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }   /* paysage / écran bas : tout le menu reste atteignable */
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .btn { display: block; text-align: center; margin-top: .5rem; }
}

@media (min-width: 861px) {
  .contact > :first-child { position: sticky; top: 104px; }
}

@media (max-width: 860px) {
  .split, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cards--2 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .footer__in { grid-template-columns: 1fr; justify-items: start; }
  .footer__in > :last-child { justify-self: start; }
}

@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .city h3 { font-size: 1rem; padding: .75rem .75rem 0; }
  .city p { font-size: .85rem; padding: .3rem .75rem 1rem; }
  .topbar__mail, .topbar__cgv { display: none; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .topbar__in { justify-content: center; text-align: center; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Cibles tactiles confortables (44 px) */
.footer a, .topbar a { display: inline-block; padding-block: .3rem; }
.footer .social a { padding-block: 0; }
.footer__in a { min-height: 44px; display: inline-flex; align-items: center; }

/* Appel à l'action répété sous les formules */
.plans__cta { text-align: center; margin: 2rem 0 0; color: var(--muted); }
.plans__cta a { font-weight: 600; }

/* Bouton WhatsApp fixe (mobile) */
.wa-float { display: none; }
@media (max-width: 860px) {
  .wa-float { display: inline-flex; align-items: center; gap: .5rem; position: fixed; right: 1rem; bottom: 1rem; z-index: 60; min-height: 48px; padding: .7rem 1.1rem; border-radius: 999px; background: #146c2e; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(11, 11, 12, .25); }
  .wa-float:hover { background: #0f5222; color: #fff; }
  .footer { padding-bottom: 5rem; }
}

/* Pages d'erreur et texte légal */
.prose { max-width: 760px; }
.errorpage { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.errorpage__code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; margin: 0; color: var(--accent); }
.sprite { position: absolute; }

/* Bandeau du haut sur mobile : seul le téléphone reste (placé en dernier pour l'emporter sur les règles de padding) */
@media (max-width: 560px) { .topbar .topbar__mail, .topbar .topbar__cgv { display: none; } }
.wa-float.is-hidden { display: none !important; }

/* ───── Lot C : formulaire, icônes, réseaux, contact ───── */
.req { color: #b3261e; font-weight: 700; }
.form__req { margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.field__err { margin: .3rem 0 0; font-size: .85rem; font-weight: 600; color: #b3261e; }
.field__err:empty { display: none; }
.field__err::before { content: "\26A0\00a0"; }
.form__done { padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 3vw, 1.75rem); text-align: center; }
.form__done-ic { width: 3rem; height: 3rem; color: #146c2e; margin: 0 auto 1rem; }
.form__done:focus { outline: none; }
.form__done-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.form--quote .form__done .btn { width: auto; }
.card__icon { color: var(--accent); }
svg.card__icon { padding: 14px; fill: none; }
.plan--pop { position: relative; }
@media (min-width: 901px) { .plan--pop { transform: translateY(-8px); } }
.crow--wa { background: #146c2e; border-color: #146c2e; color: #fff; }
.crow--wa b { color: #fff; }
.crow--wa .crow__ic { stroke: #fff; }
a.crow--wa:hover { border-color: #0f5222; background: #0f5222; }
.social a { color: #cfd3de; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.social a:hover { color: #fff; border-color: #fff; }
.social svg { width: 20px; height: 20px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.toc { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-block: 1.5rem; }
.toc p { margin: 0 0 .4rem; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; list-style: decimal; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
/* Bandeau d'accueil sur mobile : cadrage à droite pour montrer le logo KAROKA du mur */
@media (max-width: 700px) { .hero { background-position: 0 0, 100% 14%; } }

/* À propos : trois blocs, sans photo */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards--3 { grid-template-columns: 1fr; } }

/* À propos : effets (particules tsParticles + apparition AOS, voir js/apropos-fx.js) */
#apropos { position: relative; overflow: hidden; }
#apropos > .wrap { position: relative; z-index: 1; }
#apropos .fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#apropos { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
#apropos .heading { max-width: 92ch; margin-bottom: 0; }
#apropos .heading p { font-size: 1.1rem; max-width: 88ch; margin: 0 auto; }

/* ───── Portfolio modernisé : tuiles de logos uniformes, survol, apparition en cascade ───── */
.logos { gap: 1.1rem; }
.logo { padding: 12px; border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 11, 12, .04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.logo__img { border: 0; border-radius: 13px; background: var(--tint); }
.logo__name { padding: .95rem .5rem 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.logo__desc { padding: .15rem .5rem .6rem; }
.logo > .logo__img + .logo__name:last-child { padding-bottom: .7rem; }
.logo__link .logo__name { padding-bottom: .2rem; }
.logo__link { height: auto; }
.logo__name span[aria-hidden="true"] { display: inline-grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: .95rem; transition: transform .25s ease, background .25s ease, color .25s ease; }
.logo:has(.logo__link):hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.logo:has(.logo__link):hover .logo__name span[aria-hidden="true"] { background: var(--accent); color: #fff; transform: translate(2px, -2px); }
.logo__link:hover .logo__name { text-decoration: none; }
/* Logos toujours en couleur ; léger zoom au survol d'une carte */
@media (hover: hover) {
  .logo__img img { transition: transform .4s ease; }
  .logo:hover .logo__img img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .logo, .logo__img img { transition: none !important; transform: none !important; } }

/* Portfolio : tous les noms dans la même couleur (le ↗ signale le lien) ; bleu seulement au survol d'une carte cliquable */
.logo__name, .logo__link .logo__name { color: var(--ink); min-height: 1.7rem; }
.logo:has(.logo__link):hover .logo__name { color: var(--accent); }

/* Nos services : vrai titre (h2) au lieu de la seule pastille, taille mesurée et espaces resserrés */
#services { padding-block: clamp(2.5rem, 5vw, 4rem); }
#services .heading { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
#services .heading h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Sections suivantes : même traitement que « Nos services » (titre h2 mesuré, espaces resserrés) */
#abonnement, #myville, #portfolio, #contact { padding-block: clamp(2.5rem, 5vw, 4rem); }
#abonnement .heading, #myville .heading, #portfolio .heading { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
#abonnement .heading h2, #myville .heading h2, #portfolio .heading h2 { margin: 0 0 .5rem; }
#abonnement .heading h2:only-child, #myville .heading h2:only-child, #portfolio .heading h2:only-child { margin: 0; }
#abonnement .heading h2, #myville .heading h2, #portfolio .heading h2, #contact h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Très petits écrans : la pastille ↗ du portfolio ne tient plus à côté du nom ; la carte entière reste le lien */
@media (max-width: 420px) { .logo { padding: 8px; } .logo__name span[aria-hidden="true"] { display: none; } .logo__name { padding-inline: .3rem; font-size: .85rem; } .logo__desc { padding-inline: .3rem; font-size: .8rem; } }

/* ───── Responsive : corrections de l'audit ───── */
/* Cartes de prix : « 150 000 Ar / trimestre » ne doit pas élargir la colonne sur 320 px */
@media (max-width: 380px) { .plan__price { white-space: normal; } .plan__price strong { font-size: 2rem; } }
/* Cibles tactiles (44 px) sur tablette et mobile ; le bureau garde sa mise en page */
@media (max-width: 1040px) { .topbar__in { padding-block: 0; } .topbar a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; } }
.switch button { min-height: 44px; }
@media (pointer: coarse) { .toc a, .prose p > a:only-child { display: inline-block; padding-block: .6rem; } .toc li { margin: 0; } }
/* Polices : rien sous 13 px sur mobile */
@media (max-width: 560px) { .switch__tag, .plan__badge, .field small, .logo__desc { font-size: .8125rem; } }
/* Pages d'erreur : les deux boutons ne se touchent plus quand ils passent à la ligne */
.errorpage .btn { margin: .4rem .25rem; }

/* Villes : description sur 2 lignes + « …plus » (site.js) */
.city p.is-clamped:not(.city__dom) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .2rem; }
.city__more { display: block; margin: 0; padding: .1rem 1.1rem 1rem; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; text-align: left; }
.city__more:hover { text-decoration: underline; }
.city__more:focus-visible { outline: 2px solid var(--muted); outline-offset: -2px; border-radius: var(--radius); }
.city__more[hidden] { display: none; }
@media (max-width: 560px) { .city__more { padding: .1rem .75rem .9rem; min-height: 44px; display: flex; align-items: flex-start; } }

/* Survol des abonnements et des villes : même mouvement que les cartes de services (relief + ombre) */
.plan, .city { transition: box-shadow .2s, transform .2s, border-color .2s; }
.city img { transition: transform .4s ease; }
@media (hover: hover) {
  .plan:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
  .plan--pop:hover { transform: translateY(-4px); }
  .city:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--accent); }
  .city:hover img { transform: scale(1.05); }
}
@media (hover: hover) and (min-width: 901px) { .plan--pop:hover { transform: translateY(-11px); } }
/* Le réglage « réduire les animations » coupe toutes les transitions du site : on garde celles-ci, douces et brèves */
@media (prefers-reduced-motion: reduce) {
  .card, .plan, .city { transition: box-shadow .2s, transform .2s, border-color .2s !important; }
  .city img { transition: transform .4s ease !important; }
}
