/* gestion-de-patrimoine-lille.fr
   Brique et beffroi : craie, ardoise, rouge brique, or des façades flamandes.
   Angles vifs à 3 px, filets pleins, héros clair, titres en Fraunces. */

@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --craie: #F7F3EC;
  --lin: #ECE3D3;
  --blanc: #FFFFFF;
  --ardoise: #1F2933;
  --ardoise-2: #2E3B47;
  --brique: #9C3A2A;
  --brique-clair: #C4634D;
  --sable: #EBDCC6;
  --or: #E3A72B;
  --or-2: #EDBA4E;
  --encre: #1D2329;
  --encre-2: #55606A;
  --ligne: #DCD2C0;
  --titre: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --texte: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 1220px;
  --gouttiere: clamp(1rem, 4vw, 2.4rem);
  --r: 3px;
  --ombre: 0 1px 2px rgba(31,41,51,.06), 0 12px 28px -14px rgba(31,41,51,.25);
  --pignon: polygon(0 100%, 0 55%, 25% 55%, 25% 0, 75% 0, 75% 55%, 100% 55%, 100% 100%);
}

/* ---------- socle */
/* GeneratePress (thème classique) enveloppe chaque groupe dans un div
   intermédiaire : effacé pour que nos grilles s'appliquent. */
.entry-content .wp-block-group > .wp-block-group__inner-container { display: contents; }
html { scroll-behavior: smooth; }
body { background: var(--craie); color: var(--encre); font-family: var(--texte); font-size: 17.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body .site, body .site-content, body .inside-article, body .container { background: transparent; }
.site-content .content-area { width: 100%; }
.separate-containers .inside-article, .one-container .site-content { padding: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content { margin: 0; }
a { color: var(--brique); text-underline-offset: 3px; }
a:hover { color: var(--ardoise); }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 650; letter-spacing: -0.03em; color: var(--ardoise); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
strong { font-weight: 700; }
::selection { background: var(--brique); color: #fff; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
.c-wrap, .x-wrap { max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- barre et en-tête */
.c-barre { background: var(--ardoise); color: var(--sable); font-size: 0.8rem; }
.c-barre-in { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.c-barre a { color: #fff; text-decoration: none; font-weight: 700; }
@media (max-width: 700px) { .c-barre-in span { display: none; } .c-barre-in { justify-content: center; } }

.c-entete { background: rgba(247,243,236,.93); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ligne); }
.admin-bar .c-entete { top: 32px; }
.c-entete-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 80px; }
.c-marque { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.8rem; align-items: center; text-decoration: none; color: var(--ardoise); }
.c-logo { grid-row: 1 / span 2; width: 60px; height: 60px; display: grid; place-items: center; }
.c-logo img { width: 60px; height: 60px; display: block; }
.c-marque-nom { grid-column: 2; align-self: end; font-family: var(--titre); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1; }
.c-marque-ville { grid-column: 2; align-self: start; font-size: 0.8rem; color: var(--brique); font-weight: 700; letter-spacing: 0.04em; margin-top: 0.3rem; }

.c-nav { display: flex; align-items: center; gap: 1.4rem; }
.c-nav-liste { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.c-nav-liste > li { position: relative; }
.c-nav-liste a { color: var(--ardoise); text-decoration: none; font-size: 0.96rem; font-weight: 650; padding: 0.6rem 0.85rem; border-radius: var(--r); display: inline-block; transition: background .15s, color .15s; }
.c-nav-liste > li > a:hover, .c-nav-liste > li:focus-within > a { background: var(--lin); color: var(--brique); }
.c-nav-liste .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 0.5rem; opacity: .7; }
.c-nav-liste .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); border-top: 3px solid var(--brique); list-style: none; margin: 0; padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.c-nav-liste .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.c-nav-liste li:hover > .sub-menu, .c-nav-liste li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.c-nav-liste .sub-menu a { display: block; padding: 0.55rem 0.85rem; font-weight: 600; }
.c-nav-liste .sub-menu a:hover { background: var(--craie); color: var(--brique); }
.c-entete-cta { background: var(--or); color: #fff !important; text-decoration: none; padding: 0.8rem 1.35rem; font-weight: 700; font-size: 0.95rem; border-radius: var(--r); transition: background .15s, transform .15s; }
.c-entete-cta:hover { background: var(--or-2); transform: translateY(-1px); }

.c-burger { display: none; background: var(--lin); border: 0; border-radius: var(--r); width: 48px; height: 48px; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.c-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ardoise); transition: transform .2s; }
.c-menu-ouvert .c-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.c-menu-ouvert .c-burger span:nth-child(2) { opacity: 0; }
.c-menu-ouvert .c-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  .c-burger { display: flex; }
  .c-entete-in { flex-wrap: wrap; }
  .js .c-nav { display: none; }
  .c-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1.25rem; }
  .c-menu-ouvert .c-nav { display: flex; }
  .c-nav-liste { flex-direction: column; gap: 0.1rem; }
  .c-nav-liste a { display: block; }
  .c-nav-liste .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: transparent; padding: 0 0 0 1rem; display: none; }
  .c-nav-liste .c-ouvert > .sub-menu, .c-nav-liste li:focus-within > .sub-menu { display: block; }
  .c-entete-cta { margin-top: 1rem; text-align: center; }
}

/* ---------- hero : nuit qui descend sur le lac */
.x-hero { background: linear-gradient(170deg, var(--ardoise) 0%, var(--ardoise-2) 55%, #4A2620 100%); color: #EDE6DA; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.x-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 90px); background: var(--craie); clip-path: polygon(0 100%, 0 70%, 8% 45%, 14% 60%, 22% 25%, 30% 50%, 37% 30%, 45% 62%, 54% 38%, 63% 58%, 72% 20%, 80% 48%, 88% 35%, 95% 55%, 100% 40%, 100% 100%); z-index: 0; }
.x-hero::after { content: ""; position: absolute; right: 12%; top: 8%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(227,167,43,.2), transparent 65%); pointer-events: none; }
.x-hero-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.x-hero .x-surtitre { color: var(--sable); border-color: rgba(235,220,198,.35); }
.x-hero .x-surtitre::before { background: var(--or); }
.x-h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; margin: 1.1rem 0 1.4rem; }
.x-h1 em { font-style: normal; color: var(--or-2); }
.x-accroche { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #D9CFBF; max-width: 38rem; margin-bottom: 1.6rem; }
.x-puces { list-style: none; padding: 0; margin: 0 0 2.2rem; display: grid; gap: 0.6rem; }
.x-puces li { padding-left: 1.9rem; position: relative; color: #F3EEE5; }
.x-puces li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 1rem; height: 0.55rem; background: var(--brique-clair); clip-path: var(--pignon); }
.x-hero-visuel { background: rgba(255,255,255,.05); border: 1px solid rgba(235,220,198,.18); border-radius: var(--r); padding: clamp(1rem, 2.5vw, 1.5rem); backdrop-filter: blur(4px); }
.x-hero-visuel svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .x-hero-grille { grid-template-columns: 1fr; } }
.x-fil { font-size: 0.85rem; color: #B5AB9B; margin-bottom: 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.x-fil a { color: #EDE6DA; }
.x-fil-sep { opacity: .5; }

/* ---------- boutons */
.wp-block-buttons.x-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-button .wp-block-button__link { border-radius: var(--r); font-family: var(--texte); font-weight: 700; font-size: 1rem; padding: 1rem 1.6rem; transition: all .15s; border: 2px solid transparent; }
.wp-block-button.is-style-primaire .wp-block-button__link { background: var(--or); color: #fff; }
.wp-block-button.is-style-primaire .wp-block-button__link:hover { background: var(--or-2); transform: translateY(-1px); }
.wp-block-button.is-style-secondaire .wp-block-button__link { background: transparent; color: var(--brique); border-color: var(--ligne); }
.wp-block-button.is-style-secondaire .wp-block-button__link:hover { border-color: var(--brique); }
.x-hero .wp-block-button.is-style-secondaire .wp-block-button__link, .x-cta .wp-block-button.is-style-secondaire .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.3); }
.x-hero .wp-block-button.is-style-secondaire .wp-block-button__link:hover, .x-cta .wp-block-button.is-style-secondaire .wp-block-button__link:hover { border-color: #fff; }

/* ---------- sections */
.x-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.x-section:nth-of-type(even) { background: var(--blanc); }
.x-entete { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.x-surtitre { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--titre); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brique); margin: 0 0 1rem; }
.x-surtitre::before { content: ""; width: 18px; height: 10px; background: currentColor; clip-path: var(--pignon); }
.x-titre { margin: 0 0 1rem; }
.x-intro { font-size: 1.12rem; color: var(--encre-2); margin: 0; }
.x-section p, .x-section li { max-width: 46rem; }
.x-section .x-wrap > p, .x-section .x-wrap > ul, .x-section .x-wrap > ol, .x-section .x-wrap > h3 { margin-bottom: 1.1rem; }
.x-section .x-wrap > h3 { margin-top: 2.25rem; }
.x-section .x-wrap > ul { padding-left: 1.2rem; }
.x-section .x-wrap > ul li::marker { color: var(--brique); }

/* résumé de tête : panneau translucide qui chevauche la ligne de crête */
.x-en-bref { max-width: calc(var(--large) - 2 * var(--gouttiere)); margin: calc(-1 * clamp(2rem, 4vw, 3rem)) auto 0; position: relative; z-index: 2; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); border-left: 4px solid var(--brique); padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.25rem); display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; }
@media (max-width: 1260px) { .x-en-bref { margin-inline: var(--gouttiere); } }
.x-en-bref-titre { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; color: var(--ardoise); margin: 0; }
.x-en-bref-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem 2rem; font-size: 0.98rem; }
.x-en-bref-liste li { padding-left: 1.3rem; position: relative; }
.x-en-bref-liste li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
@media (max-width: 800px) { .x-en-bref { grid-template-columns: 1fr; } .x-en-bref-liste { grid-template-columns: 1fr; } }

/* chiffres : cartes avec une jauge de crête */
.x-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-block: 2rem; }
.x-chiffre { background: var(--ardoise); color: #EDE6DA; border-radius: var(--r); padding: 1.6rem 1.5rem 1.4rem; position: relative; overflow: hidden; }
.x-chiffre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--brique); clip-path: polygon(0 100%, 0 60%, 15% 20%, 30% 70%, 48% 0, 64% 55%, 80% 25%, 100% 65%, 100% 100%); opacity: .8; }
.x-chiffre-valeur { font-family: var(--titre); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -0.04em; color: #fff; margin: 0 0 0.6rem; }
.x-chiffre-libelle { margin: 0; font-size: 0.96rem; }
.x-chiffre-source { margin: 0.6rem 0 0.8rem; font-size: 0.75rem; color: #A89E8E; }

/* cartes */
.x-cartes { display: grid; gap: 1rem; }
.x-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.x-section:nth-of-type(even) .x-carte { background: var(--craie); }
.x-carte::before { content: ""; position: absolute; left: 1.6rem; top: -1px; width: 44px; height: 4px; background: var(--brique); border-radius: 0 0 4px 4px; }
.x-carte:has(.x-carte-lien):hover { border-color: var(--brique-clair); box-shadow: var(--ombre); transform: translateY(-2px); }
.x-carte-titre { margin: 0.4rem 0 0.6rem; }
.x-carte p { margin: 0 0 0.75rem; font-size: 0.98rem; color: var(--encre-2); }
.x-carte-lien { margin-top: auto !important; padding-top: 0.5rem; }
.x-lien-fleche { font-weight: 700; text-decoration: none; }
.x-lien-fleche::after { content: " →"; }
.x-carte-lien a::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
@media (max-width: 960px) { .x-col-3, .x-col-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .x-col-2, .x-col-3, .x-col-4 { grid-template-columns: 1fr; } }

/* étapes : un sentier qui monte */
.x-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; counter-reset: e; }
.x-etape { background: var(--blanc); border-radius: var(--r); padding: 1.6rem; border: 1px solid var(--ligne); position: relative; }
.x-section:nth-of-type(even) .x-etape { background: var(--craie); }
.x-etape-num { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 36px; padding: 0 0.6rem; border-radius: var(--r); background: var(--ardoise); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 0.95rem; margin: 0 0 1rem; }
.x-etape:nth-child(2) .x-etape-num { background: var(--brique); }
.x-etape:nth-child(3) .x-etape-num, .x-etape:nth-child(n+4) .x-etape-num { background: var(--or); }
.x-etape-titre { margin: 0 0 0.5rem; }
.x-etape p:last-child { color: var(--encre-2); margin: 0; }

.x-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.x-2col p { margin-bottom: 1rem; }
@media (max-width: 800px) { .x-2col { grid-template-columns: 1fr; } }

/* encadré */
.x-encadre { background: var(--lin); border-radius: var(--r); padding: 1.5rem 1.75rem; margin-block: 2rem; max-width: 52rem; border-left: 4px solid var(--brique); }
.x-encadre-attention { background: #FBF1D9; border-left-color: var(--or); }
.x-encadre-titre { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--ardoise); }
.x-encadre p:last-child { margin-bottom: 0; }

.x-citation { margin: 2.5rem 0; padding: 2rem 2.25rem; background: var(--ardoise); color: #EDE6DA; border-radius: var(--r); max-width: 52rem; position: relative; }
.x-citation::before { content: "“"; position: absolute; left: 1.2rem; top: -0.4rem; font-family: var(--titre); font-size: 5rem; color: var(--or); line-height: 1; }
.x-citation-texte { font-family: var(--titre); font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.35; margin: 0 0 0.8rem; color: #fff; letter-spacing: -0.02em; }
.x-citation-auteur { font-size: 0.88rem; margin: 0; opacity: .8; }

.x-tableau { margin: 2rem 0; overflow-x: auto; background: var(--blanc); border-radius: var(--r); border: 1px solid var(--ligne); }
.x-tableau table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
.x-tableau th { text-align: left; font-family: var(--titre); font-weight: 600; font-size: 0.85rem; background: var(--ardoise); color: #fff; padding: 0.9rem 1.1rem; }
.x-tableau td { border-bottom: 1px solid var(--ligne); padding: 0.85rem 1.1rem; vertical-align: top; }
.x-tableau tr:nth-child(even) td { background: var(--craie); }
.x-tableau tr:last-child td { border-bottom: 0; }
.x-tableau td:first-child { font-weight: 700; color: var(--ardoise); }

/* FAQ */
.x-faq { display: grid; gap: 0.6rem; max-width: 54rem; }
.x-faq .wp-block-details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 0 1.4rem; margin: 0; transition: border-color .15s; }
.x-faq .wp-block-details[open] { border-color: var(--brique-clair); }
.x-section:nth-of-type(even) .x-faq .wp-block-details { background: var(--craie); }
.x-faq summary { list-style: none; cursor: pointer; font-family: var(--titre); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.35; padding: 1.15rem 2.6rem 1.15rem 0; position: relative; color: var(--ardoise); }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px; background: var(--lin); color: var(--brique); display: grid; place-items: center; font-weight: 700; transition: transform .2s; }
.x-faq details[open] summary::after { transform: rotate(45deg); }
.x-faq details p { color: var(--encre-2); margin: 0 0 1.3rem; }

/* agréments */
.x-agrements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.x-agrement { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.4rem; }
.x-section:nth-of-type(even) .x-agrement { background: var(--craie); }
.x-agrement-sigle { font-family: var(--titre); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--brique); margin: 0 0 0.5rem; }
.x-agrement-texte { font-size: 0.93rem; color: var(--encre-2); margin: 0; }
.x-note { margin-top: 1.75rem; font-size: 0.98rem; }
@media (max-width: 900px) { .x-agrements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .x-agrements { grid-template-columns: 1fr; } }
.x-zones { margin-top: 1.75rem; font-size: 0.95rem; color: var(--encre-2); background: var(--lin); border-radius: var(--r); padding: 1rem 1.25rem; }

.x-liens { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; max-width: none !important; }
.x-liens li { max-width: none !important; }
.x-liens a { display: block; height: 100%; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--encre); background: var(--blanc); border-radius: var(--r); border: 1px solid var(--ligne); transition: border-color .15s, transform .15s; }
.x-section:nth-of-type(even) .x-liens a { background: var(--craie); }
.x-liens a strong { display: block; font-family: var(--titre); font-weight: 650; letter-spacing: -0.02em; color: var(--ardoise); }
.x-liens a span { display: block; font-size: 0.9rem; color: var(--encre-2); margin-top: 0.2rem; }
.x-liens a:hover { border-color: var(--brique); transform: translateY(-2px); }

/* CTA */
.x-cta { background: linear-gradient(160deg, var(--ardoise), #4A2620); color: #EDE6DA; padding-block: clamp(3.5rem, 8vw, 5.5rem); position: relative; overflow: hidden; }
.x-cta::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(30px, 5vw, 60px); background: var(--craie); clip-path: polygon(0 0, 100% 0, 100% 30%, 90% 70%, 78% 35%, 66% 80%, 52% 40%, 40% 75%, 26% 30%, 12% 65%, 0 35%); }
.x-cta-titre { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 40rem; margin: 0 0 1rem; position: relative; }
.x-cta-texte { color: #D9CFBF; font-size: 1.1rem; max-width: 38rem; margin-bottom: 2rem; }
.x-cta-note { margin: 1.5rem 0 0; font-size: 0.85rem; color: #A89E8E; }
.x-cta-avec-portrait { display: grid !important; grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; position: relative; }
.x-cta-portrait img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid rgba(235,220,198,.3); padding: 6px; background: rgba(255,255,255,.05); }
.x-cta-portrait figcaption { color: #D9CFBF; text-align: left; font-size: 0.92rem; margin-top: 0.6rem; }
@media (max-width: 720px) { .x-cta-avec-portrait { grid-template-columns: 1fr; } .x-cta-visage { order: -1; max-width: 130px; } .x-cta-portrait figcaption { display: none; } }

.x-section-mentions { padding-block: 1.5rem 2.5rem; background: transparent !important; }
.x-mentions-texte { font-size: 0.8rem; color: var(--encre-2); max-width: 60rem !important; margin: 0; }

/* ---------- photos du conseiller : couleur, cadre fin façon panneau */
.x-photo { margin: 0; }
.x-photo img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.x-photo figcaption { font-size: 0.9rem; color: var(--encre-2); margin-top: 0.7rem; text-align: left; }
.x-hero-media { max-width: 430px; justify-self: end; width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(235,220,198,.22); border-radius: calc(var(--r) + 6px); padding: 10px; }
.x-photo-hero img { aspect-ratio: 4 / 5; object-fit: cover; }
.x-photo-hero figcaption { color: var(--sable); font-weight: 600; padding: 0.3rem 0.4rem 0.1rem; margin-top: 0.5rem; }
@media (max-width: 900px) { .x-hero-media { justify-self: start; max-width: 340px; } }
.x-conseiller { align-items: center; }
.x-photo-conseiller img { aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--ombre); }
.x-photo-large { margin-top: 2.5rem; }
.x-photo-large img { aspect-ratio: 16 / 9; object-fit: cover; }
.x-puces-conseiller { list-style: none; padding: 0 !important; margin: 1.5rem 0 !important; display: grid; gap: 0.6rem; }
.x-puces-conseiller li { padding-left: 1.7rem; position: relative; }
.x-puces-conseiller li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 1rem; height: 0.6rem; background: var(--brique); clip-path: var(--pignon); }

/* ---------- saison fiscale */
.x-fiscal-zone { margin-block: clamp(2rem, 4vw, 3rem) 0; }
.c-fiscal[hidden] { display: none; }
.c-fiscal { background: linear-gradient(120deg, #FBF1D9, #FDF8EA); border: 1px solid #EBD49A; border-radius: var(--r); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.5rem, 4vw, 2.75rem); position: relative; overflow: hidden; }
.c-fiscal-surtitre { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 0.7rem; font-family: var(--titre); font-size: 0.74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--or); }
.c-fiscal-jours { background: var(--or); color: #fff; border-radius: 6px; padding: 0.25rem 0.6rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.c-fiscal h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.6rem; }
.c-fiscal-corps { color: var(--encre-2); margin: 0; max-width: 40rem; }
.c-fiscal-bouton { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ardoise); color: #fff !important; text-decoration: none; font-weight: 700; padding: 1rem 1.5rem; border-radius: var(--r); white-space: nowrap; transition: background .15s; }
.c-fiscal-bouton:hover { background: var(--brique); }
.c-fiscal-bouton svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .c-fiscal { grid-template-columns: 1fr; } .c-fiscal-bouton { white-space: normal; justify-content: center; } }

/* ---------- formulaire Tally */
.c-form-zone { max-width: 46rem; background: var(--blanc); border: 1px solid var(--ligne); border-top: 4px solid var(--brique); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.c-form-zone iframe { display: block; min-height: 600px; }
.c-form-alt { font-size: 0.92rem; color: var(--encre-2); margin: 1rem 0 0; }

/* ---------- pied */
.c-pied { background: var(--ardoise); color: #BDB4A5; font-size: 0.93rem; padding-top: clamp(3rem, 6vw, 4.5rem); position: relative; }
.c-pied a { color: #fff; text-decoration: none; }
.c-pied a:hover { color: var(--or-2); }
.c-pied-grille { display: grid; grid-template-columns: minmax(0, 1.6fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(235,220,198,.12); }
.c-pied-logo { width: 84px; height: 84px; display: block; margin-bottom: 1rem; }
.c-pied-marque { font-family: var(--titre); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 0 0.75rem; letter-spacing: -0.03em; }
.c-pied-marque span { display: block; font-family: var(--texte); font-weight: 600; font-size: 0.85rem; letter-spacing: 0; color: var(--brique-clair); margin-top: 0.2rem; }
.c-pied-titre { font-family: var(--titre); font-weight: 600; color: #fff; margin: 0 0 1rem; }
.c-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.c-pied-legal { padding-block: 1.75rem 2.5rem; font-size: 0.8rem; color: #958C7E; }
.c-pied-legal p { margin: 0 0 0.5rem; }
@media (max-width: 900px) { .c-pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; } .c-pied-cabinet { grid-column: 1 / -1; } }
@media (max-width: 520px) { .c-pied-grille { grid-template-columns: 1fr; } }

/* Pages non refondues : titre du thème recadré sur notre grille */
.entry-header { max-width: var(--large); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gouttiere) 0; }
.entry-header .entry-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; margin: 0; }

.site-footer .footer-bar, .generate-back-to-top { display: none; }

/* Bordures par défaut du bloc Tableau de WordPress : on ne garde que nos filets horizontaux */
.x-tableau th, .x-tableau td { border-left: 0; border-right: 0; border-top: 0; }
.x-tableau table { border: 0; }

/* ================= formes propres à Lille ================= */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.012em; font-variation-settings: "opsz" 96; }
h3 { font-variation-settings: "opsz" 36; }
.c-marque-nom { letter-spacing: -0.02em; }

/* Les boutons d'action sont en or : texte ardoise pour rester lisible. */
.c-entete-cta, .wp-block-button.is-style-primaire .wp-block-button__link, .c-fiscal-jours { color: var(--ardoise) !important; }
.wp-block-button.is-style-primaire .wp-block-button__link, .c-entete-cta { box-shadow: 4px 4px 0 var(--ardoise); }
.wp-block-button.is-style-primaire .wp-block-button__link:hover, .c-entete-cta:hover { box-shadow: 2px 2px 0 var(--ardoise); transform: translate(2px, 2px); }
.x-cta .wp-block-button.is-style-primaire .wp-block-button__link { box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.x-etape:nth-child(3) .x-etape-num, .x-etape:nth-child(n+4) .x-etape-num { color: var(--ardoise); }
.x-etape:nth-child(2) .x-etape-num { background: var(--brique); }

/* Héros clair : mur de briques à peine visible, ligne de pignons en bas. */
.x-hero { background: var(--lin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='40'%3E%3Cpath d='M0 .5h64M0 20.5h64M16 0v20M48 0v20M0 20v20M32 20v20' fill='none' stroke='%23DFD4C0' stroke-width='1'/%3E%3C/svg%3E"); color: var(--encre); }
.x-hero::before { clip-path: polygon(0 100%, 0 60%, 6% 60%, 6% 30%, 12% 30%, 12% 0, 20% 0, 20% 30%, 26% 30%, 26% 60%, 34% 60%, 34% 40%, 40% 40%, 40% 15%, 48% 15%, 48% 40%, 54% 40%, 54% 60%, 62% 60%, 62% 30%, 68% 30%, 68% 0, 76% 0, 76% 30%, 82% 30%, 82% 60%, 90% 60%, 90% 35%, 96% 35%, 96% 60%, 100% 60%, 100% 100%); height: clamp(28px, 4.5vw, 56px); }
.x-hero::after { display: none; }
.x-hero .x-surtitre { color: var(--brique); }
.x-hero .x-surtitre::before { background: var(--brique); }
.x-h1 { color: var(--ardoise); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.018em; font-variation-settings: "opsz" 144; }
.x-cta-titre, .c-fiscal h2 { letter-spacing: -0.012em; }
.x-h1 em { font-style: normal; color: var(--brique); background: linear-gradient(transparent 68%, var(--or) 68% 92%, transparent 92%); }
.x-accroche { color: var(--encre-2); }
.x-puces li { color: var(--encre); }
.x-puces li::before { background: var(--brique); width: 0.95rem; height: 0.8rem; top: 0.4em; }
.x-fil { color: var(--encre-2); }
.x-fil a { color: var(--brique); }
.x-hero .wp-block-button.is-style-secondaire .wp-block-button__link { color: var(--ardoise); border-color: var(--ardoise); }
.x-hero .wp-block-button.is-style-secondaire .wp-block-button__link:hover { border-color: var(--brique); color: var(--brique); }
.x-hero-visuel, .x-hero-media { background: var(--blanc); border: 2px solid var(--ardoise); border-radius: var(--r); box-shadow: 10px 10px 0 var(--or); backdrop-filter: none; -webkit-backdrop-filter: none; }
.x-photo-hero figcaption { color: var(--ardoise); }

/* Motif : pignons flamands et beffroi. */
.f-soleil { fill: var(--or); }
.f-brique { fill: var(--brique); }
.f-brique-2 { fill: var(--brique-clair); }
.f-pierre { fill: var(--sable); stroke: var(--ardoise); stroke-width: 1; }
.f-beffroi { fill: var(--ardoise-2); }
.f-beffroi-2 { fill: var(--ardoise); }
.f-cadran { fill: var(--craie); }
.f-aiguille { stroke: var(--ardoise); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.f-fenetre { fill: var(--ardoise); opacity: .78; }
.f-beffroi + .f-fenetre, .f-aiguille ~ .f-fenetre { fill: var(--or); opacity: .9; }
.f-sol { stroke: var(--ardoise); stroke-width: 2.5; }
.f-pave { stroke: var(--ligne); stroke-width: 2; stroke-linecap: round; }

/* Surtitres, cartes et chiffres : filets pleins plutôt que des ombres. */
.x-surtitre::before { width: 14px; height: 12px; }
.x-en-bref { border-left: 0; border: 2px solid var(--ardoise); box-shadow: 8px 8px 0 var(--brique); }
.x-en-bref-liste li::before { border-radius: 0; background: var(--brique); }
.x-chiffre::after { clip-path: none; height: 8px; opacity: 1; background: repeating-linear-gradient(90deg, var(--brique) 0 30px, var(--ardoise) 30px 33px); }
.x-chiffre-valeur { color: var(--or-2); font-weight: 600; }
.x-carte::before { border-radius: 0; background: var(--brique); height: 5px; }
.x-carte:has(.x-carte-lien):hover { border-color: var(--ardoise); box-shadow: 6px 6px 0 var(--or); }
.x-liens a:hover { border-color: var(--ardoise); box-shadow: 5px 5px 0 var(--or); }
.x-faq summary::after { border-radius: 0; background: var(--ardoise); color: var(--or); }
.x-faq .wp-block-details[open] { border-color: var(--ardoise); }
.x-encadre-attention { border-left-color: var(--or); }
.c-form-zone { border: 2px solid var(--ardoise); border-top-width: 6px; }

/* Appel final : ardoise vers brique sombre, ligne de pignons en haut. */
.x-cta::before { clip-path: polygon(0 0, 100% 0, 100% 40%, 94% 40%, 94% 70%, 88% 70%, 88% 100%, 80% 100%, 80% 70%, 74% 70%, 74% 40%, 62% 40%, 62% 65%, 56% 65%, 56% 90%, 48% 90%, 48% 65%, 42% 65%, 42% 40%, 30% 40%, 30% 70%, 24% 70%, 24% 100%, 16% 100%, 16% 70%, 10% 70%, 10% 40%, 0 40%); height: clamp(22px, 3.5vw, 44px); }
.x-cta-portrait img { border: 2px solid var(--or); padding: 0; }
.c-fiscal-bouton:hover { background: var(--brique); }
.c-pied { border-top: 6px solid var(--brique); }
