/* Ng Avocat. Mobile first : tailles fluides (clamp/min/max) et grilles auto-adaptatives.
   Une seule media query de mise en page (en-tête ≥ 75rem). Couleurs et polices : theme.json. */

:root {
	--nuit: var(--wp--preset--color--nuit);
	--or: var(--wp--preset--color--or);
	--or-fonce: var(--wp--preset--color--or-fonce);
	--ivoire: var(--wp--preset--color--ivoire);
	--blanc: var(--wp--preset--color--blanc);
	--sable: var(--wp--preset--color--sable);
	--gris: var(--wp--preset--color--gris);
	--serif: var(--wp--preset--font-family--serif);
	--sans: var(--wp--preset--font-family--sans);
	--trait: 1px solid rgb(15 31 60 / .14);
	--rayon: 12px;
	--gap: clamp(.75rem, .45rem + 1.2vw, 1.5rem);
	--entete: 4.5rem;
	--section: var(--wp--preset--spacing--70);
}

/* Base */
*, ::before, ::after { box-sizing: border-box; }
.wp-site-blocks > * { margin-block: 0; }
/* Aucun espace entre les grands blocs de la page (sinon le fond ivoire apparaît en fine ligne, ex. entre Contact et le pied de page).
   !important : selon la version de WordPress, et dans l'éditeur, l'espacement automatique entre blocs passait devant. */
:is(.ng-hero, .ng-entete, main.wp-block-group, footer.wp-block-template-part, .ng-pied) { margin-block: 0 !important; }
html { scroll-padding-block-start: calc(var(--entete) + 1.5rem); }
#presentation { scroll-margin-block-start: -1.5rem; } /* calée pile sous la navigation */
body { -webkit-font-smoothing: antialiased; }
img, svg, video { max-inline-size: 100%; block-size: auto; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--or); color: var(--nuit); }
.has-nuit-background-color, .has-nuit-profond-background-color { --gris: rgb(245 241 232 / .78); }

/* Boutons (une flèche décorative, jamais soulignée ni lue) */
.wp-block-button__link, .ng-bouton-or { display: inline-flex; align-items: center; justify-content: center; gap: .875rem; min-block-size: 3.25rem; text-decoration: none; cursor: pointer; transition: opacity .2s; }
.wp-block-button__link::after, .ng-bouton-or::after { content: "→" / ""; }
.wp-block-button__link:hover, .ng-bouton-or:hover { opacity: .88; }
.is-style-or .wp-block-button__link, .ng-bouton-or { background: var(--or); color: var(--nuit); border: 0; }
.is-style-contour .wp-block-button__link { background: transparent; color: currentColor; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); }

/* Styles de texte */
.is-style-surtitre { display: flex; align-items: center; gap: .875rem; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.is-style-surtitre::before { content: ""; flex: none; inline-size: 2rem; block-size: 1px; background: var(--or); }
.is-style-surtitre.has-text-align-center { justify-content: center; }
.is-style-lien-fleche { font-size: .9375rem; font-weight: 500; }
.is-style-lien-fleche a::after { content: "→" / ""; display: inline-block; margin-inline-start: .5em; color: var(--or); transition: translate .25s; }
.is-style-lien-fleche a:hover::after { translate: 4px 0; }
.ng-declaration { font-family: var(--serif); font-weight: 300; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); line-height: 1.26; max-inline-size: 60rem; }
.ng-chapo { font-size: 1.125rem; line-height: 1.65; color: var(--gris); max-inline-size: 45rem; }
.ng-chapo.has-text-align-center { margin-inline: auto; max-inline-size: 36rem; }
/* Textes à largeur réduite alignés à gauche (la mise en page « contrainte » de WordPress les centrerait). */
.is-layout-constrained > .wp-block-search { max-inline-size: 40rem; }
.is-layout-constrained > :is(.ng-declaration, .ng-titre-large, .ng-chapo:not(.has-text-align-center), .wp-block-search) { margin-inline: max(0px, (100% - var(--wp--style--global--wide-size)) / 2) auto !important; }
/* Titres de section : largeur limitée sur tout le site (≈ 18 fois la taille du texte, comme la maquette), pour rester lisibles
   quel que soit le texte saisi ; lignes équilibrées. !important : la mise en page « contrainte » de WordPress impose sa propre largeur.
   Les titres non centrés des sections restent calés à gauche. */
main h2.wp-block-heading { max-inline-size: 18em !important; text-wrap: balance; }
main h2:is(.ng-titre-centre, .has-text-align-center) { margin-inline: auto !important; }
.ng-section.is-layout-constrained > h2:not(.ng-titre-centre, .has-text-align-center) { margin-inline: max(0px, (100% - var(--wp--style--global--wide-size)) / 2) auto !important; }
.ng-sous-titre { font-family: var(--serif); font-weight: 300; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.2; }
.ng-discret { font-size: .875rem; color: var(--gris); }

.ng-titre-centre { text-align: center; font-weight: 500; }
.ng-titre-large { max-inline-size: 56.25rem; font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.125rem); line-height: 1.1; }
.ng-texte-l { font-size: 1.0625rem; line-height: 1.7; }
.ng-texte-sombre { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; opacity: .85; }
.ng-h3-sombre { font-weight: 300; font-size: 2rem; margin-block-start: 2.5rem; }
.ng-espace-haut { margin-block-start: var(--wp--preset--spacing--50) !important; }
.ng-sous-section { margin-block-start: var(--section) !important; }
.ng-section--courte { --section: clamp(4.5rem, 3.5rem + 3.5vw, 6.875rem); }
:is(.has-nuit-background-color, .has-nuit-profond-background-color) .is-style-surtitre { color: var(--or); }
.ng-cta { border-radius: var(--rayon); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.ng-cta__t { font-size: var(--wp--preset--font-size--xxl); }
.ng-faq-article { margin-block-start: var(--wp--preset--spacing--60) !important; } /* FAQ bien détachée du texte de l'article */
.ng-faq-article > h2 { margin-block-end: 1rem; }

/* Listes */
:is(.is-style-coches, .is-style-tirets, .is-style-pastilles) { list-style: none; padding: 0; }
.is-style-coches, .is-style-tirets { display: grid; gap: .75rem; }
.is-style-coches li { display: flex; align-items: center; gap: .625rem; font-size: .875rem; }
.is-style-coches li::before { content: ""; flex: none; inline-size: 18px; block-size: 18px; background: url(../img/coche.svg) center / contain no-repeat; }
.is-style-tirets li { display: flex; align-items: baseline; gap: .75rem; }
.is-style-tirets li::before { content: ""; flex: none; inline-size: 8px; block-size: 1px; background: currentColor; translate: 0 -.3em; }
.is-style-pastilles { display: flex; flex-wrap: wrap; gap: .625rem; }
.is-style-pastilles li { font-size: .8125rem; font-weight: 500; background: var(--blanc); border: 1px solid rgb(184 134 11 / .7); border-radius: 999px; padding: .4375rem .875rem; }

/* Sections et grilles sans media query : jusqu'à --cols colonnes, jamais plus étroites que --min */
.ng-section { padding-block: var(--section); margin-block: 0 !important; }
[class*="ng-grille-"] { --cols: 3; --min: 17rem; display: grid; gap: var(--gap); padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--min), (100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr)); }
/* !important : la mise en page « flow » de WordPress ajoute un espace au-dessus de chaque enfant sauf le premier
   (selon la version de WordPress et dans l'éditeur, cette règle passe devant la nôtre et décale la 1re carte). */
[class*="ng-grille-"] > * { margin: 0 !important; }
.ng-grille-4 { --cols: 4; --min: 13rem; }
.ng-grille-4:has(> .ng-etape) { --gap: clamp(1.5rem, .9rem + 2.4vw, 3rem); }
.ng-grille-profils { --cols: 4; --min: 8.5rem; grid-auto-rows: 1fr; grid-template-columns: repeat(auto-fit, minmax(min((100% - var(--gap)) / 2, max(var(--min), (100% - 3 * var(--gap)) / 4)), 1fr)); }
.ng-grille-pied { --cols: 4; --min: 8rem; --gap: 2.75rem; } /* 4 colonnes de liens + la colonne logo = 5 sur une ligne dès ≈ 1100 px ; 44 px entre les colonnes */

/* Filigrane « Ng » (SVG en arrière-plan, aucun élément ajouté) */
.ng-filigrane { position: relative; overflow: clip; isolation: isolate; }
.ng-filigrane::before { content: ""; position: absolute; z-index: -1; inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; inline-size: clamp(46rem, 146vw, 131rem); aspect-ratio: 2337 / 1207; background: url(../img/ng-filigrane.svg) center / contain no-repeat; opacity: .08; pointer-events: none; }
/* Position reprise de la maquette (à 1440 px : 136 px du bord gauche, 7 px au-dessus du haut de la section) :
   le « ng » n'est plus coupé par le haut de la section. */
.ng-filigrane--droite::before { inset-inline: clamp(1rem, 9.45vw, 8.5rem) auto; inset-block-start: -.5vw; translate: none; rotate: -10deg; inline-size: clamp(41rem, 104vw, 93.5rem); opacity: .07; }

/* Logo */
.ng-logo, .ng-logo__a { display: inline-flex; flex-direction: column; align-items: stretch; margin: 0; color: inherit; text-decoration: none; line-height: 1; font-weight: inherit; }
.ng-logo__main { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; margin-inline-end: -.2em; }
.ng-logo__sub { display: flex; align-items: baseline; gap: .45em; margin-block-start: .3em; font-size: var(--sub); color: var(--or); }
.ng-logo__sub::before, .ng-logo__sub::after { content: ""; flex: 1 1 auto; min-inline-size: .8em; block-size: 1px; background: currentColor; align-self: center; }
/* « Ng » descendu sous la ligne de « avocat » comme sur la maquette : la marge négative du haut réduit la hauteur de la ligne,
   le décalage le fait passer sous la ligne de base (une marge négative en bas ne suffit pas, le svg étant aligné sur sa base).
   overflow visible : le bas de la boucle du « g » touche le bord du dessin et était rogné de quelques pixels. */
.ng-logo__ng { display: block; flex: none; margin-block: -.424em 0; translate: 0 .424em; overflow: visible; }
.ng-logo__av { font-family: var(--wp--preset--font-family--slab); letter-spacing: .1em; margin-inline-end: -.1em; }
.ng-logo--hero { font-size: clamp(2.875rem, 1rem + 8vw, 8rem); --sub: .383em; color: var(--ivoire); }
.ng-logo--hero .ng-logo__main { font-weight: 500; margin-inline-start: -.03em; }
.ng-logo--hero .ng-logo__sub { justify-content: flex-end; }
.ng-logo--hero .ng-logo__sub::before, .ng-logo--hero .ng-logo__sub::after { content: none; }
.ng-logo--nav { font-size: 1.375rem; --sub: .636em; }
.ng-logo--nav .ng-logo__sub { color: var(--or-fonce); }
.ng-logo--pied { font-size: 2.25rem; --sub: .611em; }

/* En-tête et menu (popover natif, zéro JavaScript) */
/* !important : dans l'éditeur (et l'aperçu en direct), WordPress met « position: relative » sur chaque bloc, ce qui annule le sticky. */
.ng-entete { position: sticky !important; inset-block-start: var(--wp-admin--admin-bar--height, 0); z-index: 20; background: var(--ivoire); border-block-end: 1px solid rgb(15 31 60 / .12); }
.ng-entete__in { min-block-size: var(--entete); }
/* Bouton « Prendre rendez-vous » : uniquement dans la barre, toujours à droite. Mobile : logo | ☰ | bouton. */
.ng-entete__in > .wp-block-group { gap: .5rem; }
.ng-entete .ng-entete__cta { flex: none; margin: 0; }
.ng-entete__cta .wp-block-button__link { white-space: nowrap; min-block-size: 2.75rem; padding: .625rem 1rem; gap: .5rem; }
/* Téléphones : logo plus petit et bouton raccourci en « Rendez-vous » pour que logo, ☰ et bouton tiennent sur une ligne.
   (À 390 px, la version longue débordait de l'écran de 24 px.) Très petits écrans (< 336 px) : bouton masqué, le lien « Contact » du menu ☰ prend le relais. */
.ng-rdv-court { display: none; }
@media (max-width: 29.99rem) {
	.ng-entete .ng-logo--nav { font-size: 1.125rem; }
	.ng-entete__cta .ng-rdv-long { display: none; }
	.ng-entete__cta .ng-rdv-court { display: inline; }
	.ng-entete__cta .wp-block-button__link { padding-inline: .875rem; }
	.ng-entete__cta .wp-block-button__link::after { content: none; }
}
@media (max-width: 20.99rem) { .ng-entete .ng-entete__cta { display: none; } }
.ng-burger, .ng-fermer { display: inline-grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 0; background: none; color: var(--nuit); cursor: pointer; }
.ng-panneau:popover-open { display: flex; flex-direction: column; gap: 2.5rem; }
.ng-panneau { inset: 0; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; border: 0; padding: 1rem clamp(1.5rem, 5vw, 5rem) 2rem; background: var(--ivoire); color: var(--nuit); }
.ng-panneau .ng-fermer { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-end; inline-size: auto; padding-inline: .75rem; font: 500 .9375rem/1 var(--sans); border: 1px solid rgb(15 31 60 / .25); border-radius: 999px; }
.ng-panneau .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 1.5rem; font-family: var(--serif); font-size: 1.75rem; }
.ng-panneau a { text-decoration: none; }
.ng-panneau a:hover, .ng-panneau [aria-current] { text-decoration: underline; }

@media (min-width: 75rem) {
	:root { --entete: 5.5rem; }
	.ng-burger, .ng-panneau .ng-fermer { display: none; }
	/* Ordinateur : logo à gauche, onglets au centre de la page, bouton à droite. */
	.ng-entete__in { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; }
	.ng-entete__in > .wp-block-group { display: contents; }
	.ng-entete__in > .ng-logo { grid-area: 1 / 1; justify-self: start; }
	.ng-entete .ng-panneau { grid-area: 1 / 2; }
	.ng-entete .ng-entete__cta { grid-area: 1 / 3; justify-self: end; }
	.ng-entete__cta .wp-block-button__link { padding: 1rem 1.75rem; gap: .875rem; min-block-size: 3.25rem; }
	.ng-panneau { display: block; position: static; inline-size: auto; block-size: auto; padding: 0; background: none; overflow: visible; }
	.ng-panneau .wp-block-navigation__container { flex-direction: row; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.5rem); font-family: var(--sans); font-size: .9375rem; white-space: nowrap; }
}

/* Haut de page */
.wp-block-cover.ng-hero { --barre: var(--wp-admin--admin-bar--height, 0px); min-block-size: clamp(calc(37.5rem - var(--barre)), calc(88svh - var(--barre)), calc(50.75rem - var(--barre))); padding-block: var(--wp--preset--spacing--60) clamp(2.5rem, 1rem + 5vw, 6.875rem); padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right); align-items: flex-end; }
.ng-hero .wp-block-cover__inner-container { padding-inline: 0 !important; inline-size: 100% !important; }
.ng-hero .ng-logo { display: flex; inline-size: fit-content; margin-inline: max(0px, (100% - var(--wp--style--global--wide-size)) / 2) auto !important; }
.ng-hero .wp-block-buttons { display: none; } /* plus de bouton dans le haut de page : il est dans la barre */

/* Cartes */
.is-style-carte { position: relative; background: var(--blanc); border: 1px solid rgb(15 31 60 / .12); border-radius: var(--rayon); padding: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); transition: translate .25s, box-shadow .25s, border-color .25s; }
.is-style-carte:has(a):is(:hover, :focus-within) { translate: 0 -4px; box-shadow: 0 14px 30px rgb(15 31 60 / .1); border-color: rgb(184 134 11 / .6); }
.is-style-carte :is(h2, h3) a { text-decoration: none; }
.is-style-carte :is(h2, h3) a::before, .is-style-carte .is-style-lien-fleche a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.is-style-encadre { background: var(--blanc); border-inline-start: 3px solid var(--or); border-radius: var(--rayon); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }

.ng-carte-expertise { display: flex; flex-direction: column; gap: 1rem; min-block-size: 13.75rem; }
.ng-carte-expertise > * { margin: 0 !important; }
.ng-carte-expertise h3 { flex: 1; display: flex; align-items: center; justify-content: center; align-self: center; max-inline-size: 11em; padding-block-start: 2.5rem; text-wrap: balance; text-align: center; text-transform: uppercase; font-weight: 500; font-size: 1.25rem; letter-spacing: .08em; line-height: 1.35; }
.ng-carte-expertise .is-style-lien-fleche { align-self: flex-end; }

.ng-carte-profil { display: grid; place-items: center; aspect-ratio: 1; padding: clamp(1rem, .6rem + 1.5vw, 1.5rem) clamp(.75rem, .4rem + 1.5vw, 1.5rem) 2.25rem; text-align: center; hyphens: auto; overflow-wrap: anywhere; }
.ng-carte-profil h3 { margin: 0; font-weight: 500; font-size: clamp(.9375rem, .8rem + .55vw, 1.375rem); line-height: 1.25; max-inline-size: 9em; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; } /* texte resserré, lignes équilibrées, pas de mot coupé par un tiret */
.ng-carte-profil::after { content: "→" / ""; position: absolute; inset-inline-end: 1.125rem; inset-block-end: .875rem; font-size: 1.125rem; }
.ng-filigrane--droite .is-style-carte { background: rgb(255 255 255 / .82); }

.ng-article { display: flex; flex-direction: column; gap: .875rem; block-size: 100%; padding: 0 0 1.5rem; overflow: clip; }
.ng-article > * { margin: 0 1.5rem; }
.ng-article > .wp-block-post-featured-image { position: relative; margin: 0; isolation: isolate; }
/* Photos teintées en bleu nuit : la couleur du voile remplace celle de la photo, la lumière est conservée. */
.ng-article .wp-block-post-featured-image__overlay { mix-blend-mode: color; opacity: 1 !important; }
.ng-article .wp-block-post-featured-image::after { content: ""; position: absolute; inset: 0; background: rgb(15 31 60 / .3); pointer-events: none; }
.ng-article .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; inline-size: 100%; filter: grayscale(1) contrast(1.08); }
.ng-article .wp-block-post-terms { margin-block-start: .5rem; }
.ng-article .wp-block-post-terms a { position: relative; z-index: 1; display: inline-block; font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--sable); padding: .375rem .625rem; border-radius: 6px; }
.ng-article .wp-block-post-title { font-size: 1.625rem; font-weight: 400; line-height: 1.2; }
.ng-article .wp-block-post-excerpt { font-size: .9375rem; color: var(--gris); }
.ng-article .wp-block-post-excerpt__excerpt { margin: 0; }
/* « Lire » en bleu nuit, flèche dorée à côté (deux pseudo-éléments : une seule chaîne ne peut pas avoir deux couleurs). Décoratifs, non lus. */
.ng-article::after { content: "Lire" / ""; align-self: flex-end; margin: auto calc(1.5rem + 1.5em) 0 1.5rem; font-size: .875rem; font-weight: 500; line-height: 1.5; }
.ng-article::before { content: "→" / ""; position: absolute; inset-block-end: 1.5rem; inset-inline-end: 1.5rem; font-size: .875rem; font-weight: 500; line-height: 1.5; color: var(--or); pointer-events: none; transition: translate .25s; }
.ng-article:is(:hover, :focus-within)::before { translate: 4px 0; }

/* Articles : pas de date de publication affichée (elle reste dans les données structurées pour Google). */
.ng-article-entete .wp-block-post-date { display: none; }

/* Page Publications (ordinateur) : mosaïque par groupes de 5, comme l'ancien site.
   Un grand article (image, titre, chapô) et 4 petits en 2 × 2 (image, titre), le grand alternant à gauche puis à droite. */
@media (min-width: 62rem) {
	body.blog .wp-block-post-template.ng-grille-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; }
	body.blog .ng-grille-3 > li:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
	body.blog .ng-grille-3 > li:nth-child(10n+6) { grid-column: 3 / span 2; }
	body.blog .ng-grille-3 > li:nth-child(5n+1) .wp-block-post-title { font-size: clamp(1.75rem, 1.2rem + 1vw, 2.25rem); }
	body.blog .ng-grille-3 > li:nth-child(5n+1) .wp-block-post-excerpt { font-size: 1rem; }
	body.blog .ng-grille-3 > li:not(:nth-child(5n+1)) .wp-block-post-excerpt { display: none; }
	body.blog .ng-grille-3 > li:not(:nth-child(5n+1)) .wp-block-post-title { font-size: 1.25rem; }
}

/* Accordéons natifs <details> : situations et FAQ */
.ng-accordeon { border-block-start: var(--trait); }
.ng-accordeon > * { margin: 0; }
:is(.ng-situation, .ng-question) { border-block-end: var(--trait); }
:is(.ng-situation, .ng-question) > summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; list-style: none; cursor: pointer; font-family: var(--serif); line-height: 1.25; }
:is(.ng-situation, .ng-question) > summary::-webkit-details-marker { display: none; }
:is(.ng-situation, .ng-question) > summary::after { flex: none; font-family: var(--sans); transition: rotate .3s; }
.ng-situation > summary { padding: 1.375rem 1.5rem; font-size: clamp(1.25rem, 1.1rem + .4vw, 1.375rem); }
.ng-situation > summary::after { content: "→" / ""; font-size: 1rem; }
.ng-situation[open] { background: var(--blanc); box-shadow: inset 2px 0 0 var(--or); }
.ng-situation[open] > summary::after { rotate: 90deg; color: var(--or-fonce); }
.ng-situation > :not(summary) { margin: 0 1.5rem !important; max-inline-size: 46rem; }
.ng-situation > :not(summary) + :not(summary) { margin-block-start: 1rem !important; }
.ng-situation[open] { padding-block-end: 1.75rem; }
/* « Vos besoins » sur 2 colonnes (ordinateur) : situations à gauche, panneau de la situation ouverte à droite (inc/situations.php). */
.ng-situations__panneaux { display: none; }
@media (min-width: 62rem) {
	.ng-situations { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); margin-block-start: var(--wp--preset--spacing--50); }
	.ng-situations > .ng-accordeon { margin: 0 !important; }
	.ng-situations .ng-situation > :not(summary) { display: none !important; }
	.ng-situations .ng-situation[open] { padding-block-end: 0; border-block-end-color: var(--blanc); }
	.ng-situations .ng-situation[open] > summary { pointer-events: none; } /* l'onglet ouvert reste ouvert */
	.ng-situations .ng-situation:not([open]) > summary { opacity: .8; }
	.ng-situations .ng-situation:not([open]) > summary:hover { opacity: 1; }
	.ng-situations__panneaux { display: block; background: var(--blanc); border-radius: 0 var(--rayon) var(--rayon) var(--rayon); padding: clamp(2rem, 1rem + 2.5vw, 3.5rem); }
	.ng-panneau-situation { display: none; }
	.ng-situations:has(.ng-situation:nth-child(1)[open]) .ng-panneau-situation:nth-child(1),
	.ng-situations:has(.ng-situation:nth-child(2)[open]) .ng-panneau-situation:nth-child(2),
	.ng-situations:has(.ng-situation:nth-child(3)[open]) .ng-panneau-situation:nth-child(3),
	.ng-situations:has(.ng-situation:nth-child(4)[open]) .ng-panneau-situation:nth-child(4),
	.ng-situations:has(.ng-situation:nth-child(5)[open]) .ng-panneau-situation:nth-child(5),
	.ng-situations:has(.ng-situation:nth-child(6)[open]) .ng-panneau-situation:nth-child(6),
	.ng-situations:has(.ng-situation:nth-child(7)[open]) .ng-panneau-situation:nth-child(7),
	.ng-situations:has(.ng-situation:nth-child(8)[open]) .ng-panneau-situation:nth-child(8),
	.ng-situations:has(.ng-situation:nth-child(9)[open]) .ng-panneau-situation:nth-child(9),
	.ng-situations:has(.ng-situation:nth-child(10)[open]) .ng-panneau-situation:nth-child(10),
	.ng-situations:not(:has(.ng-situation[open])) .ng-panneau-situation:first-child { display: block; }
	.ng-panneau-situation > * { margin: 0; max-inline-size: 46rem; }
	.ng-panneau-situation > * + * { margin-block-start: 1.5rem; }
	.ng-panneau-situation > ul + .is-style-lien-fleche { margin-block-start: 2rem; }
	.ng-panneau-situation h3 { font-weight: 300; font-size: clamp(2rem, 1.3rem + 1.5vw, 2.75rem); line-height: 1.1; }
	.ng-panneau-situation p:not(.is-style-lien-fleche) { font-size: 1.0625rem; line-height: 1.7; }
}
.ng-question > summary { padding-block: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-size: clamp(1.3125rem, 1.15rem + .5vw, 1.5625rem); }
.ng-question > summary::after { content: "+" / ""; font-size: 1.5rem; font-weight: 300; inline-size: 1.5rem; text-align: center; }
.ng-question[open] > summary::after { content: "−" / ""; }
.ng-question[open] { padding-block-end: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.ng-question > :not(summary) + :not(summary) { margin-block-start: 1em !important; }
.ng-question > :not(summary) { margin: 0 !important; padding-inline-end: clamp(0rem, 4vw, 4rem); line-height: 1.7; opacity: .85; }

/* Contenus de la page d'accueil */
.ng-etape { display: flex; flex-direction: column; gap: 1.125rem; }
.ng-etape > * { margin: 0; }
.ng-etape img { inline-size: 3.5rem; block-size: 3.5rem; }
.ng-etape p { border-block-start: 1px solid rgb(15 31 60 / .16); padding-block-start: 1.125rem; line-height: 1.65; }
.ng-portrait img { aspect-ratio: 3 / 4; object-fit: cover; inline-size: 100%; border-radius: 16px; }
/* Ordinateur : la photo reste à l'écran pendant que la bio défile à droite (colonnes côte à côte dès 782 px).
   Sa hauteur est limitée à celle de l'écran sous la barre de navigation, pour qu'elle soit toujours visible en entier. */
@media (min-width: 782px) {
	.wp-block-column:has(> .ng-portrait) { position: sticky; inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + var(--entete) + 1.5rem); align-self: flex-start; }
	.ng-portrait img { max-block-size: calc(100svh - var(--wp-admin--admin-bar--height, 0px) - var(--entete) - 3rem); }
}
.ng-nom { font-family: var(--serif); font-size: 1.875rem; line-height: 1.2; }
.ng-role { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.ng-chiffres > * { border-inline-start: 1px solid rgb(245 241 232 / .2); padding-inline-start: 1.5rem; }
.ng-chiffre { font-family: var(--serif); font-weight: 300; font-size: clamp(4.5rem, 3.5rem + 3vw, 6rem); line-height: 1; margin: 0; }
.ng-chiffre + p { margin-block-start: .75rem; opacity: .8; }
.ng-engagement { display: flex; flex-direction: column; gap: 1rem; }
.ng-engagement > * { margin: 0; }
.ng-engagement::before { content: ""; inline-size: 2rem; block-size: 2px; background: var(--or); }
.ng-engagement p { font-size: .9375rem; line-height: 1.65; color: var(--gris); }
.ng-coordonnees { list-style: none; padding: 0; display: grid; gap: 1.125rem; font-size: .9375rem; }
.ng-coordonnees li { display: flex; gap: .75rem; align-items: flex-start; }
.ng-coordonnees li::before, .ng-pied .ng-coordonnees li::before { content: ""; flex: none; inline-size: 1rem; block-size: 1rem; margin-block-start: .2em; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ng-ic-tel { --ic: url(../img/ic-tel.svg); }
.ng-ic-mail { --ic: url(../img/ic-mail.svg); }
.ng-ic-adresse { --ic: url(../img/ic-adresse.svg); }
.ng-ic-linkedin { --ic: url(../img/ic-linkedin.svg); }

/* Formulaire */
.ng-form { position: relative; background: var(--ivoire); color: var(--nuit); border-radius: var(--rayon); padding: clamp(1.375rem, .5rem + 3vw, 3.5rem); --gris: var(--wp--preset--color--gris); }
.ng-form p { margin: 0; }
.ng-form__grille { display: grid; gap: 1.375rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.ng-champ { display: flex; flex-direction: column; gap: .5rem; min-inline-size: 0; }
.ng-champ--large { grid-column: 1 / -1; }
.ng-champ label { font-size: .8125rem; font-weight: 500; }
.ng-form :is(input, textarea) { max-inline-size: 100%; font: inherit; font-size: .9375rem; color: inherit; background: var(--blanc); border: 1px solid rgb(15 31 60 / .6); border-radius: 6px; padding: .9375rem 1rem; min-block-size: 3.25rem; inline-size: 100%; }
.ng-form textarea { min-block-size: 9.375rem; resize: vertical; }
.ng-form ::placeholder { color: var(--gris); opacity: 1; }
.ng-form :user-invalid { border-color: #B3261E; }
.ng-form input[type="file"] { border-style: dashed; cursor: pointer; }
.ng-form ::file-selector-button { font: inherit; font-weight: 500; color: inherit; background: var(--sable); border: 0; border-radius: 6px; padding: .5rem .875rem; margin-inline-end: .875rem; cursor: pointer; }
.ng-depot { display: grid; gap: .125rem; }
.ng-depot__s { font-size: .75rem; font-weight: 400; color: var(--gris); }
.ng-form__piege { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ng-form__oblig, .ng-form__note { font-size: .8125rem; color: var(--gris); }
.ng-form__oblig { margin-block-start: 1rem !important; }
.ng-form__envoi { margin-block: 1.75rem 1rem !important; }
/* Bouton d'envoi doré, texte bleu nuit : sélecteur plus fort que le style des boutons de WordPress, qui le repeignait en bleu. */
.ng-form button.ng-bouton-or { background: var(--or); color: var(--nuit); }
.ng-form__msg { margin-block-end: 1.5rem !important; padding: 1rem 1.25rem; border-radius: 6px; font-weight: 500; }
.ng-form__msg--ok { background: #E3EFE6; color: #1D4D2B; }
.ng-form__msg--err { background: #F6E1DF; color: #7A1F17; }

/* Pied de page */
.ng-pied { font-size: .8125rem; line-height: 1.45; }
.ng-pied h2 { font-family: var(--sans); font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin: 0 0 1rem; }
.ng-pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .625rem; }
.ng-pied a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.ng-pied a:hover, .ng-pied a:focus-visible { background-size: 100% 1px; }
.ng-pied .ng-coordonnees { gap: .625rem; font-size: inherit; }
.ng-pied .ng-coordonnees li::before { margin-block-start: .05em; }
.ng-pied__bas { opacity: .8; }
/* Petits écrans : la colonne de droite passe sous la première, alignée à gauche. */
@media (max-width: 47.99rem) { .ng-pied__droite { align-items: flex-start !important; } .ng-pied__droite p { text-align: start; } }
.ng-pied__bas a { text-decoration: underline; background: none; }
.ng-barreau img { block-size: 3.5rem; inline-size: auto; opacity: .75; }

/* Lecture : articles et pages (≈ 65 caractères par ligne, corps 17 à 20 px, interligne 1,7) */
.ng-prose { font-size: var(--wp--preset--font-size--l); line-height: 1.7; }
.ng-prose > * { margin-block: 0; }
.ng-prose > * + * { margin-block-start: 1.2em; }
.ng-prose > h2 { margin-block: 2.2em .6em; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 400; line-height: 1.15; }
.ng-prose > h3 { margin-block: 1.8em .5em; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); }
.ng-prose > :is(h2, h3) + * { margin-block-start: 0; }
.ng-prose li + li { margin-block-start: .4em; }
.ng-prose :is(ul, ol) { padding-inline-start: 1.25em; }
.ng-prose li::marker { color: var(--or-fonce); }
.ng-prose figcaption { margin-block-start: .5rem; }
.ng-prose strong { font-weight: 600; }
.ng-article-entete { display: grid; gap: 1rem; }
.ng-article-entete > * { margin: 0; }
.ng-suite { margin-block-start: var(--wp--preset--spacing--60) !important; gap: 1.5rem; font-size: .9375rem; }
article > :is(.ng-essentiel, .ng-sommaire, .wp-block-post-featured-image, .ng-prose) { margin-block-start: var(--wp--preset--spacing--40); }
article > .ng-cta { margin-block-start: var(--wp--preset--spacing--60); }
.ng-meta { font-size: .875rem; color: var(--gris); }
.ng-essentiel { background: var(--blanc); border: 1px solid rgb(15 31 60 / .12); border-inline-start: 3px solid var(--or); border-radius: var(--rayon); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.ng-essentiel__t, .ng-sommaire__t { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); }
.ng-essentiel__c { font-size: var(--wp--preset--font-size--l); line-height: 1.65; }
.ng-essentiel__c p { margin: 0; }
.ng-essentiel__c p + p { margin-block-start: .75em; }
.ng-sommaire { border-block: var(--trait); padding-block: 1.5rem; }
.ng-sommaire ol { margin: 0; padding-inline-start: 1.5rem; display: grid; gap: .5rem; }
.ng-sommaire li::marker { color: var(--or-fonce); font-variant-numeric: tabular-nums; }
.ng-sommaire a { text-decoration-color: rgb(15 31 60 / .3); }
.ng-sommaire a:hover { text-decoration-color: currentColor; }

/* Articles : signature sous le titre (bloc ng/signature) */
.ng-signature { display: flex; align-items: center; gap: 1rem; }
.ng-signature__photo { flex: none; inline-size: 3.5rem; block-size: 3.5rem; border-radius: 50%; object-fit: cover; }
.ng-signature__t { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--gris); }

/* Articles : encadré auteur après le contenu (composition article-auteur, ajoutée d'office) */
article > .ng-auteur { margin-block-start: var(--wp--preset--spacing--60); }
.ng-auteur { border-block: var(--trait); padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-size: .9375rem; line-height: 1.7; color: var(--gris); }
.ng-auteur > * { margin: 0; }
.ng-auteur > * + * { margin-block-start: .75em; }
.ng-auteur > .ng-auteur__entete { gap: 1rem; margin-block-end: 1.25rem; }
.ng-auteur__photo { flex: none; margin: 0; }
.ng-auteur__photo img { inline-size: 3.5rem !important; block-size: 3.5rem !important; border-radius: 50%; object-fit: cover; }
.ng-auteur__intro { margin: 0; font-size: 1rem; line-height: 1.4; }
.ng-auteur strong { color: var(--nuit); font-weight: 600; }
.ng-auteur__lien a { color: var(--or-fonce); font-weight: 500; }

/* Articles : « Les conseils de l'avocat » (composition article-conseils) */
.ng-conseils { background: var(--blanc); border: 1px solid rgb(15 31 60 / .12); border-radius: var(--rayon); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.ng-conseils > * { margin: 0; }
.ng-conseils > * + * { margin-block-start: .75em; }
.ng-conseils > .ng-conseils__entete { gap: 1rem; margin-block-end: 1.25rem; }
.ng-conseils__photo { flex: none; margin: 0; }
.ng-conseils__photo img { inline-size: 3.5rem !important; block-size: 3.5rem !important; border-radius: 50%; object-fit: cover; }
.ng-conseils__t { margin: 0; font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Articles : « Bon à savoir » / « À retenir » (composition article-bon-a-savoir), ampoule dorée décorative */
.ng-astuce { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: clamp(1rem, .6rem + 1.5vw, 1.5rem); background: var(--sable); border-radius: var(--rayon); padding: clamp(1.25rem, .9rem + 1.5vw, 2rem); }
.ng-astuce::before { content: ""; grid-column: 1; grid-row: 1 / span 20; inline-size: 2rem; block-size: 2rem; background: var(--or-fonce); -webkit-mask: url(../img/ic-ampoule.svg) center / contain no-repeat; mask: url(../img/ic-ampoule.svg) center / contain no-repeat; }
.ng-astuce > * { grid-column: 2; margin: 0; }
.ng-astuce > * + * { margin-block-start: .5em; }
.ng-astuce__t { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.3; }

/* Recherche, pagination */
.wp-block-search__input { font: inherit; min-block-size: 3.25rem; padding-inline: 1rem; border: 1px solid rgb(15 31 60 / .6); border-radius: 6px; background: var(--blanc); }
.wp-block-search__button { margin-inline-start: .5rem !important; }
.wp-block-query-pagination { gap: 1rem; font-weight: 500; }
.wp-block-query-pagination .page-numbers { display: inline-grid; place-items: center; min-inline-size: 2.75rem; min-block-size: 2.75rem; text-decoration: none; border-radius: 6px; }
.wp-block-query-pagination .current { background: var(--nuit); color: var(--ivoire); }

/* Éditeur */
.ng-editeur-note { display: grid; gap: .25rem; padding: 1rem 1.25rem; border: 1px dashed rgb(15 31 60 / .4); border-radius: 6px; font-size: .875rem; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	/* Apparition à l'entrée dans l'écran, 100 % CSS, jouée en 0,6 s (pas liée à la vitesse du défilement).
	   Principe : un « déclencheur » (section, sous-section, grille, colonne, accordéon) bascule la variable
	   --ng-vu de 0 à 1 quand il entre à l'écran (animation liée à sa visibilité). Ses enfants, masqués tant
	   que --ng-vu vaut 0 (requête de style), apparaissent alors par une transition classique.
	   Navigateur sans ces fonctions : rien n'est masqué, la page s'affiche normalement. */
	@supports (animation-timeline: view()) {
		body { overflow-x: clip; }
		:is(.ng-section, .ng-sous-section, .ng-section [class*="ng-grille-"], .ng-section .wp-block-column, .ng-section .ng-accordeon) {
			animation: ng-vu linear both;
			animation-timeline: view();
			animation-range: entry 5% entry 25%;
		}
		:is(.ng-section, .ng-sous-section) > :is(h2, p, .wp-block-buttons),
		.ng-section :is([class*="ng-grille-"], .wp-block-column, .ng-accordeon) > * {
			--ng-de: translateY(2.5rem);
			--ng-delai: 0s;
			transition: opacity .6s ease-out var(--ng-delai), transform .6s cubic-bezier(.2, .7, .2, 1) var(--ng-delai), translate .25s, box-shadow .25s, border-color .25s;
		}
		/* Glissement latéral seulement quand les colonnes sont côte à côte : sur mobile (colonnes empilées),
		   le décalage de 3rem vers la droite faisait déborder la page de 24 px et la rendait défilable de côté. */
		@media (min-width: 782px) {
			.ng-section .wp-block-column:first-child > * { --ng-de: translateX(-3rem); }
			.ng-section .wp-block-column:not(:first-child) > * { --ng-de: translateX(3rem); }
		}
		.ng-section :is([class*="ng-grille-"], .ng-accordeon) > :nth-child(4n+2) { --ng-delai: .1s; }
		.ng-section :is([class*="ng-grille-"], .ng-accordeon) > :nth-child(4n+3) { --ng-delai: .2s; }
		.ng-section :is([class*="ng-grille-"], .ng-accordeon) > :nth-child(4n+4) { --ng-delai: .3s; }
		@container style(--ng-vu: 0) {
			:is(.ng-section, .ng-sous-section) > :is(h2, p, .wp-block-buttons),
			.ng-section :is([class*="ng-grille-"], .wp-block-column, .ng-accordeon) > * { opacity: 0; transform: var(--ng-de); }
		}
	}
}
@property --ng-vu { syntax: "<integer>"; inherits: false; initial-value: 0; }
@keyframes ng-vu { from { --ng-vu: 0; } to { --ng-vu: 1; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; } }
