/* DECENALIA — feuille de style
   Couleurs reprises de l'ancien site et du logo : noir, jaune du logo, vert « transition énergétique ».
   Typographie : Archivo (variable en graisse et en largeur) : titres élargis façon signalétique de chantier.
   Motif signature : la mire de chantier « 10 ans » de la garantie décennale (decade_rod() dans inc/layout.php),
   et la flèche pointillée du logo qui relie les étapes de souscription. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --black: #000000;
  --yellow: #fada10;      /* jaune du logo */
  --yellow-pale: #fff7c2;
  --green: #1ebd00;       /* vert de l'ancien site : touches « énergie » sur fond sombre */
  --green-text: #157a00;  /* vert lisible sur fond clair */
  --concrete: #eef0ef;    /* gris béton : fonds de section */
  --white: #ffffff;
  --text: #16181a;
  --muted: #50565b;
  --line: #d6dad9;
  --on-dark: #e9ebea;
  --on-dark-muted: #a7adb0;
  --radius: 4px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 118%;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
a:hover { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font); font-stretch: var(--wide); font-weight: 800; color: var(--black); line-height: 1.04; margin: 0 0 .5em; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.container { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 40px); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: var(--yellow); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent; font: 700 .97rem/1 var(--font); font-stretch: 108%; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.04rem; }
.btn--primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn--primary:hover { background: var(--black); color: var(--yellow); border-color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--dark { background: var(--black); color: var(--yellow); border-color: var(--black); }
.btn--dark:hover { background: var(--white); color: var(--black); }
.btn--outline { background: transparent; color: var(--black); border-color: var(--line); }
.btn--outline:hover { border-color: var(--black); color: var(--black); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link-more .ico { transition: transform .15s; }
.link-more:hover { color: var(--black); }
.link-more:hover .ico { transform: translateX(4px); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.topbar { background: var(--black); color: var(--on-dark); font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar__tag { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--yellow); }
.topbar__tag .ico { color: var(--green); }
.topbar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a .ico { color: var(--yellow); }
.topbar a:hover { color: var(--yellow); }
.navbar { display: flex; align-items: center; gap: 24px; min-height: 82px; }
.navbar__logo img { width: 204px; transition: width .2s; }
.is-scrolled .navbar__logo img { width: 176px; }
.nav-wrap { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > li > a, .nav > li > button { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 10px 10px; border: 0; background: none; font: 600 .94rem/1 var(--font); color: var(--black); text-decoration: none; cursor: pointer; position: relative; }
.nav > li > a::after, .nav > li > button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav > li > a:hover::after, .nav > li > button:hover::after, .nav > li > a[aria-current]::after { transform: scaleX(1); }
.nav > li > button .ico { width: 16px; transition: transform .2s; }
.nav__has-sub { position: relative; }
.nav__has-sub.open > button .ico { transform: rotate(180deg); }
.nav__dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--yellow); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.nav__has-sub.open > .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav__dropdown a:hover, .nav__dropdown a[aria-current] { background: var(--yellow-pale); color: var(--black); }
.nav__cta { margin-left: 10px; }
.nav > li > a.btn { padding: 0 18px; background: var(--yellow); }
.nav > li > a.btn:hover { background: var(--black); color: var(--yellow); }
.nav > li > a.btn::after { display: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 2px solid var(--black); border-radius: var(--radius); background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--black); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Rythme des sections */
main > section { padding-block: clamp(64px, 8vw, 108px); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Mire « 10 ans » */
.rod { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px; margin-top: clamp(40px, 6vw, 64px); font-size: .86rem; font-weight: 600; }
.rod__start, .rod__end { padding-top: 3px; white-space: nowrap; }
.rod__end { color: var(--green-text); }
.rod__bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); border: 2px solid var(--black); }
.rod__bar li { height: 22px; background: var(--yellow); position: relative; }
.rod__bar li:nth-child(even) { background: var(--black); }
.rod__bar span { position: absolute; top: calc(100% + 8px); right: 0; font-size: .8rem; font-stretch: 100%; color: var(--muted); font-variant-numeric: tabular-nums; }
.rod--inline { margin-top: 0; }
.page-home .rod__bar li { transform-origin: left; animation: rod-fill .5s cubic-bezier(.2, .7, .2, 1) both; }
.page-home .rod__bar li:nth-child(1) { animation-delay: 370ms; }
.page-home .rod__bar li:nth-child(2) { animation-delay: 440ms; }
.page-home .rod__bar li:nth-child(3) { animation-delay: 510ms; }
.page-home .rod__bar li:nth-child(4) { animation-delay: 580ms; }
.page-home .rod__bar li:nth-child(5) { animation-delay: 650ms; }
.page-home .rod__bar li:nth-child(6) { animation-delay: 720ms; }
.page-home .rod__bar li:nth-child(7) { animation-delay: 790ms; }
.page-home .rod__bar li:nth-child(8) { animation-delay: 860ms; }
.page-home .rod__bar li:nth-child(9) { animation-delay: 930ms; }
.page-home .rod__bar li:nth-child(10) { animation-delay: 1000ms; }
@keyframes rod-fill { from { transform: scaleX(0); } }

/* Accueil : hero */
main > .hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 7vw, 92px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-stretch: 116%; font-weight: 850; line-height: .98; }
.hero__lead { font-size: 1.18rem; max-width: 34em; color: var(--muted); }
.hero__visual { margin: 0; position: relative; }
.hero__visual img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 18px 18px 0 var(--yellow); }
.hero__stamp { position: absolute; left: -24px; bottom: 28px; width: 150px; padding: 16px 16px 18px; background: var(--black); color: var(--on-dark); font-size: .86rem; line-height: 1.3; }
.hero__stamp strong { display: block; font-size: 2.6rem; line-height: 1; font-stretch: 125%; font-weight: 900; color: var(--yellow); margin-bottom: 6px; }

/* Accueil : activités */
main > .activities { background: var(--concrete); }
.activities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.act-card a { display: flex; flex-direction: column; height: 100%; background: var(--white); color: var(--text); text-decoration: none; border-bottom: 5px solid var(--black); transition: border-color .15s; }
.act-card a:hover { border-color: var(--yellow); color: var(--text); }
.act-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.act-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.act-card__kicker { font-size: .86rem; font-weight: 600; color: var(--green-text); margin-bottom: 6px; }
.act-card__title { font-size: 1.28rem; font-weight: 800; font-stretch: var(--wide); line-height: 1.1; color: var(--black); margin-bottom: 10px; }
.act-card__text { color: var(--muted); font-size: .96rem; flex: 1; }
.act-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--black); }
.act-card a:hover .act-card__more .ico { transform: translateX(4px); }
.act-card__more .ico { transition: transform .15s; }

/* Accueil : travaux assurés */
.trades__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.trades__grid > div p { color: var(--muted); }
.trades__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.trades__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trades__list li { padding: 9px 14px; border: 2px solid var(--black); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.trades__list li:nth-child(5n+1) { background: var(--yellow); border-color: var(--yellow); }

/* Situations : bandeau jaune */
main > .situations { background: var(--yellow); padding-bottom: 0; overflow: hidden; }
.situations__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.situations__text { padding-bottom: clamp(64px, 8vw, 108px); }
.situations__text > p { font-size: 1.1rem; max-width: 36em; }
.situations__list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.situations__list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--white); font-weight: 600; line-height: 1.35; }
.situations__list .ico { color: var(--white); background: var(--black); padding: 3px; width: 24px; height: 24px; }
.situations__img { width: min(460px, 100%); justify-self: center; }

/* Pourquoi (accueil, qui sommes-nous) */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.why__intro { position: sticky; top: 140px; }
.why__list { margin: 0; display: grid; gap: 0; }
.why__list > div { padding: 22px 0; border-top: 2px solid var(--black); }
.why__list > div:last-child { border-bottom: 2px solid var(--black); }
.why__list dt { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 800; font-stretch: var(--wide); margin-bottom: 6px; }
.why__list dt img { width: 30px; height: 30px; }
.why__list dd { margin: 0; color: var(--muted); }
.why__list--row { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.why__list--row > div:nth-last-child(2) { border-bottom: 2px solid var(--black); }
main > .why--plain { background: var(--concrete); }

/* Étapes : fond noir, flèche pointillée du logo */
main > .steps { background: var(--black); color: var(--on-dark); }
.steps h2, .steps h3 { color: var(--white); }
.steps .section-head p { color: var(--on-dark-muted); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__list li { position: relative; }
.steps__num { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; background: var(--yellow); color: var(--black); font-size: 1.7rem; font-weight: 900; font-stretch: 125%; }
.steps__list li:not(:last-child)::after { content: ""; position: absolute; top: 29px; left: 76px; right: -12px; border-top: 3px dotted var(--yellow); }
.steps__list li:not(:last-child)::before { content: ""; position: absolute; top: 24px; right: -14px; border: 6px solid transparent; border-left: 8px solid var(--yellow); }
.steps__list li:last-child .steps__num { background: var(--green); }
.steps__list p { color: var(--on-dark-muted); }

/* Assureurs */
main > .insurers { padding-block: 56px; border-top: 1px solid var(--line); }
.insurers__inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.insurers__title { font-size: 1.25rem; margin: 0; max-width: 11ch; }
.insurers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; align-items: center; }
.insurers__list img { max-height: 58px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }

/* Rendez-vous et formulaire */
main > .rdv { background: var(--concrete); }
.rdv__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.rdv__intro > p { font-size: 1.1rem; color: var(--muted); }
.rdv__ways { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.rdv__ways a { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--white); border: 2px solid var(--white); color: var(--text); text-decoration: none; transition: border-color .15s; }
.rdv__ways a:hover { border-color: var(--black); color: var(--text); }
.rdv__ways .ico { width: 26px; height: 26px; }
.rdv__ways strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.rdv__ways span { font-size: .9rem; color: var(--muted); }
.rdv__promise { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-weight: 700; }
.rdv__promise .ico { color: var(--green-text); }
.rdv__slot { background: var(--white); padding: clamp(22px, 3vw, 36px); border-top: 5px solid var(--black); }
.contact-form { display: grid; gap: 14px; }
.contact-form__title { font-size: 1.45rem; font-weight: 800; font-stretch: var(--wide); line-height: 1.15; margin: 0 0 4px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text); padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { justify-self: start; }
.contact-form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.contact-form__status.is-ok { color: var(--green-text); }
.contact-form__status.is-err { color: #b3261e; }
.contact-form__legal { margin: 0; font-size: .82rem; color: var(--muted); }

/* Pages intérieures : en-tête noir */
main > .page-hero { padding-block: clamp(44px, 6vw, 80px); background: var(--black); color: var(--on-dark); border-bottom: 8px solid var(--yellow); }
.page-hero h1 { max-width: 20ch; color: var(--white); }
.page-hero__lead { font-size: 1.18rem; max-width: 40em; color: var(--on-dark); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--on-dark-muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); text-decoration: underline; }

/* Pages activité */
main > .act-hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.act-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.act-hero .breadcrumb { color: var(--muted); }
.act-hero .breadcrumb a { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); }
.act-hero__lead { font-size: 1.18rem; color: var(--muted); max-width: 32em; }
.act-hero__img { margin: 0; }
.act-hero__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: -18px 18px 0 var(--yellow); }
main > .act-works { background: var(--black); color: var(--white); padding-block: 30px; }
.act-works .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.act-works__title { font-size: 1.05rem; color: var(--yellow); margin: 0; }
.act-works__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.act-works__list li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.act-works__list .ico { color: var(--green); }
.explain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-bottom: 56px; }
.explain__grid h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.explain__grid p { font-size: 1.08rem; color: var(--muted); }
main > .explain + .covers, .page-why main > .explain { padding-top: 0; }
.page-why main > .explain { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 0; }
main > .covers { background: var(--concrete); }
.covers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.covers__list { margin: 0; display: grid; gap: 10px; }
.covers__list > div { padding: 18px 20px 18px 54px; background: var(--white); position: relative; }
.covers__list > div::before { content: ""; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; background: var(--green); }
.covers__list--plain > div::before { background: var(--yellow); outline: 2px solid var(--black); outline-offset: -2px; }
.covers__list dt { font-weight: 800; font-stretch: var(--wide); font-size: 1.08rem; margin-bottom: 4px; }
.covers__list dd { margin: 0; color: var(--muted); }
main > .more { padding-block: 56px; border-top: 1px solid var(--line); }
.more h2 { font-size: 1.4rem; }
.more__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more__list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--black); text-decoration: none; color: var(--black); font-weight: 700; font-size: 1.05rem; transition: background .15s; }
.more__list a:hover { background: var(--yellow); color: var(--black); }
.more__list img { width: 44px; height: 44px; }
.more__list .ico { margin-left: auto; }

/* Qui sommes-nous */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__text p { font-size: 1.08rem; }
.about__text p:not(.lead) { color: var(--muted); }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 18px 18px 0 var(--yellow); }

/* Pourquoi une décennale */
.reasons__list { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.reasons__list li { counter-increment: r; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 26px 0; border-top: 2px solid var(--black); }
.reasons__list li::before { content: counter(r); grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; background: var(--yellow); font-size: 1.5rem; font-weight: 900; font-stretch: 125%; }
.reasons__list h2 { font-size: 1.5rem; margin-bottom: 6px; }
.reasons__list p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.reasons__end { margin-top: 26px; padding: 22px 24px; background: var(--black); color: var(--white); font-size: 1.1rem; font-weight: 600; }

/* Contact */
.address__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.address p { display: flex; gap: 10px; }
.address p .ico { margin-top: .3em; }
.address__map { width: 100%; height: 340px; border: 2px solid var(--black); background: var(--concrete); }

/* Nomenclatures */
.nomen__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.nomen__side { position: sticky; top: 140px; display: grid; gap: 16px; }
.nomen__search { display: grid; gap: 8px; font-weight: 700; }
.nomen__search input { width: 100%; font: 400 1rem/1.4 var(--font); padding: 12px 14px; border: 2px solid var(--black); border-radius: var(--radius); }
.nomen__search input:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.nomen__count { margin: 0; font-size: .9rem; color: var(--muted); }
.nomen__toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nomen__toc a { display: block; padding: 6px 12px; color: var(--text); text-decoration: none; font-size: .95rem; }
.nomen__toc a:hover { color: var(--black); background: var(--yellow-pale); }
.nomen__help { padding: 18px; background: var(--yellow); }
.nomen__help p { font-weight: 600; font-size: .96rem; }
.nomen__lot + .nomen__lot { margin-top: 48px; }
.nomen__lot h2 { font-size: 1.5rem; padding-bottom: 12px; border-bottom: 4px solid var(--black); margin-bottom: 0; }
.nomen__item { border-bottom: 1px solid var(--line); }
.nomen__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.nomen__item summary::-webkit-details-marker { display: none; }
.nomen__item summary:hover { color: var(--green-text); }
.nomen__item summary .ico { transition: transform .2s; }
.nomen__item[open] summary .ico { transform: rotate(180deg); }
.nomen__item[open] summary { color: var(--black); }
.nomen__body { padding: 0 4px 20px; color: var(--muted); max-width: 70ch; }
.nomen__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.nomen__body li::marker { color: var(--green-text); }
.nomen__empty { padding: 20px; background: var(--concrete); font-weight: 600; }
.nomen__other { margin-top: 40px; }
.nomen__item.is-hidden, .nomen__lot.is-hidden { display: none; }

/* Actualités (accueil, liste, article) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-bottom: 5px solid var(--black); }
.post-card__img { aspect-ratio: 16 / 10; display: block; overflow: hidden; background: var(--black); }
.post-card__img:empty { background: url("../img/logo-blanc.webp") center / 46% no-repeat, var(--black); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.post-card__cat { color: var(--green-text); font-weight: 700; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--black); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.news__cta { margin: 36px 0 0; }
main > .news--list, main > .news--related { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.news__head { margin-bottom: 28px; }
.news__empty { padding: 28px; background: var(--concrete); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 8px 14px; border: 2px solid rgba(255, 255, 255, .3); color: var(--on-dark); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--yellow); color: var(--yellow); }
.chip.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--black); text-decoration: none; color: var(--black); font-weight: 700; }
.pagination span { background: var(--black); color: var(--yellow); }
.pagination a:hover { background: var(--yellow); }

.preview-bar { background: var(--yellow); color: var(--black); text-align: center; padding: 10px 20px; font-weight: 600; }
.post-hero { padding-block: 54px 30px; }
.post-hero .breadcrumb { color: var(--muted); }
.post-hero .breadcrumb a { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.post-hero__cat { display: inline-block; margin-bottom: 14px; padding: 5px 10px; background: var(--yellow); color: var(--black); font-weight: 700; text-decoration: none; font-size: .86rem; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .92rem; }
.post-hero__meta img { width: 40px; height: 40px; border: 1px solid var(--line); }
.post-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-cover { width: min(1080px, 100% - 40px); margin: 0 auto 44px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.post-layout { width: min(1080px, 100% - 40px); margin: 0 auto 84px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 54px; align-items: start; }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.post-toc { position: sticky; top: 140px; font-size: .92rem; border-top: 4px solid var(--black); padding-top: 14px; }
.post-toc p { font-weight: 800; margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.post-toc a { color: var(--muted); text-decoration: none; }
.post-toc a:hover { color: var(--black); }
.post-content { font-size: 1.08rem; max-width: 720px; }
.post-content h2 { font-size: 1.75rem; margin-top: 1.6em; }
.post-content h3 { margin-top: 1.4em; }
.post-content img { margin: 1.4em 0; }
.post-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--yellow); font-size: 1.2rem; font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li { margin-bottom: .4em; }
.post-content li::marker { color: var(--green-text); }
.post-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 54px; padding: 26px; background: var(--yellow); }
.post-author img { width: 76px; height: 76px; background: var(--white); padding: 6px; flex: none; }
.post-author__name { font-size: 1.2rem; font-weight: 800; font-stretch: var(--wide); margin-bottom: 6px; }
.post-author p { font-size: .97rem; }

/* Pages légales */
.legal { width: min(820px, 100% - 40px); margin: 0 auto; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal-site { color: var(--muted); }
.legal .todo { padding: 14px 18px; background: var(--yellow-pale); }

/* Pied de page */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding: 56px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr; gap: 44px; }
.footer__brand img { width: 220px; margin-bottom: 18px; }
.footer__brand p { max-width: 32ch; }
.footer__title { font-weight: 800; font-stretch: var(--wide); color: var(--yellow); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .btn--primary { color: var(--black); }
.site-footer .btn--primary:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.footer__contact li, .footer__contact a { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer__contact .ico { color: var(--yellow); margin-top: .25em; }
.footer__contact + .btn { margin-top: 22px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .3); }
.footer__social a:hover { background: var(--yellow); color: var(--black); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { margin-top: 48px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }

/* Tablette : menu en panneau */
@media (max-width: 1320px) {
  .burger { display: flex; }
  .nav-wrap { position: fixed; top: 118px; right: 0; bottom: 0; left: 0; background: var(--white); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; margin: 0; }
  .nav-wrap:has(.nav.open) { transform: none; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 40px; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.08rem; }
  .nav > li > a::after, .nav > li > button::after { display: none; }
  .nav__dropdown { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; }
  .nav__has-sub.open > .nav__dropdown { display: block; }
  .nav__cta { margin: 20px 0 0; }
  .nav > li.nav__cta { border: 0; }
  .nav__cta .btn { width: 100%; }
  .activities__list { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .insurers__inner { grid-template-columns: 1fr; gap: 24px; }
  .insurers__title { max-width: none; }
}

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; gap: 16px; font-size: .8rem; }
  .navbar { min-height: 68px; }
  .navbar__logo img, .is-scrolled .navbar__logo img { width: 156px; }
  .nav-wrap { top: 104px; }
  .hero__grid, .act-hero__grid, .rdv__grid, .about__grid, .address__grid, .trades__grid, .situations__grid, .why__grid, .explain__grid, .covers__grid, .nomen__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-right: 18px; }
  .hero__stamp { left: 12px; bottom: 12px; width: 132px; padding: 12px; }
  .hero__stamp strong { font-size: 2rem; }
  .act-hero__img { margin-left: 18px; }
  .why__intro, .nomen__side { position: static; }
  .why__list--row { grid-template-columns: 1fr; }
  .why__list--row > div:nth-last-child(2) { border-bottom: 0; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps__list li::after, .steps__list li::before { display: none; }
  .situations__list { grid-template-columns: 1fr; }
  .situations__text { padding-bottom: 0; }
  .situations__img { width: min(320px, 80%); }
  .insurers__list { grid-template-columns: repeat(3, 1fr); }
  .more__list { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; }
  .contact-form__row { grid-template-columns: 1fr; }
  .rod { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .rod__bar { grid-column: 1 / -1; grid-row: 2; margin-bottom: 26px; }
  .rod__end { text-align: right; }
  .rod__bar span { font-size: .72rem; }
  .rod__bar li:nth-child(n+2):nth-child(-n+9):not(:nth-child(5)) span { display: none; }
}
@media (max-width: 560px) {
  .activities__list, .steps__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btns .btn { width: 100%; }
  .topbar a:last-child { display: none; }
  .reasons__list li { grid-template-columns: 1fr; }
  .reasons__list li::before { grid-row: auto; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
