/* MLTS Brest — style épuré : fond blanc, titres prune, formes arrondies lavande, touches de jaune.
   Mise en page : colonne 1120px, contenu aéré, grilles qui passent à une colonne sur téléphone. */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f5fa;
  --bg-sun: #fff8dc;
  --ink: #231a2b;
  --muted: #64596e;
  --line: #e6dfeb;
  --brand: #4a2860;
  --brand-deep: #2e1740;
  --tint: #eee5f4;
  --tint-2: #b99ad0;
  --sun: #f6c519;
  --on-brand: #ffffff;
  --chip-bg: #ffffff;
  --font: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140f18; --bg-soft: #1c1522; --bg-sun: #1f1b0c; --ink: #efe9f3; --muted: #b2a6bd; --line: #31263a;
    --brand: #cdb0e4; --brand-deep: #22122f; --tint: #2f2140; --tint-2: #5d3f7a; --sun: #f2c21c;
    --on-brand: #140f18; --chip-bg: #1c1522;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #140f18; --bg-soft: #1c1522; --bg-sun: #1f1b0c; --ink: #efe9f3; --muted: #b2a6bd; --line: #31263a;
    --brand: #cdb0e4; --brand-deep: #22122f; --tint: #2f2140; --tint-2: #5d3f7a; --sun: #f2c21c;
    --on-brand: #140f18; --chip-bg: #1c1522;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--tint-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--brand); line-height: 1.12; text-wrap: balance; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }
.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* En-tête */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 12px; background: var(--brand); color: var(--on-brand); }
.brand-mark .ic { width: 24px; height: 24px; stroke-width: 2; }
.brand-name { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 700 1rem/1.2 var(--font); text-decoration: none; border: 2px solid var(--brand); cursor: pointer; transition: background .15s, color .15s; }
.btn-solid { background: var(--brand); color: var(--on-brand); }
.btn-solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--on-brand); }
.nav .btn { padding: 9px 20px; }
.nav .btn-outline { color: var(--brand); }

/* Formes décoratives */
.blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blobs svg { position: absolute; }
.blob-l { left: -120px; top: 40px; width: 300px; }
.blob-r { right: -90px; top: -40px; width: 380px; }

/* Accueil : ouverture */
.hero { position: relative; text-align: center; }
.hero .wrap { position: relative; display: grid; justify-items: center; gap: 22px; padding-block: 72px 40px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.ask { display: flex; width: min(640px, 100%); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--bg); text-decoration: none; color: var(--muted); }
.ask span { flex: 1; padding: 16px 24px; text-align: left; font-size: 1.1rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask b { display: grid; place-items: center; padding: 0 26px; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.ask:hover b { background: var(--brand-deep); color: #fff; }
.hero .small { font-size: .95rem; color: var(--muted); }

/* Onglets catégories */
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-top: 18px; }
.tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 6px 16px; display: grid; justify-items: center; gap: 10px; font: 600 .98rem/1.25 var(--font); color: var(--muted); cursor: pointer; text-align: center; text-decoration: none; }
.tab .ic { width: 42px; height: 42px; padding: 6px; border-radius: 50%; color: var(--ink); stroke-width: 1.4; }
.tab:hover { color: var(--brand); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--sun); }
.tab[aria-selected="true"] .ic { background: var(--tint); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 26px 8px; }
.chip { display: inline-block; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--chip-bg); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }

/* Panneau texte sur illustration */
.showcase { background: var(--tint); border-radius: 24px; padding: 34px; margin-top: 22px; }
.showcase-inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 0; }
.showcase .card { position: relative; z-index: 1; background: var(--bg); border-radius: 16px; padding: 34px; display: grid; gap: 16px; margin-right: -60px; box-shadow: 0 10px 30px rgba(60, 25, 80, .09); }
.showcase .art { min-height: 340px; border-radius: 18px; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; position: relative; }
.showcase .art .ic { width: 46%; height: auto; color: var(--brand); stroke-width: .9; position: relative; }
.showcase .art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; background: var(--tint); }
.showcase .art::after { content: ""; position: absolute; right: 12%; top: 14%; width: 64px; height: 64px; border-radius: 50%; border: 8px solid var(--sun); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 1.05rem; }
.checks .ic { margin-top: 5px; color: var(--brand); background: var(--sun); border-radius: 50%; padding: 2px; color: #231a2b; stroke-width: 2.4; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* Bandeau de repères */
.facts { background: linear-gradient(var(--bg), var(--bg-soft)); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; padding-block: 40px; }
.facts div { display: grid; gap: 2px; }
.facts b { font-weight: 700; }
.facts span { color: var(--brand); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }

/* Sections */
.section { padding-block: 80px; position: relative; }
.section.soft { background: var(--bg-soft); }
.section.sun { background: var(--bg-sun); }
.section-title { margin-bottom: 40px; }
.section-title em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 90%, transparent 90%); padding: 0 2px; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.cols-3 > div { display: grid; gap: 12px; align-content: start; }
.cols-3 h3 { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.45rem; }
.cols-3 h3 .ic { color: var(--brand); width: 28px; height: 28px; }
.cols-3 p { color: var(--muted); font-size: 1.05rem; }

/* Comment ça marche */
.how { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.how .card { position: relative; z-index: 1; background: var(--bg); border-radius: 20px; padding: 40px 36px; display: grid; gap: 26px; margin-right: -60px; box-shadow: 0 10px 30px rgba(60, 25, 80, .09); }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.how li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; font-size: 1.08rem; }
.how li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: #231a2b; font-weight: 800; font-size: 1.3rem; }
.how .art { min-height: 460px; border-radius: 22px; background: var(--brand); position: relative; overflow: hidden; display: grid; place-items: center; }
.how .art .ic { width: 38%; height: auto; color: var(--tint); stroke-width: .9; position: relative; }
.how .art::before { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; bottom: -120px; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; background: var(--tint-2); opacity: .55; }
.how .art::after { content: ""; position: absolute; left: 50px; top: 46px; width: 80px; height: 80px; border-radius: 50%; border: 10px solid var(--sun); }

/* Encadré pro */
.pro { background: var(--brand-deep); color: #f1e9f6; border-radius: 24px; padding: 48px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.pro h2 { color: #ffffff; }
.pro p { max-width: 62ch; color: #d9c8e6; font-size: 1.08rem; }
.pro .btn { justify-self: start; background: var(--sun); border-color: var(--sun); color: #231a2b; }
.pro .btn:hover { filter: brightness(1.05); }
.pro::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 45% 55% 50% 50%; background: #6b3f8a; opacity: .5; }

/* En-tête de page intérieure */
.page-head { position: relative; overflow: hidden; background: var(--bg-soft); }
.page-head .wrap { position: relative; padding-block: 56px 60px; display: grid; gap: 18px; }
.page-head .head-row { display: flex; align-items: center; gap: 18px; }
.page-head .head-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--tint); flex: none; }
.page-head .head-ic .ic { width: 38px; height: 38px; color: var(--brand); stroke-width: 1.5; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 1.15rem; }
.crumbs { font-size: .92rem; color: var(--muted); }
.crumbs a { color: inherit; }
.page-head .blob-r { width: 300px; top: -60px; right: -100px; }

/* Liste des prestations */
.presta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.presta { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.presta h3 { color: var(--ink); font-size: 1.15rem; }
.presta p { color: var(--muted); }
.presta details { border-top: 1px solid var(--line); padding-top: 10px; }
.presta summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; }
.presta summary::-webkit-details-marker { display: none; }
.presta summary::after { content: " +"; }
.presta details[open] summary::after { content: " −"; }
.presta dl { margin: 12px 0 0; display: grid; gap: 10px; font-size: .95rem; }
.presta dt { font-weight: 700; color: var(--ink); }
.presta dd { margin: 0; color: var(--muted); }
.presta .btn { align-self: flex-start; margin-top: auto; padding: 9px 18px; font-size: .95rem; }
.sub-title { margin: 40px 0 16px; color: var(--ink); font-size: 1.3rem; }
.notice { background: var(--bg-sun); border-radius: var(--radius); padding: 22px 26px; display: grid; gap: 8px; margin-bottom: 28px; }
.notice h3 { color: var(--ink); }

/* Texte long */
.prose { max-width: 74ch; display: grid; gap: 14px; }
.prose h2 { margin-top: 30px; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 26px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2 240px; }
.todo { background: var(--sun); color: #231a2b; padding: 0 5px; border-radius: 4px; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* Pied de page */
.site-footer { background: var(--brand-deep); color: #dccbe8; font-size: .95rem; }
.site-footer .wrap { padding-block: 52px 30px; display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #ffffff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal-line { grid-column: 1 / -1; font-size: .85rem; opacity: .75; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }

@media (max-width: 860px) {
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase { padding: 18px; }
  .showcase-inner, .how { grid-template-columns: 1fr; }
  .showcase .card, .how .card { margin-right: 0; margin-bottom: -40px; }
  .showcase .art { min-height: 220px; padding-top: 40px; }
  .how .art { min-height: 260px; padding-top: 40px; }
  .blob-l { display: none; }
  .blob-r { width: 220px; right: -110px; opacity: .6; }
  .pro { padding: 30px 24px; }
  .section { padding-block: 56px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .ask b { padding: 0 16px; }
  .ask span { padding: 14px 16px; font-size: 1rem; }
  .showcase .card, .how .card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.hl { background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 92%, transparent 92%); padding: 0 4px; }
/* Contour clair autour des textes du haut de page quand ils passent sur les formes décoratives */
.hero h1, .hero p, .page-head h1, .page-head p, .page-head .crumbs {
  text-shadow: 0 0 2px var(--bg), 0 0 2px var(--bg), 2px 0 0 var(--bg), -2px 0 0 var(--bg), 0 2px 0 var(--bg), 0 -2px 0 var(--bg),
    2px 2px 0 var(--bg), -2px -2px 0 var(--bg), 2px -2px 0 var(--bg), -2px 2px 0 var(--bg);
}
.page-head h1, .page-head p, .page-head .crumbs { text-shadow: 0 0 2px var(--bg-soft), 2px 0 0 var(--bg-soft), -2px 0 0 var(--bg-soft), 0 2px 0 var(--bg-soft), 0 -2px 0 var(--bg-soft), 2px 2px 0 var(--bg-soft), -2px -2px 0 var(--bg-soft), 2px -2px 0 var(--bg-soft), -2px 2px 0 var(--bg-soft); }
.hl { text-shadow: none; }

/* --- Zone d'intervention et FAQ (SEO local) --- */
.zone-lead { max-width: 62ch; color: var(--muted); font-size: 1.1rem; margin: -16px 0 32px; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.zone-grid > div { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.zone-grid h3 { font-size: 1.05rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.zone-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.zone-grid li { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.zone-more { color: var(--muted); margin-top: 22px; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
