/* =========================================================================
   Institut Novella · main.css
   Design system du media editorial beaute et bien-etre.
   Aucun framework, aucun CDN. Variables CSS, mobile first.
   Parti pris : magazine premium clair, hierarchie typographique forte,
   aucune esthetique spa ni clinique.

   La palette derive du monogramme du site : marine dominante, or en trait.
   Le marine porte l'interaction (liens, boutons, focus) parce qu'il tient le
   contraste ; l'or reste decoratif (filets, surtitres, aplats) et n'apparait
   en texte que dans sa version assombrie --nv-gold-ink.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. POLICES AUTO-HEBERGEES
   Deposez les WOFF2 dans assets/fonts/. En leur absence, la pile de repli
   systeme assure un rendu correct et aucun preload n'est genere.
   ---------------------------------------------------------------------- */
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("../fonts/public-sans-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("../fonts/public-sans-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------
   2. TOKENS
   Contrastes mesures sur le papier #FAF8F5 : encre 14,5:1, secondaire
   5,6:1, marine 10,2:1, or assombri 5,5:1. Sur le marine #1C2739 : texte
   clair 13,0:1, or clair 7,2:1, gris pale 5,1:1. Cas le plus serre, le
   badge de rubrique en or assombri sur aplat dore : 5,1:1.
   Tous au-dessus du seuil AA en texte normal.
   ---------------------------------------------------------------------- */
:root {
	--nv-paper: #FAF8F5;      /* fond general, blanc chaud */
	--nv-surface: #FFFFFF;    /* cartes */
	--nv-ink: #1B2537;        /* titres et texte fort, noir teinte marine */
	--nv-muted: #5C6474;      /* texte secondaire */
	--nv-line: #E4E2DD;       /* filets */

	/* Marine : couleur dominante du monogramme, donc couleur interactive.
	   Elle porte les liens et les boutons car elle tient le contraste. */
	--nv-accent: #2C3E5C;
	--nv-accent-soft: #EBEEF4;

	/* Or : couleur du trait du monogramme, decorative uniquement.
	   Le jaune dore ne tient pas le contraste en texte courant, on ne
	   l'utilise donc jamais seul sur fond clair : --nv-gold-ink est sa
	   version assombrie, verifiee au-dessus de 4,5:1 sur le papier. */
	--nv-gold: #B4914E;
	--nv-gold-ink: #7D6129;
	--nv-gold-soft: #F6EFE1;

	--nv-dark: #1C2739;       /* sections contrastees, marine profond */
	--nv-dark-ink: #F1EEE8;   /* texte sur section sombre */
	--nv-dark-accent: #D6AE68;/* or lisible sur fond marine */

	--nv-font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--nv-font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--nv-maxw: 1180px;
	--nv-maxw-read: 700px;
	--nv-gap: clamp(1rem, 3vw, 2.2rem);
	--nv-section-y: clamp(2.75rem, 7vw, 5.5rem);
	--nv-radius: 3px;
}

/* -------------------------------------------------------------------------
   2 bis. NEUTRALISATION DU THEME PARENT

   Hello Elementor plafonne a 1140 px, dans des media queries, les selecteurs
   suivants : .site-header:not(.dynamic-header), .site-footer:not(.dynamic-footer),
   .page-header .entry-title et body:not([class*=elementor-page-]) .site-main.

   Consequence sur ce site : le pied de page marine et les sections a fond
   contraste etaient centres a 1140 px au lieu de filer d'un bord a l'autre,
   leur aplat de couleur s'arretait donc en plein milieu de l'ecran.

   Ici la largeur est geree par .wrap, qui centre le contenu a l'interieur de
   sections pleine largeur. On rend donc leur largeur aux conteneurs.

   Les selecteurs ci-dessous reprennent EXACTEMENT ceux du parent : a
   specificite egale, c'est l'ordre de chargement qui tranche, et cette
   feuille est chargee apres theme.css par la chaine de dependances declaree
   dans inc/enqueue.php. Ne les simplifiez pas, ils cesseraient de gagner.
   ---------------------------------------------------------------------- */
.site-header:not(.dynamic-header),
.site-footer:not(.dynamic-footer),
.page-header .entry-title {
	max-width: none;
}
body:not([class*="elementor-page-"]) .site-main {
	max-width: none;
}

/* Filet de securite si header-footer.css du parent revenait un jour : il pose
   display:flex sur .site-header et des marges internes sur les deux blocs. */
.site-header { display: block; }
.site-header, .site-footer { padding-block: 0; }

/* -------------------------------------------------------------------------
   3. BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--nv-paper);
	color: var(--nv-ink);
	font-family: var(--nv-font-text);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--nv-font-display);
	color: var(--nv-ink);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 600;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.18rem, 2.4vw, 1.45rem); }

p { margin: 0 0 1.25em; }

a { color: var(--nv-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #1D2B44; }

img { max-width: 100%; height: auto; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--nv-accent);
	outline-offset: 3px;
}

.screen-reader-text, .sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   4. LAYOUT
   ---------------------------------------------------------------------- */
.wrap {
	width: 100%; max-width: var(--nv-maxw);
	margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.wrap--read { max-width: var(--nv-maxw-read); }

.section { padding-block: var(--nv-section-y); }
.section--soft { background: var(--nv-surface); border-block: 1px solid var(--nv-line); }
.section--dark { background: var(--nv-dark); color: var(--nv-dark-ink); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--nv-dark-ink); }
.section--dark a { color: var(--nv-dark-accent); }
.section--dark .section__chapo, .section--dark p { color: #C3C9D4; }

/* Aplat dore reserve a la citation editoriale : il n'apparait qu'une fois
   par page, c'est ce qui lui donne son poids. */
.section--quote { background: var(--nv-gold-soft); }

.section__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem;
	padding-bottom: .9rem; border-bottom: 1px solid var(--nv-line);
}
.section--dark .section__head { border-bottom-color: rgba(241, 238, 232, .18); }
.section__head h2 { margin: 0; }
.section__chapo { margin: .4rem 0 0; color: var(--nv-muted); font-size: .97rem; max-width: 58ch; }
.section__all { font-weight: 500; font-size: .92rem; white-space: nowrap; }

.grid { display: grid; gap: var(--nv-gap); grid-template-columns: 1fr; }
@media (min-width: 40em) { .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.eyebrow {
	text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
	font-weight: 500; color: var(--nv-gold-ink); margin: 0 0 .7rem;
}

/* -------------------------------------------------------------------------
   5. BOUTONS ET BADGES
   ---------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 1.5rem; border-radius: var(--nv-radius);
	font-weight: 500; font-size: .95rem; text-decoration: none;
	border: 1px solid transparent; cursor: pointer;
	font-family: var(--nv-font-text);
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--accent { background: var(--nv-accent); color: #fff; }
.btn--accent:hover { background: #1D2B44; color: #fff; }
.btn--ghost { background: transparent; color: var(--nv-ink); border-color: var(--nv-line); }
.btn--ghost:hover { border-color: var(--nv-accent); color: var(--nv-accent); }
.section--dark .btn--ghost { color: var(--nv-dark-ink); border-color: rgba(241, 238, 232, .3); }

.badge {
	display: inline-block; font-size: .68rem; font-weight: 500;
	text-transform: uppercase; letter-spacing: .13em;
	padding: .22rem .5rem; border-radius: var(--nv-radius);
	background: var(--nv-gold-soft); color: var(--nv-gold-ink);
	text-decoration: none;
}
.badge:hover { background: var(--nv-accent); color: #fff; }

/* -------------------------------------------------------------------------
   6. EN-TETE
   ---------------------------------------------------------------------- */
.site-header { background: var(--nv-paper); border-top: 3px solid var(--nv-gold); border-bottom: 1px solid var(--nv-line); }
.site-header__inner {
	max-width: var(--nv-maxw); margin-inline: auto;
	padding: 1rem clamp(1.1rem, 4vw, 2rem);
	display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
	font-family: var(--nv-font-display); font-weight: 600;
	font-size: 1.35rem; letter-spacing: .01em; text-decoration: none;
	color: var(--nv-ink); margin-right: auto; line-height: 1;
}
.brand__accent { color: var(--nv-gold-ink); }
.brand:hover { color: var(--nv-ink); }

.nav-toggle {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
	width: 46px; height: 46px; padding: 0 11px;
	background: transparent; border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius); cursor: pointer;
}
.nav-toggle__bar { display: block; height: 1px; background: var(--nv-ink); }

.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: .7rem 0 0; padding: 0; display: none; flex-direction: column; gap: .1rem; }
.site-nav.is-open ul { display: flex; }
.site-nav a {
	display: block; padding: .65rem .3rem; text-decoration: none;
	color: var(--nv-ink); font-size: .93rem;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--nv-accent); }

@media (min-width: 62em) {
	.nav-toggle { display: none; }
	.site-nav { width: auto; }
	.site-nav ul { display: flex; flex-direction: row; margin: 0; gap: 1.4rem; }
	.site-nav a { padding: .3rem 0; }
}

/* -------------------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------------- */
.hero { padding-block: clamp(2.2rem, 6vw, 4.5rem); }
.hero__inner {
	max-width: var(--nv-maxw); margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
	display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center;
}
.hero__title { margin-bottom: .7rem; }
.hero__lead { color: var(--nv-muted); font-size: 1.08rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__media img { width: 100%; border-radius: var(--nv-radius); }
@media (min-width: 60em) { .hero__inner { grid-template-columns: 1.02fr .98fr; } }

/* -------------------------------------------------------------------------
   8. SILOS
   ---------------------------------------------------------------------- */
.silos-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .silos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .silos-grid { grid-template-columns: repeat(3, 1fr); } }

.silo { display: block; text-decoration: none; color: inherit; }
.silo__media { display: block; line-height: 0; overflow: hidden; border-radius: var(--nv-radius); margin-bottom: .8rem; }
.silo__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.silo:hover .silo__media img { transform: scale(1.03); }
.silo__name {
	display: block; font-family: var(--nv-font-display); font-weight: 600;
	font-size: 1.2rem; color: var(--nv-ink); margin-bottom: .25rem;
}
.silo:hover .silo__name { color: var(--nv-accent); }
.silo__desc { display: block; color: var(--nv-muted); font-size: .92rem; }
.silo--nomedia {
	padding: 1.3rem 1.4rem; background: var(--nv-surface);
	border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
}

/* -------------------------------------------------------------------------
   9. CARTES D'ARTICLE
   ---------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; background: transparent; }
.card__media { line-height: 0; overflow: hidden; display: block; border-radius: var(--nv-radius); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media--empty { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--nv-accent-soft); border-radius: var(--nv-radius); }
.card__body { padding: .9rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.card__title { font-size: 1.15rem; margin: .15rem 0; line-height: 1.3; }
.card__title a { color: var(--nv-ink); text-decoration: none; }
.card__title a:hover { color: var(--nv-accent); }
.card__excerpt { font-size: .92rem; color: var(--nv-muted); margin: 0; }
.card__meta { font-size: .8rem; color: var(--nv-muted); margin: 0; }
.section--dark .card__title a { color: var(--nv-dark-ink); }
.section--dark .card__excerpt, .section--dark .card__meta { color: #AAB2C0; }

/* -------------------------------------------------------------------------
   10. FIL D'ARIANE
   ---------------------------------------------------------------------- */
.crumb { padding-top: 1.3rem; font-size: .82rem; color: var(--nv-muted); }
.crumb__list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumb__list li + li::before { content: "/"; margin-right: .4rem; color: var(--nv-line); }
.crumb a, .crumb__list a { color: var(--nv-muted); text-decoration: none; }
.crumb a:hover { color: var(--nv-accent); }
.crumb [aria-current="page"] { color: var(--nv-ink); }

/* -------------------------------------------------------------------------
   11. ARTICLE
   ---------------------------------------------------------------------- */
.single, .page-single { padding-bottom: var(--nv-section-y); }
.single__head, .page-single__head { padding-top: 1.2rem; }
.single__title { margin-bottom: .7rem; }
.single__meta { color: var(--nv-muted); font-size: .87rem; }
.single__media { margin: 1.8rem 0; }
.single__media img { width: 100%; border-radius: var(--nv-radius); }
.single__chapo { font-size: 1.12rem; color: var(--nv-muted); margin-bottom: 1.6rem; }

.single__content { font-size: 1.06rem; }
.single__content h2 { margin-top: 2.4rem; scroll-margin-top: 1.5rem; }
.single__content h3 { margin-top: 1.7rem; scroll-margin-top: 1.5rem; }
.single__content ul, .single__content ol { padding-left: 1.3rem; }
.single__content li { margin-bottom: .45rem; }
.single__content img { border-radius: var(--nv-radius); margin: 1.8rem 0; }
.single__content blockquote {
	margin: 1.8rem 0; padding: .2rem 0 .2rem 1.4rem;
	border-left: 2px solid var(--nv-gold);
	font-family: var(--nv-font-display); font-size: 1.2rem; line-height: 1.5;
}

/* Sommaire d'article */
.toc {
	margin: 1.8rem 0; padding: .3rem 1.2rem .9rem;
	background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
}
.toc__summary {
	font-family: var(--nv-font-display); font-weight: 600; font-size: 1.02rem;
	cursor: pointer; padding: .8rem 0; list-style: none;
	display: flex; align-items: center; gap: .5rem;
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::before { content: ""; width: 18px; height: 1px; background: var(--nv-gold); flex: 0 0 auto; }
.toc__list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.toc__list a {
	display: block; padding: .3rem 0; color: var(--nv-muted); text-decoration: none;
	border-left: 2px solid transparent; padding-left: .7rem; line-height: 1.4;
}
.toc__list li.toc__sub a { padding-left: 1.7rem; font-size: .88rem; }
.toc__list a:hover { color: var(--nv-accent); }
.toc__list a.is-active { color: var(--nv-accent); border-left-color: var(--nv-accent); }

/* Tableaux responsives */
.table-scroll, .single__content figure.wp-block-table {
	margin: 1.8rem 0; max-width: 100%; overflow-x: auto;
	border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
}
.single__content table, .page-single__content table { width: 100%; border-collapse: collapse; margin: 0; font-size: .94rem; }
.single__content th, .single__content td, .page-single__content th, .page-single__content td {
	padding: .75rem .95rem; border-bottom: 1px solid var(--nv-line);
	border-right: 1px solid var(--nv-line); text-align: left; vertical-align: top;
}
.single__content th:last-child, .single__content td:last-child,
.page-single__content th:last-child, .page-single__content td:last-child { border-right: 0; }
.single__content thead th, .page-single__content thead th {
	background: var(--nv-accent-soft); font-family: var(--nv-font-display); font-weight: 600;
}
.single__content tbody tr:last-child td { border-bottom: 0; }

/* Encarts editoriaux */
.sources {
	margin: 2.2rem 0; padding: 1.2rem 1.4rem;
	background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
}
.sources h2 { font-size: 1.05rem; margin-top: 0; }
.sources ul { margin: 0; padding-left: 1.2rem; font-size: .91rem; color: var(--nv-muted); }

.method-note, .prudence {
	margin: 1.8rem 0; padding: 1rem 1.2rem; font-size: .91rem; color: var(--nv-muted);
	background: var(--nv-accent-soft); border-radius: var(--nv-radius);
}
.prudence { background: var(--nv-gold-soft); border-left: 2px solid var(--nv-gold); }

.disclaimer { font-size: .83rem; color: var(--nv-muted); }
.disclaimer--footer { margin-top: 1.1rem; color: #98A0AE; }
.disclaimer--page { margin-top: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--nv-line); border-radius: var(--nv-radius); }

.author-box {
	margin-top: 2.4rem; padding: 1.5rem; display: flex; gap: 1.2rem; align-items: flex-start;
	background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
}
.author-box__name { font-family: var(--nv-font-display); font-weight: 600; font-size: 1.08rem; margin: 0; }
.author-box__role { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--nv-accent); margin: 0 0 .55rem; }
.author-box__bio { font-size: .93rem; color: var(--nv-muted); margin: 0 0 .6rem; }
.author-box__link { font-weight: 500; font-size: .89rem; }

/* Citation editoriale mise en avant. Pas de guillemet decoratif geant :
   la taille et la serif suffisent, et un glyphe ornemental ferait publicite. */
.pullquote { margin: 0; text-align: center; }
.pullquote__text { margin: 0; padding: 0; border: 0; }
.pullquote__text p {
	font-family: var(--nv-font-display);
	font-size: clamp(1.35rem, 3.2vw, 1.95rem);
	line-height: 1.4; color: var(--nv-ink);
	margin: 0; text-wrap: balance;
}
.pullquote__by {
	display: flex; align-items: center; justify-content: center;
	gap: .9rem; margin-top: 1.8rem;
}
.pullquote__id { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.pullquote__name { font-weight: 500; font-size: .95rem; }
.pullquote__role {
	font-size: .72rem; text-transform: uppercase; letter-spacing: .13em;
	color: var(--nv-gold-ink);
}
.section--quote .mono { background: var(--nv-surface); }

.mono {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 58px; height: 58px; border-radius: 50%;
	background: var(--nv-gold-soft); color: var(--nv-accent);
	font-family: var(--nv-font-display); font-weight: 600; font-size: 1.2rem;
}

/* -------------------------------------------------------------------------
   12. ARCHIVES ET PAGINATION
   ---------------------------------------------------------------------- */
.archive-head { padding-block: clamp(1.6rem, 4vw, 2.8rem) 0; }
.archive-head__intro { color: var(--nv-muted); font-size: 1.02rem; }
.archive { padding-block: clamp(1.6rem, 4vw, 2.8rem) var(--nv-section-y); }
.empty-note { color: var(--nv-muted); }

.navigation.pagination { margin-top: 2.8rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.navigation.pagination .page-numbers {
	display: inline-flex; min-width: 44px; min-height: 44px;
	align-items: center; justify-content: center; padding: 0 .8rem;
	border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
	text-decoration: none; color: var(--nv-ink); background: var(--nv-surface);
}
.navigation.pagination .page-numbers.current { background: var(--nv-accent); color: #fff; border-color: var(--nv-accent); }

/* -------------------------------------------------------------------------
   13. FORMULAIRE
   ---------------------------------------------------------------------- */
.tool {
	background: var(--nv-surface); border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius); padding: clamp(1.3rem, 3vw, 2rem);
}
.tool__title { margin-top: 0; }
.tool__intro { color: var(--nv-muted); font-size: .95rem; }
.tool__form { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 48em) { .tool__form--contact { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; font-size: .88rem; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
	min-height: 46px; padding: .6rem .8rem; border-radius: var(--nv-radius);
	border: 1px solid var(--nv-line); background: var(--nv-paper);
	color: var(--nv-ink); font-size: 1rem; font-family: var(--nv-font-text);
}
.field textarea { min-height: 140px; line-height: 1.6; }
.field-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__hint { font-weight: 400; color: var(--nv-muted); font-size: .8rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"],
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #A8322A; }

.tool__resume {
	font-family: var(--nv-font-display); font-weight: 600;
	font-size: 1.15rem; line-height: 1.4; margin: 0 0 1.1rem; color: var(--nv-ink);
}
.tool__error { color: #A8322A; margin: 0 0 .4rem; font-weight: 500; }
.tool__errors { margin: 0; padding-left: 1.2rem; color: #A8322A; font-size: .92rem; }
.tool__note { margin: .9rem 0 0; font-size: .83rem; color: var(--nv-muted); }
.tool__disclaimer { margin: 1.3rem 0 0; font-size: .83rem; color: var(--nv-muted); }
.tool__result { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--nv-line); }
.tool__result[hidden] { display: none; }

/* Outil : le cout reel d'un soin. Deux colonnes de saisie, empilees en mobile. */
.tool__form--cout { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 48em) { .tool__form--cout { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

.cout__col { display: grid; gap: .9rem; align-content: start; }
.cout__col-title {
	margin: 0; font-size: 1.02rem; padding-bottom: .5rem;
	border-bottom: 1px solid var(--nv-line);
	display: flex; align-items: baseline; gap: .5rem;
}
.cout__col-note {
	font-family: var(--nv-font-text); font-weight: 400; font-size: .74rem;
	text-transform: uppercase; letter-spacing: .1em; color: var(--nv-muted);
}
.field--row { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }
.field--row > div { display: flex; flex-direction: column; gap: .35rem; }
.cout__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.cout-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.cout-table th, .cout-table td {
	padding: .7rem .9rem; text-align: left; vertical-align: top;
	border-bottom: 1px solid var(--nv-line);
}
.cout-table thead th {
	background: var(--nv-accent-soft); font-family: var(--nv-font-display);
	font-weight: 600; white-space: nowrap;
}
.cout-table tbody th { font-weight: 500; color: var(--nv-muted); }
.cout-table tbody tr:first-child td { font-weight: 600; color: var(--nv-ink); }
.cout-table tbody tr:last-child th, .cout-table tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------------------
   14. PIED DE PAGE
   ---------------------------------------------------------------------- */
.site-footer { background: var(--nv-dark); color: #C3C9D4; margin-top: var(--nv-section-y); }
.site-footer__inner {
	max-width: var(--nv-maxw); margin-inline: auto;
	padding: clamp(2.6rem, 6vw, 3.8rem) clamp(1.1rem, 4vw, 2rem);
	display: grid; gap: var(--nv-gap); grid-template-columns: 1fr;
}
.site-footer .brand, .site-footer .brand__mark { color: var(--nv-dark-ink); }
.site-footer .brand__accent { color: var(--nv-dark-accent); }
.site-footer__baseline { color: #AAB2C0; font-size: .92rem; }
.site-footer__title {
	font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
	margin-bottom: .9rem; color: var(--nv-dark-ink); font-family: var(--nv-font-text); font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #C3C9D4; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--nv-dark-accent); }
.site-footer__bottom { border-top: 1px solid rgba(241, 238, 232, .14); }
.site-footer__bottom p { margin: 0; padding-block: 1.2rem; font-size: .79rem; color: #8F97A6; }
@media (min-width: 48em) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); } }

/* -------------------------------------------------------------------------
   15. ACCORDEON
   ---------------------------------------------------------------------- */
.accordion { border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; background: var(--nv-surface); }
.accordion__item + .accordion__item { border-top: 1px solid var(--nv-line); }
.accordion__trigger {
	width: 100%; text-align: left; background: transparent; border: 0;
	padding: 1.1rem 1.3rem; font: 500 1rem/1.4 var(--nv-font-text);
	color: var(--nv-ink); display: flex; justify-content: space-between;
	align-items: center; gap: 1rem; cursor: pointer;
}
.accordion__trigger::after { content: "+"; font-size: 1.3rem; color: var(--nv-gold-ink); }
.accordion__trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion__panel { padding: 0 1.3rem 1.2rem; color: var(--nv-muted); }
.accordion__panel[hidden] { display: none; }

/* -------------------------------------------------------------------------
   16. PAGE STANDARD
   ---------------------------------------------------------------------- */
.page-single__content { font-size: 1.04rem; }
.page-single__content h2 { margin-top: 2.2rem; }
.page-single__content h3 { margin-top: 1.6rem; }
.page-single__content ul, .page-single__content ol { padding-left: 1.3rem; }
.page-single__content li { margin-bottom: .45rem; }

/* -------------------------------------------------------------------------
   17. PREFERENCES DE MOUVEMENT
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
