/* gestion-de-patrimoine-bordeaux.fr
   Pierre blonde et grand vin : calcaire chaud, rouge bordeaux, vert vigne.
   Formes arrondies, cartes généreuses, titres en Bricolage Grotesque. */

@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --creme: #FBF7F0;
  --pierre: #F2E9DA;
  --pierre-2: #E6D6BC;
  --vin: #6B1E33;
  --vin-2: #8A2B45;
  --vin-sombre: #4A1222;
  --encre: #2A1F1B;
  --encre-2: #66554D;
  --vigne: #3E5A3A;
  --or: #C99A4A;
  --titre: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --texte: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 1200px;
  --gouttiere: clamp(1rem, 4vw, 2.25rem);
  --r: 22px;
  --r-s: 14px;
  --ombre: 0 1px 2px rgba(74,18,34,.05), 0 10px 30px -12px rgba(74,18,34,.18);
}

/* ---------- socle */
/* GeneratePress est un thème classique : WordPress enveloppe le contenu de chaque
   groupe dans un div intermédiaire. On l'efface 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(--creme); color: var(--encre); font-family: var(--texte); font-size: 17.5px; line-height: 1.68; -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(--vin); text-underline-offset: 3px; }
a:hover { color: var(--vin-2); }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; letter-spacing: -0.025em; color: var(--encre); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 650; }
strong { font-weight: 650; }
::selection { background: var(--vin); color: var(--creme); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

.c-wrap, .x-wrap { max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- barre et en-tête */
.c-barre { background: var(--vin-sombre); color: #E8CFD6; 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: 600; }
@media (max-width: 700px) { .c-barre-in span { display: none; } .c-barre-in { justify-content: center; } }

.c-entete { background: rgba(251,247,240,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(107,30,51,.08); }
.admin-bar .c-entete { top: 32px; }
.c-entete-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 78px; }
.c-marque { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--encre); }
.c-marque::before { content: ""; width: 38px; height: 38px; border-radius: 50% 50% 50% 8px; background: radial-gradient(circle at 35% 35%, var(--vin-2), var(--vin) 60%, var(--vin-sombre)); flex-shrink: 0; }
.c-marque-nom { font-family: var(--titre); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1; }
.c-marque-ville { display: block; font-size: 0.78rem; color: var(--encre-2); font-weight: 500; margin-top: 0.2rem; }
.c-marque > span { display: block; }
.c-marque { flex-wrap: wrap; flex-direction: column; align-items: flex-start; padding-left: 50px; position: relative; }
.c-marque::before { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }

.c-nav { display: flex; align-items: center; gap: 1.5rem; }
.c-nav-liste { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.c-nav-liste > li { position: relative; }
.c-nav-liste a { color: var(--encre); text-decoration: none; font-size: 0.97rem; font-weight: 550; padding: 0.6rem 0.9rem; border-radius: 999px; display: inline-block; transition: background .15s; }
.c-nav-liste > li > a:hover, .c-nav-liste > li:focus-within > a { background: var(--pierre); color: var(--vin); }
.c-nav-liste .menu-item-has-children > a::after { content: "▾"; font-size: 0.75em; margin-left: 0.35rem; opacity: .6; }
.c-nav-liste .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; background: #fff; border-radius: var(--r-s); box-shadow: var(--ombre); 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: -10px 0 auto; height: 10px; }
.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.6rem 0.9rem; border-radius: 10px; font-weight: 500; }
.c-nav-liste .sub-menu a:hover { background: var(--pierre); color: var(--vin); }
.c-entete-cta { background: var(--vin); color: #fff !important; text-decoration: none; padding: 0.8rem 1.4rem; font-weight: 650; font-size: 0.95rem; border-radius: 999px; transition: background .15s, transform .15s; }
.c-entete-cta:hover { background: var(--vin-2); transform: translateY(-1px); }

.c-burger { display: none; background: var(--pierre); border: 0; border-radius: 50%; 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(--vin); 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.15rem; }
  .c-nav-liste a { display: block; }
  .c-nav-liste .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; 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 */
.x-hero { background: radial-gradient(120% 90% at 85% 10%, var(--vin-2) 0%, var(--vin) 45%, var(--vin-sombre) 100%); color: #F6E9EC; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px); }
.x-hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(201,154,74,.22), 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: #F3C9A0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: inline-flex; }
.x-h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 1.25rem 0 1.4rem; }
.x-h1 em { font-style: normal; color: #F3C9A0; }
.x-accroche { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #EAD3D9; max-width: 38rem; margin-bottom: 1.6rem; }
.x-puces { list-style: none; padding: 0; margin: 0 0 2.25rem; display: grid; gap: 0.6rem; }
.x-puces li { padding-left: 2rem; position: relative; color: #F6E9EC; }
.x-puces li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(243,201,160,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23F3C9A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.x-hero-visuel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.x-hero-visuel svg { width: 100%; height: auto; display: block; }
.p-arche { fill: none; stroke: #F2E9DA; stroke-width: 3; stroke-linejoin: round; }
.p-tablier { fill: #F2E9DA; }
.p-medaillon { fill: #C99A4A; }
.p-reflet { fill: none; stroke: #F2E9DA; stroke-width: 2; opacity: .3; stroke-dasharray: 4 5; }
.p-ligne-eau { stroke: #C99A4A; stroke-width: 1.5; opacity: .6; }
.p-onde { stroke: #F2E9DA; stroke-width: 1.5; opacity: .22; stroke-linecap: round; }
.p-lampe { stroke: #F2E9DA; stroke-width: 2; }
.p-lumiere { fill: #F3C9A0; }
.p-lune { fill: #F3C9A0; opacity: .9; }
@media (max-width: 900px) { .x-hero-grille { grid-template-columns: 1fr; } }

.x-fil { font-size: 0.85rem; color: #E0BFC7; margin-bottom: 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.x-fil a { color: #F6E9EC; }
.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: 999px; font-family: var(--texte); font-weight: 650; font-size: 1rem; padding: 1rem 1.7rem; transition: all .15s; border: 2px solid transparent; }
.wp-block-button.is-style-primaire .wp-block-button__link { background: var(--vin); color: #fff; }
.wp-block-button.is-style-primaire .wp-block-button__link:hover { background: var(--vin-2); transform: translateY(-1px); }
.wp-block-button.is-style-secondaire .wp-block-button__link { background: transparent; color: var(--vin); border-color: var(--pierre-2); }
.wp-block-button.is-style-secondaire .wp-block-button__link:hover { border-color: var(--vin); }
.x-hero .wp-block-button.is-style-primaire .wp-block-button__link { background: #F3C9A0; color: var(--vin-sombre); }
.x-hero .wp-block-button.is-style-primaire .wp-block-button__link:hover { background: #fff; }
.x-hero .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 { border-color: #fff; }

/* ---------- sections */
.x-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.x-section:nth-of-type(even) { background: var(--pierre); }
.x-entete { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.x-surtitre { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vin); background: rgba(107,30,51,.07); border-radius: 999px; display: inline-block; padding: 0.35rem 0.85rem; margin: 0 0 1rem; }
.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(--vin); }

/* résumé de tête */
.x-en-bref { max-width: calc(var(--large) - 2 * var(--gouttiere)); margin: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)) auto 0; position: relative; z-index: 2; background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: clamp(1.5rem, 3vw, 2.25rem); }
@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.15rem; color: var(--vin); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.x-en-bref-titre::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--or); }
.x-en-bref-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.8rem 2rem; font-size: 0.98rem; }
.x-en-bref-liste li { padding-left: 1.4rem; position: relative; }
.x-en-bref-liste li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--vin); transform: rotate(45deg); }
@media (max-width: 800px) { .x-en-bref-liste { grid-template-columns: 1fr; } }

/* chiffres */
.x-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-block: 2rem; }
.x-chiffre { background: #fff; border-radius: var(--r); padding: 1.6rem; box-shadow: var(--ombre); }
.x-section:nth-of-type(even) .x-chiffre { background: var(--creme); }
.x-chiffre-valeur { font-family: var(--titre); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.04em; color: var(--vin); margin: 0 0 0.6rem; }
.x-chiffre-libelle { margin: 0; font-size: 0.97rem; }
.x-chiffre-source { margin: 0.6rem 0 0; font-size: 0.76rem; color: var(--encre-2); }

/* cartes */
.x-cartes { display: grid; gap: 1.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: #fff; border-radius: var(--r); padding: 1.75rem; box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .2s; position: relative; }
.x-section:nth-of-type(even) .x-carte { background: var(--creme); }
.x-carte:has(.x-carte-lien):hover { transform: translateY(-3px); }
.x-carte::before { content: ""; width: 40px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--vin), var(--or)); margin-bottom: 1.2rem; }
.x-carte-titre { margin: 0 0 0.7rem; }
.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.75rem; }
.x-lien-fleche { font-weight: 650; text-decoration: none; }
.x-lien-fleche::after { content: " →"; transition: margin .15s; }
.x-lien-fleche:hover::after { margin-left: 4px; }
.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 */
.x-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; position: relative; }
.x-etape { background: #fff; border-radius: var(--r); padding: 1.75rem; box-shadow: var(--ombre); }
.x-section:nth-of-type(even) .x-etape { background: var(--creme); }
.x-etape-num { width: 54px; height: 54px; border-radius: 50%; background: var(--vin); color: #fff; display: grid; place-items: center; font-family: var(--titre); font-weight: 800; font-size: 1.15rem; margin: 0 0 1.2rem; }
.x-etape-titre { margin: 0 0 0.5rem; }
.x-etape p:last-child { color: var(--encre-2); margin: 0; }

/* deux colonnes */
.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: #fff; border-radius: var(--r); padding: 1.6rem 1.75rem 1.6rem 4.25rem; margin-block: 2rem; max-width: 52rem; position: relative; box-shadow: var(--ombre); }
.x-section:nth-of-type(even) .x-encadre { background: var(--creme); }
.x-encadre::before { content: "i"; position: absolute; left: 1.4rem; top: 1.6rem; width: 30px; height: 30px; border-radius: 50%; background: var(--vigne); color: #fff; display: grid; place-items: center; font-family: var(--titre); font-weight: 800; font-size: 0.95rem; }
.x-encadre-attention::before { content: "!"; background: var(--or); }
.x-encadre-titre { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; margin: 0 0 0.5rem; }
.x-encadre p:last-child { margin-bottom: 0; }

/* citation */
.x-citation { margin: 2.5rem 0; padding: 2rem 2.25rem; background: var(--vigne); color: #EEF1E7; border-radius: var(--r); max-width: 52rem; }
.x-citation-texte { font-family: var(--titre); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; margin: 0 0 0.8rem; color: #fff; }
.x-citation-auteur { font-size: 0.88rem; margin: 0; opacity: .8; }

/* tableau */
.x-tableau { margin: 2rem 0; overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--ombre); }
.x-tableau table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
.x-tableau th { text-align: left; font-weight: 700; background: var(--vin); color: #fff; padding: 0.95rem 1.1rem; }
.x-tableau td { border-bottom: 1px solid var(--pierre); padding: 0.9rem 1.1rem; vertical-align: top; }
.x-tableau tr:last-child td { border-bottom: 0; }
.x-tableau td:first-child { font-weight: 650; }

/* FAQ */
.x-faq { display: grid; gap: 0.75rem; max-width: 54rem; }
.x-faq .wp-block-details { background: #fff; border-radius: var(--r-s); box-shadow: var(--ombre); padding: 0 1.5rem; margin: 0; }
.x-section:nth-of-type(even) .x-faq .wp-block-details { background: var(--creme); }
.x-faq summary { list-style: none; cursor: pointer; font-family: var(--titre); font-weight: 650; font-size: 1.12rem; line-height: 1.3; padding: 1.2rem 2.75rem 1.2rem 0; position: relative; }
.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: 50%; background: var(--pierre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236B1E33' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/60% no-repeat; transition: transform .2s; }
.x-faq details[open] summary::after { transform: rotate(180deg); }
.x-faq details p { color: var(--encre-2); margin: 0 0 1.4rem; }

/* agréments */
.x-agrements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.x-agrement { background: #fff; border-radius: var(--r); padding: 1.5rem; box-shadow: var(--ombre); }
.x-section:nth-of-type(even) .x-agrement { background: var(--creme); }
.x-agrement-sigle { display: inline-block; font-family: var(--titre); font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--vigne); border-radius: 999px; padding: 0.3rem 0.85rem; margin: 0 0 0.85rem; }
.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: rgba(62,90,58,.08); border-radius: var(--r-s); padding: 1rem 1.25rem; }

/* liens internes */
.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: #fff; border-radius: var(--r-s); border: 1px solid var(--pierre-2); transition: border-color .15s, transform .15s; }
.x-section:nth-of-type(even) .x-liens a { background: var(--creme); }
.x-liens a strong { display: block; font-family: var(--titre); font-weight: 700; color: var(--vin); }
.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(--vin); transform: translateY(-2px); }

/* CTA */
.x-cta { padding-block: clamp(2rem, 5vw, 4rem); }
.x-cta > .x-wrap { background: var(--vigne); color: #EEF1E7; border-radius: clamp(24px, 4vw, 40px); padding: clamp(2.25rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.x-cta > .x-wrap::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.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: #DCE3D3; font-size: 1.1rem; max-width: 38rem; margin-bottom: 2rem; position: relative; }
.x-cta .x-actions { position: relative; }
.x-cta .wp-block-button.is-style-primaire .wp-block-button__link { background: #F3C9A0; color: var(--vin-sombre); }
.x-cta .wp-block-button.is-style-primaire .wp-block-button__link:hover { background: #fff; }
.x-cta .wp-block-button.is-style-secondaire .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.35); }
.x-cta-note { margin: 1.5rem 0 0; font-size: 0.85rem; color: #BFCCB6; position: relative; }

/* mentions */
.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; }

/* formulaire */
.c-form { display: grid; gap: 1rem; max-width: 46rem; background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: clamp(1.5rem, 4vw, 2.5rem); }
.c-form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .c-form-ligne { grid-template-columns: 1fr; } }
.c-form label { display: grid; gap: 0.4rem; font-size: 0.92rem; font-weight: 650; }
.c-form input, .c-form select, .c-form textarea { font: inherit; font-size: 1rem; font-weight: 400; background: var(--creme); border: 1.5px solid var(--pierre-2); border-radius: 12px; padding: 0.85rem 1rem; color: var(--encre); width: 100%; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { border-color: var(--vin); outline: 0; box-shadow: 0 0 0 4px rgba(107,30,51,.12); }
.c-form .c-form-rgpd { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 0.88rem; color: var(--encre-2); }
.c-form .c-form-rgpd input { width: auto; margin-top: 0.3rem; accent-color: var(--vin); }
.c-form button { justify-self: start; background: var(--vin); color: #fff; border: 0; border-radius: 999px; padding: 1.05rem 2rem; font: inherit; font-weight: 650; cursor: pointer; }
.c-form button:hover { background: var(--vin-2); }
.c-form-piege { position: absolute; left: -9999px; }
.c-form-ok, .c-form-erreur { padding: 1rem 1.25rem; border-radius: var(--r-s); background: rgba(62,90,58,.12); color: var(--vigne); font-weight: 600; max-width: 46rem; }
.c-form-erreur { background: rgba(170,40,40,.1); color: #8A2020; }

/* ---------- pied */
.c-pied { background: var(--encre); color: #C9BBB4; font-size: 0.93rem; padding-top: clamp(3rem, 6vw, 4.5rem); margin-top: clamp(2rem, 5vw, 4rem); border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0; }
.c-pied a { color: #fff; text-decoration: none; }
.c-pied a:hover { color: #F3C9A0; }
.c-pied-grille { display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(170px, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.c-pied-marque { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; color: #fff; margin: 0 0 0.75rem; letter-spacing: -0.03em; }
.c-pied-marque span { display: block; font-family: var(--texte); font-weight: 500; font-size: 0.85rem; letter-spacing: 0; color: #F3C9A0; margin-top: 0.2rem; }
.c-pied-titre { font-family: var(--titre); font-weight: 700; 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: #9C8C85; }
.c-pied-legal p { margin: 0 0 0.5rem; }
@media (max-width: 900px) { .c-pied-grille { grid-template-columns: 1fr 1fr; } .c-pied-cabinet { grid-column: 1 / -1; } }
@media (max-width: 520px) { .c-pied-grille { grid-template-columns: 1fr; } }

/* GeneratePress : ce qu'on neutralise */
.site-footer .footer-bar, .generate-back-to-top, .slideout-navigation, .main-navigation.has-sticky-branding { display: none !important; }

/* Pages non refondues (simulateurs) : 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.6rem); line-height: 1.05; margin: 0; }

/* ---------- photos du conseiller : couleur chaude, coins arrondis */
.x-photo { margin: 0; position: relative; }
.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.75rem; text-align: left; }
.x-hero-media { position: relative; max-width: 440px; justify-self: end; width: 100%; }
.x-photo-hero img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.x-photo-hero figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; margin: 0; background: rgba(251,247,240,.94); color: var(--vin-sombre); font-weight: 650; font-size: 0.92rem; border-radius: 999px; padding: 0.6rem 1.1rem; text-align: center; backdrop-filter: blur(6px); }
.x-hero-media::before { content: ""; position: absolute; width: 120px; height: 120px; right: -28px; top: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(243,201,160,.45), transparent 70%); }
@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; box-shadow: var(--ombre); }
.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: 2rem; position: relative; }
.x-puces-conseiller li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--vin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
/* CTA signé */
.x-cta-avec-portrait { display: grid !important; grid-template-columns: minmax(0, 1fr) 200px; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.x-cta-portrait { position: relative; }
.x-cta-portrait img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255,255,255,.14); }
.x-cta-portrait figcaption { color: #DCE3D3; text-align: center; font-size: 0.92rem; }
@media (max-width: 720px) { .x-cta-avec-portrait { grid-template-columns: 1fr; } .x-cta-visage { order: -1; max-width: 120px; } .x-cta-portrait figcaption { display: none; } }

/* ---------- logo 2AP : dans un médaillon sombre, pour que le A beige reste lisible */
.c-marque { padding-left: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.8rem; align-items: center; }
.c-marque::before { content: none; }
.c-logo { grid-row: 1 / span 2; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3A2B26, var(--encre)); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(74,18,34,.45); }
.c-logo img { width: 44px; height: 44px; display: block; }
.c-marque-nom, .c-marque-ville { grid-column: 2; }
.c-marque-nom { align-self: end; }
.c-marque-ville { align-self: start; }
.c-pied-logo { width: 88px; height: 88px; display: block; margin-bottom: 1rem; }
/* Formulaire Tally */
.c-form-zone { max-width: 46rem; background: #fff; border-radius: var(--r); box-shadow: var(--ombre); 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; }

/* Logo affiché tel quel, transparent, sans médaillon (demande du client) */
.c-logo { background: none; box-shadow: none; border-radius: 0; width: 60px; height: 60px; }
.c-logo img { width: 60px; height: 60px; }

/* Pied de page : `1.6fr repeat(auto-fit, …)` est invalide en CSS (une répétition
   automatique n'admet que des pistes de taille fixe à côté d'elle), la grille
   tombait sur une seule colonne. Première colonne large, les suivantes créées
   automatiquement, quel que soit le nombre de groupes de liens. */
.c-pied-grille { grid-template-columns: minmax(0, 1.6fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .c-pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; } }
@media (max-width: 520px) { .c-pied-grille { grid-template-columns: 1fr; } }

/* ---------- saison fiscale : carte sombre arrondie, compte à rebours doré */
.x-fiscal-zone { margin-block: clamp(2rem, 4vw, 3rem) 0; }
.c-fiscal[hidden] { display: none; }
.c-fiscal { background: var(--encre); color: #fff; border-radius: var(--r); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; box-shadow: var(--ombre); }
.c-fiscal::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--vin-2); opacity: .35; pointer-events: none; }
.c-fiscal-surtitre { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F3C9A0; }
.c-fiscal-jours { background: var(--or); color: var(--encre); border-radius: 999px; padding: 0.25rem 0.75rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.c-fiscal h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.12; margin: 0 0 0.65rem; }
.c-fiscal-corps { color: #D9CCC6; margin: 0; max-width: 40rem; }
.c-fiscal-bouton { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.6rem; background: #F3C9A0; color: var(--vin-sombre) !important; text-decoration: none; font-weight: 650; padding: 1rem 1.6rem; border-radius: 999px; white-space: nowrap; transition: background .15s, transform .15s; }
.c-fiscal-bouton:hover { background: #fff; transform: translateY(-1px); }
.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; } }

/* 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; }
