/* Under The Files — feuille de style publique */
:root {
  --bg: #f5f7fd;
  --bg-alt: #e8edf9;
  --surface: #ffffff;
  --text: #4d515c;
  --heading: #0d224b;
  --green: #1576c2;
  --green-dark: #0d224b;
  --accent: #1576c2;
  --accent-dark: #075a9c;
  --leaf: #7cc4f5;
  --line: #d0d3de;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(13, 34, 75, .10);
  --font: "Segoe UI", system-ui, -apple-system, 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.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(860px, 100% - 2.5rem); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: .4rem; }
.lead { font-size: 1.2rem; }

/* Boutons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .8rem 1.7rem; border-radius: 30px; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.3; box-shadow: 0 8px 18px rgba(21, 118, 194, .28); 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; font-size: .95rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green-dark); box-shadow: none; }
.btn-ghost:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; box-shadow: none; }
.btn-light:hover { background: var(--leaf); border-color: var(--leaf); color: var(--green-dark); }

/* En-tête */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(13, 34, 75, .08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: block; line-height: 0; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.nav li { position: relative; }
.nav a:not(.btn) { color: var(--heading); text-decoration: none; padding: .55rem .8rem; display: block; border-radius: 8px; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--bg-alt); }
.nav a.nav-phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-dark); font-weight: 700; }
.nav a.nav-phone:hover { color: var(--green-dark); }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; background: #fff; min-width: 230px; padding: .4rem; border-radius: 0 0 12px 12px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-dark); margin: 5px 0; border-radius: 2px; }

/* Bandeau de titre */
.hero-band { background: linear-gradient(135deg, #17366f 0%, #112b5c 55%, #0d224b 100%); color: #fff; padding: 2.6rem 0 3rem; text-align: center; position: relative; overflow: hidden; }
.hero-band::before, .hero-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero-band::before { width: 260px; height: 260px; left: -70px; top: -90px; }
.hero-band::after { width: 180px; height: 180px; right: -40px; bottom: -70px; background: rgba(124, 196, 245, .16); }
.hero-band h1 { color: #fff; margin: 0; position: relative; }
.hero-sub { margin: .8rem auto 0; opacity: .92; max-width: 720px; position: relative; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .5rem; font-size: .9rem; position: relative; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; opacity: .7; }
.crumbs a { color: #fff; }
.crumbs [aria-current] { opacity: .8; }

/* Accueil */
.home-hero { position: relative; background: #0d224b; color: #fff; overflow: hidden; }
.home-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 22, 50, .78) 0%, rgba(9, 22, 50, .35) 70%, rgba(9, 22, 50, .15) 100%); }
.home-hero-in { position: relative; z-index: 1; padding: clamp(4rem, 11vw, 8rem) 0; }
.home-hero-in > * { max-width: 680px; }
.home-hero h1 { color: #fff; }
.home-hero h1::after { content: ""; display: block; width: 110px; height: 6px; border-radius: 6px; background: var(--leaf); margin-top: 1rem; }
.home-hero .eyebrow { color: var(--leaf); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.section-dark { background: var(--green-dark); color: #d5ddf0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2rem; }
.strength svg { color: var(--leaf); margin-bottom: .5rem; }
.strength h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.strength p { margin: 0; font-size: .98rem; }
.home-prose { max-width: 820px; }
.home-map { line-height: 0; }
.home-map img { width: 100%; min-height: 220px; object-fit: cover; display: block; }
.more { font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.more::after { content: " →"; }

/* Avis clients */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--leaf); }
.stars { color: #e0a100; letter-spacing: .15em; margin: 0 0 .3rem; }
.review-title { font-weight: 700; color: var(--heading); margin-bottom: .4rem; }
.review blockquote { margin: 0; }
.review blockquote p { margin-bottom: .7rem; }
.review figcaption { font-weight: 700; color: var(--accent-dark); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section > .wrap > h2.center { margin-bottom: 2rem; }
.listing { margin-top: 2rem; }
.listing > h2 { margin-bottom: 1.6rem; }
.siblings { margin-top: 2.5rem; }
.nav .sub a { white-space: normal; }

/* Contenu rédactionnel */
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 2.2rem; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.7rem; }
.prose h4 { margin-top: 1.3rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li > p { margin: 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--heading); }
.prose img { border-radius: var(--radius); display: block; margin-inline: auto; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { text-align: center; font-size: .9rem; margin-top: .5rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; background: var(--surface); border-left: 5px solid var(--leaf); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2.2rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--surface); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--green-dark); color: #fff; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.cta-box { background: var(--green-dark); color: #fff; border-radius: var(--radius); padding: 1.8rem; margin: 2rem 0; text-align: center; }
.cta-box h2, .cta-box h3, .cta-box strong { color: #fff; margin-top: 0; }
.children { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.children a { display: block; background: var(--surface); padding: .9rem 1.1rem; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--heading); box-shadow: var(--shadow); }
.children a:hover { color: var(--accent-dark); }

/* Sommaire */
.toc { background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin: 0 0 2rem; box-shadow: var(--shadow); }
.toc-title { font-weight: 800; color: var(--heading); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: .25rem 0; }

/* Articles et cartes */
.post-meta { font-size: .95rem; margin-bottom: 1.5rem; }
.post-cover { margin: 0 0 2rem; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tags.center { justify-content: center; margin: 0 0 2rem; }
.tags a { background: var(--surface); border: 1px solid var(--line); padding: .25rem .8rem; border-radius: 30px; font-size: .88rem; text-decoration: none; color: var(--text); }
.tags a:hover { border-color: var(--accent); color: var(--accent-dark); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 2rem; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: .85rem; margin-bottom: .4rem; color: var(--green); font-weight: 600; }
.card h3, .card .card-title { font-size: 1.12rem; margin-bottom: .5rem; }
.card h3 a, .card .card-title a { color: var(--heading); text-decoration: none; }
.card h3 a:hover, .card .card-title a:hover { color: var(--accent-dark); }
.card-body > p:not(.card-date) { font-size: .95rem; flex: 1; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination a, .pagination span { padding: .45rem .9rem; border-radius: 10px; background: var(--surface); text-decoration: none; font-weight: 700; color: var(--heading); }
.pagination span { background: var(--green-dark); color: #fff; }

/* Appel à contact */
.cta { background: var(--green-dark); color: #d5ddf0; padding: 3rem 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: #fff; }
.cta .eyebrow { color: var(--leaf); }
.cta p { margin-bottom: 0; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta .btn { white-space: nowrap; }

/* Formulaires */
.form { background: var(--surface); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form label { display: block; font-weight: 700; color: var(--heading); margin-bottom: .3rem; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: #16223f; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.form-note { font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice.ok { background: #dcf5e3; color: #17512a; border: 1px solid #9dd8ae; }
.notice.err { background: #fde3e0; color: #7c1d14; border: 1px solid #f0aaa2; }
.contact-direct { display: flex; flex-wrap: wrap; gap: .6rem 2rem; list-style: none; padding: 0; margin: 0 0 1rem; font-weight: 600; }

/* Pied de page */
.site-footer { background: #091a3b; color: #c3cce0; padding: 2.8rem 0 1.2rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-logo { color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: .4rem; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--leaf); }
.copyright { text-align: center; font-size: .88rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub { display: flex; position: static; box-shadow: none; padding: 0 0 0 1rem; background: none; }
  .nav .btn { text-align: center; }
  .cards, .strengths { grid-template-columns: repeat(2, 1fr); }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards, .strengths, .reviews, .form-row, .footer-in { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .logo img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Sélecteur de langue */
.lang-switch { display: flex; gap: .15rem; margin: 0; font-size: .85rem; font-weight: 700; }
.nav .lang-switch a { padding: .3rem .5rem; border-radius: 6px; color: var(--text); }
.nav .lang-switch a[aria-current] { background: var(--heading); color: #fff; }

/* Blocs repris de l'ancien site */
.prose .btn, .prose .btn:hover { color: #fff; text-decoration: none; }
.cta-box p { margin-bottom: .8rem; }
.cta-box .cta-title { font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.3; }
.cta-box .btn, .cta-box .btn:hover { background: #fff; border-color: #fff; color: var(--heading); box-shadow: none; }
.cta-box > :last-child { margin-bottom: 0; }
.prose ul.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.prose ul.features li { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); border-top: 4px solid var(--leaf); margin: 0; }
.prose ul.features strong { display: block; margin-bottom: .2rem; }
.home-prose > h2, .home-prose > .eyebrow { text-align: center; }
.home-prose > h2 { margin-top: 0; }
.home-hero .lead { font-size: 1.25rem; }

/* Villes */
.cities { margin: 1.5rem 0; }
.cities-tools { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
.cities-search { width: 100%; max-width: 420px; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: #16223f; }
.cities-search:focus { border-color: var(--accent); outline: none; }
.cities-az { display: flex; flex-wrap: wrap; gap: .3rem; }
.cities-az button { font: inherit; font-size: .88rem; font-weight: 700; min-width: 2.1rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--heading); cursor: pointer; }
.cities-az button.is-active, .cities-az button:hover { background: var(--heading); border-color: var(--heading); color: #fff; }
.prose ul.cities-grid, ul.city-links { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.cities-grid li, .city-links li { margin: 0; }
.cities-grid li[hidden] { display: none; }
.cities-grid a, .city-links a { display: block; background: var(--surface); padding: .6rem .9rem; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--heading); border: 1px solid var(--line); }
.cities-grid a:hover, .city-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Simulateur de TJM */
.tjm { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; margin: 2rem 0; }
.tjm h2 { margin-top: 0; }
.tjm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.2rem; }
.tjm label { display: block; font-weight: 700; color: var(--heading); font-size: .95rem; margin-bottom: .3rem; }
.tjm input, .tjm select { width: 100%; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: #16223f; background: #fff; }
.tjm input:focus, .tjm select:focus { border-color: var(--accent); outline: none; }
.tjm-actions { margin: 1.2rem 0 0; }
.tjm-result { margin-top: 1.4rem; padding: 1.2rem 1.4rem; background: var(--bg-alt); border-radius: 12px; }
.tjm-result p { margin: .2rem 0; }
.tjm-value { font-size: 1.8rem; font-weight: 800; color: var(--heading); }
.tjm-error { color: #7c1d14; font-weight: 600; }
.pagination .gap { background: none; }