/* =====================================================================
   FisherMade — styles editoriaux Cortex
   Portes depuis le CSS additionnel live (wp-custom-css) du site Astra.
   (a) corps d'article + blocs cortex-*  |  (c) carte article globalisee
   Aucun selecteur specifique a une page (styles rendus globaux).
   ===================================================================== */

:root {
	--cx-navy: #0A1628;
	--cx-teal: #00D4AA;
	--cx-orange: #FF6B35;
	--cx-ink: #1B2733;
	--cx-muted: #5A6B7A;
	--cx-line: #DCE3EA;
	--cx-bg: #F7F9FB;
	/* Direction A « Instrument de bord » (fond nuit) */
	--cx-teal-text: #007F66;   /* turquoise en TEXTE sur fond clair (AA) — jamais #00D4AA sur blanc */
	--cx-bright: #F4F7FB;
	--cx-ink-light: #E6EDF5;
	--cx-mute-1: #C9D3E0;
	--cx-mute-2: #A9B6C6;      /* ~9:1 sur nuit */
	--cx-mute-3: #8E9DB0;      /* ~6,6:1 sur nuit */
	--cx-panel: #0F203A;
	--cx-panel-2: #0C1B31;
	--cx-hair: rgba(230, 237, 245, .10);
	--cx-logo-red: #C7161A;    /* rouge dominant mesure sur assets/img/fishermade-logo.png */
	--cx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--cx-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Cibles tactiles et focus visibles (fond nuit par defaut). */
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--cx-teal); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   (a) Corps d'article — .single-post .entry-content (core/post-content
   emet class="entry-content" ; .single-post ajoute par body_class()).
   max-width:740px retire (arbitrage 2 -> theme.json contentSize 720px).
   --------------------------------------------------------------------- */
.single-post .entry-content {
	margin-inline: auto;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--cx-ink);
}
.single-post .entry-content p { margin: 0 0 1.25em; }
.single-post .entry-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--cx-navy);
	margin: 2.2em 0 .8em;
	padding-bottom: .35em;
	border-bottom: 3px solid var(--cx-teal);
	display: inline-block;
}
.single-post .entry-content h3 {
	font-size: 1.2rem;
	color: var(--cx-navy);
	margin: 1.6em 0 .6em;
}
.single-post .entry-content ul,
.single-post .entry-content ol { padding-left: 1.4em; }
.single-post .entry-content li { margin: .35em 0; }
.single-post .entry-content li strong { color: var(--cx-navy); }

/* Bannieres de relecture (annotation relecteur, cf. renderReviewBanner) */
.cortex-review {
	display: block;
	margin: 0 0 .9em;
	padding: .85em 1.1em;
	border-radius: 10px;
	font-size: .95rem;
	line-height: 1.55;
	border: 1px solid;
	border-left-width: 6px;
}
.cortex-review strong { letter-spacing: .02em; }
.cortex-review--warn { background: #FFF3EC; border-color: var(--cx-orange); color: #7A2E0E; }
.cortex-review--info { background: #E8FBF6; border-color: var(--cx-teal); color: #0F4F45; }
.cortex-review + .cortex-review { margin-top: -.3em; }
.cortex-review + p { margin-top: 1.8em; }

/* Graphique Copernicus (figure.cortex-chart > svg + figcaption) */
.cortex-chart {
	margin: 2em 0;
	padding: 1em 1em .75em;
	background: var(--cx-bg);
	border: 1px solid var(--cx-line);
	border-radius: 14px;
}
.cortex-chart svg { display: block; width: 100%; height: auto; }
.cortex-chart figcaption {
	margin-top: .6em;
	font-size: .8rem;
	color: var(--cx-muted);
	text-align: left;
	line-height: 1.45;
}

/* Sources (section.cortex-sources) — fond nuit #0A1628 mesure :
   exception turquoise conservee (turquoise lisible sur nuit). */
.cortex-sources {
	margin: 3em 0 1em;
	padding: 1.25em 1.5em;
	background: var(--cx-navy);
	color: #E6EDF3;
	border-radius: 14px;
}
.cortex-sources h2 {
	color: var(--cx-teal);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 0 .8em;
	border: 0;
	display: block;
}
.cortex-sources ol { margin: 0; padding-left: 1.4em; font-size: .9rem; line-height: 1.55; }
.cortex-sources li { margin: .4em 0; word-break: break-word; }
.cortex-sources a { color: var(--cx-teal); text-decoration: underline; text-underline-offset: 2px; }
.cortex-sources a:hover { color: #fff; }
.cortex-sources li:target { background: rgba(0, 212, 170, .15); border-radius: 6px; padding: .2em .4em; }
/* D3 : gagne sur .single-post .entry-content h2 par la specificite (3 classes + element), sans surcharge forte */
.single-post .entry-content .cortex-sources h2 { color: #FFFFFF; }

.single-post .entry-content p:has(+ .cortex-sources) {
	font-size: .9rem;
	color: var(--cx-muted);
	border-top: 1px solid var(--cx-line);
	padding-top: 1em;
}

/* Liens des sources dans la carte claire d'article : .fm-card a (#007F66, ~3,6:1 sur nuit)
   gagnait par l'ordre ; on repasse au turquoise (lisible sur nuit) et l'anneau de focus aussi. */
.fm-card .cortex-sources a { color: var(--cx-teal); }
.fm-card .cortex-sources a:hover { color: #FFFFFF; }
.fm-card .cortex-sources a:focus-visible { outline-color: var(--cx-teal); }
.cortex-sources + .cortex-sources { margin-top: 1em; }

/* Pratiques de terrain [Pn] (section.cortex-sources--pratique) : meme gabarit que les
   sources DOI, accent orange (charte : turquoise = science, orange = terrain) + pastille. */
.cortex-sources--pratique { border-left: 4px solid var(--cx-orange); }
.cortex-sources--pratique h2::before {
	content: "Terrain";
	content: "Terrain" / "";
	display: inline-block;
	margin: 0 .6em .2em 0;
	padding: .15em .6em;
	border-radius: 999px;
	background: var(--cx-orange);
	color: var(--cx-navy);
	font-family: var(--cx-mono);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	vertical-align: .1em;
}
.cortex-sources--pratique li:target { background: rgba(255, 107, 53, .18); }

/* Encadre mer (aside.cortex-mer : h3 + p mesure + p.cortex-mer__source), « instrument »
   sur nuit dans la carte claire ; la ligne source reste petite et discrete. */
.cortex-mer {
	margin: 2em 0;
	padding: 1.1em 1.3em 1em;
	background: var(--cx-navy);
	color: var(--cx-ink-light);
	border: 1px solid rgba(0, 212, 170, .35);
	border-left: 4px solid var(--cx-teal);
	border-radius: 14px;
	font-family: var(--cx-sans);
}
.single-post .entry-content .cortex-mer h3,
.cortex-mer h3 {
	margin: 0 0 .55em;
	font-family: var(--cx-mono);
	font-size: .78rem;
	font-weight: 400;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cx-teal);
}
.single-post .entry-content .cortex-mer p,
.cortex-mer p {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--cx-bright);
	font-variant-numeric: tabular-nums;
}
.single-post .entry-content .cortex-mer p + p { margin-top: .4em; }
.single-post .entry-content .cortex-mer .cortex-mer__source,
.cortex-mer .cortex-mer__source {
	margin-top: .8em;
	padding-top: .6em;
	border-top: 1px solid var(--cx-hair);
	font-family: var(--cx-mono);
	font-size: .72rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--cx-mute-3);
	word-break: break-word;
}

/* ---------------------------------------------------------------------
   Chrome editorial : en-tete nuit + logo + nav, pied de page nuit.
   --------------------------------------------------------------------- */
/* Mobile d'abord : nav sous le logo, puis sur une ligne des 720px. */
.fm-header { background: var(--cx-navy); border-bottom: 1px solid var(--cx-hair); }
.fm-header__inner {
	max-width: 1240px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	padding: .6rem 1rem;
}
.fm-logo-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
/* Logotype clair pour fond nuit : « Fisher » blanc casse, « Made » rouge du logo. */
.fm-logo { font-family: var(--cx-sans); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1; }
.fm-logo__fisher { color: var(--cx-ink-light); }
.fm-logo__made { color: var(--cx-logo-red); }
.fm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.fm-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 .75rem;
	border-radius: 8px;
	color: var(--cx-mute-2);
	text-decoration: none;
	font-family: var(--cx-sans);
	font-weight: 600;
	font-size: .95rem;
}
.fm-nav a:hover { color: var(--cx-bright); background: rgba(230, 237, 245, .06); }
.fm-nav a[aria-current="page"] { color: var(--cx-bright); background: rgba(230, 237, 245, .06); }
.fm-nav a.fm-nav__pro { color: var(--cx-navy); background: var(--cx-teal); font-weight: 700; margin-left: .25rem; }
.fm-nav a.fm-nav__pro:hover { background: #6CF0D2; color: var(--cx-navy); }

.fm-footer { background: var(--cx-navy); color: var(--cx-mute-3); border-top: 1px solid var(--cx-hair); font-size: .85rem; }
.fm-footer__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: 1.75rem 1rem 2.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
}
.fm-footer p { margin: 0; }
.fm-footer a { color: var(--cx-mute-2); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 44px; }
.fm-footer a:hover { color: var(--cx-bright); }

/* Carte claire : gardee pour les articles et les pages (lecture longue, graphiques
   et bannieres concus sur fond clair) ; retiree de l'accueil et des archives.
   Padding gere ici (pas en inline) pour etre surchargeable en mobile. */
.fm-card { padding: 1.5rem 1.25rem; }
/* Liens dans la carte claire : turquoise-texte AA (le turquoise global est pour la nuit). */
.fm-card a:where(:not(.wp-element-button)) { color: var(--cx-teal-text); }
.fm-card a:where(:not(.wp-element-button)):hover { color: var(--cx-navy); }
/* Focus turquoise invisible sur clair (~1,7:1) : anneau nuit dans les zones claires. */
:where(.fm-card, .fm-newsletter) :where(a, button, input, summary):focus-visible { outline-color: var(--cx-navy); }
/* Le h1 global est clair (fond nuit) : dans la carte claire il repasse en nuit. */
.fm-card h1 { color: var(--cx-navy); }

/* Titres de section communs (accueil). */
.fm-kicker {
	margin: 0 0 .6rem;
	font-family: var(--cx-mono);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cx-teal);
}
.fm-section-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -.03em;
	font-weight: 800;
	color: var(--cx-bright);
}

/* Compteurs Cortex (accueil + shortcode [cortex_compteurs]) : grille a filets, chiffres en mono. */
.fm-stats { max-width: 1240px; margin: 0 auto 3rem; padding: 0 1rem; }
.fm-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 1px;
	margin: 0;
	background: var(--cx-hair);
	border: 1px solid var(--cx-hair);
	border-radius: 16px;
	overflow: hidden;
}
.fm-stats__item { background: var(--cx-navy); padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column-reverse; gap: .35rem; }
.fm-stats__label { font-size: .9rem; color: var(--cx-mute-2); margin: 0; line-height: 1.35; }
.fm-stats__value { font-family: var(--cx-mono); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.25rem); letter-spacing: -.03em; color: var(--cx-bright); margin: 0; line-height: 1.1; }
.fm-stats__item--ecartees .fm-stats__value { color: var(--cx-orange); }
.fm-stats__item--mesures_mer_jour .fm-stats__value { color: var(--cx-teal); }
.fm-stats__note { font-size: .8rem; color: var(--cx-mute-3); margin: .6rem .1rem 0; }
/* Shortcode [cortex_compteurs] pose dans une carte claire : variante claire. */
.fm-card .fm-stats { padding: 0; }
.fm-card .fm-stats__grid { background: var(--cx-line); border-color: var(--cx-line); }
.fm-card .fm-stats__item { background: #fff; }
.fm-card .fm-stats__label, .fm-card .fm-stats__note { color: var(--cx-muted); }
.fm-card .fm-stats__value { color: var(--cx-navy); }
.fm-card .fm-stats__item--ecartees .fm-stats__value { color: #B33F12; }
.fm-card .fm-stats__item--mesures_mer_jour .fm-stats__value { color: var(--cx-teal-text); }

/* Pages especes ([cortex_especes] grille + [cortex_espece] fiche).
   Accent sur fond blanc = #007F66 (contraste AA) ; jamais #00D4AA sur blanc ; orange non utilise. */
.fm-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 0; }
.fm-sp-grid + .fm-sp-grid { margin-top: 2.5rem; }
.fm-sp-grid__title { grid-column: 1 / -1; font-size: 1.35rem; line-height: 1.3; margin: 0; color: var(--cx-navy); }
.fm-sp-card { background: var(--cx-bg); border: 1px solid var(--cx-line); border-radius: 14px; padding: 1.4rem 1.5rem 1.2rem; }
.fm-sp-card__name { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .15rem; color: var(--cx-navy); }
.fm-sp-card__name a { color: #007F66; text-decoration: none; }
.fm-sp-card__name a:hover { color: var(--cx-navy); text-decoration: underline; }
.fm-sp-card__sci { font-size: .9rem; color: var(--cx-muted); margin: 0 0 .5rem; }
.fm-sp-card__meta { font-size: .85rem; color: var(--cx-ink); margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; }

.fm-sp-pending { color: var(--cx-mute-2); font-style: italic; }

/* =====================================================================
   Fiche espece « A » (templates/page-fiche-espece.html, inc/species-fiche.php).
   Fond nuit comme l'accueil : la fiche est un instrument (compteurs, calendrier,
   cartes), pas une lecture longue. Textes : ink-light / mute-1 / mute-2 (~9:1) /
   mute-3 (~6,6:1) sur nuit ; turquoise = science, orange = terrain + mois en cours.
   ===================================================================== */
.fm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fm-fiche { margin: 0; padding: 0; }
.fm-fiche__inner { max-width: 1240px; margin: 0 auto; padding: 2rem 1rem 3rem; box-sizing: border-box; }
.fm-fiche__inner > * { margin-block: 0; }
.fm-fiche .wp-block-post-title.fm-fiche__titre {
	margin: 0;
	font-size: clamp(2.6rem, 1.4rem + 5.5vw, 6rem);
	line-height: .95;
	letter-spacing: -.045em;
	font-weight: 800;
	color: var(--cx-bright);
}
.fm-fiche .entry-content > * + * { margin-top: 2.5rem; }
.fm-sp-detail { color: var(--cx-ink-light); line-height: 1.6; }
.fm-sp-detail > * + * { margin-top: 2.5rem; }

/* En-tete : latin, pastilles, compteurs. */
.fm-fiche__tete { display: flex; flex-direction: column; gap: .9rem; margin-top: .6rem; }
.fm-fiche__sci { margin: 0; font-size: 1.3rem; color: var(--cx-mute-2); }
.fm-fiche__pastilles { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--cx-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.fm-pastille { padding: .35em .75em; border-radius: 999px; background: rgba(230, 237, 245, .06); color: var(--cx-mute-1); }
.fm-pastille--mer { background: rgba(0, 212, 170, .14); color: var(--cx-teal); }
.fm-pastille--eau { background: rgba(156, 195, 255, .14); color: #9CC3FF; }
.fm-fiche__compteurs {
	margin: .4rem 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	gap: 1px;
	background: var(--cx-hair);
	border: 1px solid var(--cx-hair);
	border-radius: 14px;
	overflow: hidden;
}
.fm-fiche__compteur { background: var(--cx-navy); padding: 1rem; display: flex; flex-direction: column-reverse; gap: .15rem; }
.fm-fiche__compteur dt { font-size: .85rem; color: var(--cx-mute-2); }
.fm-fiche__compteur dd { margin: 0; font-family: var(--cx-mono); font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--cx-bright); }
.fm-fiche__compteur--faits dd { color: var(--cx-teal); }

/* Blocs : calendrier + reglementation cote a cote en large. */
.fm-fiche__duo { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.fm-fiche__bloc { box-sizing: border-box; padding: 1.5rem; border-radius: 18px; background: var(--cx-panel-2); border: 1px solid var(--cx-hair); display: flex; flex-direction: column; gap: .8rem; }
.fm-fiche__bloc p { margin: 0; }
.fm-cal { flex: 999 1 560px; min-width: 0; }
.fm-regl { flex: 1 1 280px; color: var(--cx-mute-1); font-size: .95rem; }
.fm-fiche__bloc .fm-regl__lien { margin-top: auto; font-weight: 700; }
.fm-regl__lien a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.fm-fiche__h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--cx-bright); }
.fm-fiche__h2--grand { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 1.25rem; }
.fm-fiche__note { font-size: .82rem; color: var(--cx-mute-3); }
.fm-kicker--terrain { color: var(--cx-orange); }
.fm-kicker--neutre { color: var(--cx-mute-3); }

/* Calendrier terrain : 12 mois, defile horizontalement sur mobile. */
.fm-cal__defile { overflow-x: auto; }
.fm-cal__table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 4px 2px; font-family: var(--cx-mono); font-size: .78rem; text-align: center; color: var(--cx-mute-1); }
.fm-cal__table th { font-weight: 400; color: var(--cx-mute-3); padding: .2rem 0; }
.fm-cal__table th[scope="row"] { text-align: left; font-family: var(--cx-sans); font-size: .85rem; font-weight: 600; color: var(--cx-mute-1); padding-right: .5rem; }
.fm-cal__table td { padding: .15rem 0; }
.fm-cal__table .is-now { color: var(--cx-orange); font-weight: 700; }
.fm-cal__now { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--cx-orange); }
.fm-cal__case { display: block; height: 30px; border-radius: 6px; background: rgba(230, 237, 245, .05); }
/* Charte : turquoise = intensite des conseils ; orange = mois en cours (et alertes) seulement ; mois vide = neutre. */
.fm-cal__case--1 { background: rgba(0, 212, 170, .22); }
.fm-cal__case--2 { background: rgba(0, 212, 170, .40); }
.fm-cal__case--3 { background: rgba(0, 212, 170, .60); }
.fm-cal__case--4 { background: rgba(0, 212, 170, .80); }
.fm-cal__case--now.fm-cal__case--1 { background: rgba(255, 107, 53, .35); }
.fm-cal__case--now.fm-cal__case--2 { background: rgba(255, 107, 53, .55); }
.fm-cal__case--now.fm-cal__case--3 { background: rgba(255, 107, 53, .75); }
.fm-cal__case--now.fm-cal__case--4 { background: rgba(255, 107, 53, .9); }
.fm-cal__barres .is-now .fm-cal__case { outline: 2px solid var(--cx-orange); outline-offset: 1px; }

/* Faits DOI : cartes groupees par type. */
.fm-sp-group + .fm-sp-group { margin-top: 1.75rem; }
.fm-sp-group__title { margin: 0 0 .75rem; font-family: var(--cx-mono); font-size: .8rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-mute-2); }
.fm-sp-group__title span { color: var(--cx-teal); }
.fm-fiche__cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .75rem; }
.fm-sp-fact { margin: 0; padding: 1.2rem; border-radius: 14px; background: var(--cx-panel-2); border: 1px solid rgba(230, 237, 245, .08); display: flex; flex-direction: column; gap: .7rem; }
.fm-sp-fact p { margin: 0; }
.fm-sp-fact__haut { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--cx-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-mute-3); }
.fm-sp-fact__haut span:first-child { color: var(--cx-teal); }
.fm-sp-fact__text { color: var(--cx-ink-light); }
.fm-sp-fact .fm-sp-fact__meta { margin-top: auto; font-family: var(--cx-mono); font-size: .75rem; color: var(--cx-mute-3); word-break: break-word; }
.fm-sp-fact__doi { text-decoration: none; }
.fm-sp-fact__doi:hover { text-decoration: underline; }

/* Conseils de terrain : onglets (ancres) + panneaux. */
.fm-fiche__terrain { padding: 2rem 1.25rem; border-radius: 18px; background: var(--cx-panel-2); border: 1px solid var(--cx-hair); }
.fm-onglets { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; margin: 0 0 1.5rem; border-radius: 10px; background: rgba(230, 237, 245, .06); }
.fm-fiche .fm-onglets a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: 8px; font-size: .9rem; font-weight: 700; color: var(--cx-mute-1); text-decoration: none; }
.fm-fiche .fm-onglets a:hover { background: rgba(230, 237, 245, .08); color: var(--cx-bright); }
.fm-onglets a span { font-family: var(--cx-mono); font-weight: 400; color: var(--cx-mute-3); }
.fm-panneau { scroll-margin-top: 1rem; }
.fm-panneau + .fm-panneau { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--cx-hair); }
.fm-panneau__titre { margin: 0 0 .9rem; font-size: 1.2rem; font-weight: 800; color: var(--cx-bright); }
.fm-panneau__titre span { font-family: var(--cx-mono); font-size: .8rem; font-weight: 400; color: var(--cx-mute-3); }
.fm-conseil { margin: 0 0 .6rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--cx-navy); border: 1px solid rgba(230, 237, 245, .08); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.fm-conseil p { margin: 0; }
.fm-conseil__texte { flex: 999 1 420px; color: var(--cx-ink-light); }
.fm-conseil__meta { flex: 1 1 200px; display: flex; flex-direction: column; gap: .5rem; }
.fm-conseil__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.fm-conseil__tags span { font-family: var(--cx-mono); font-size: .7rem; padding: .3em .6em; border-radius: 999px; background: rgba(230, 237, 245, .07); color: var(--cx-mute-1); }
.fm-conseil__src { font-family: var(--cx-mono); font-size: .75rem; color: var(--cx-mute-3); word-break: break-word; }
.fm-voirtout > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--cx-teal); }
.fm-voirtout[open] > summary { margin-bottom: .6rem; }
.fm-sp-detail__footer { font-size: .85rem; color: var(--cx-mute-3); border-top: 1px solid var(--cx-hair); padding-top: 1em; }
@media (min-width: 720px) {
	.fm-fiche__inner { padding: 2.5rem 1.5rem 4rem; }
	.fm-fiche__bloc { padding: 1.75rem; }
	.fm-fiche__terrain { padding: 2.5rem 2rem; }
}

/* Accueil : section « Ce que dit la science » (compteurs -> especes -> contenu). */
.fm-sp-home { margin: 2rem 0 0; }
.fm-sp-home__title { font-size: 1.4rem; font-weight: 700; color: var(--cx-navy); margin: 0 0 1rem; }
.fm-sp-home__more { margin: 1.2rem 0 0; }
.fm-sp-home__more a { color: #007F66; text-decoration: none; font-weight: 600; }
.fm-sp-home__more a:hover { color: var(--cx-navy); text-decoration: underline; }

/* Panneau « Techniques » de la fiche (fishermade_species_terrain_html) : filtres
   saison/facade (especes-terrain.js) + tableau + details. Fond nuit ; orange UNIQUEMENT
   pour « en ce moment ». */
.fm-sp-terrain__title { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 800; color: var(--cx-bright); }
.fm-sp-terrain__intro { font-size: .9rem; color: var(--cx-mute-2); margin: 0 0 1.2rem; line-height: 1.5; }
.fm-sp-terrain__filters { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 0 0 1.2rem; }
.fm-sp-terrain__filtergroup { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fm-sp-terrain__filtergroup button { font: inherit; font-size: .85rem; min-height: 44px; cursor: pointer; border: 1px solid rgba(230, 237, 245, .16); background: transparent; color: var(--cx-mute-1); border-radius: 999px; padding: 0 .9em; }
.fm-sp-terrain__filtergroup button:hover { border-color: var(--cx-teal); color: var(--cx-bright); }
.fm-sp-terrain__filtergroup button.is-active { background: var(--cx-teal); color: var(--cx-navy); border-color: var(--cx-teal); font-weight: 700; }
.fm-sp-terrain__now { display: inline-block; margin-left: .35em; font-size: .7rem; font-weight: 700; color: var(--cx-navy); background: var(--cx-orange); border-radius: 999px; padding: .05em .5em; }
.fm-sp-terrain__table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .92rem; color: var(--cx-mute-1); }
.fm-sp-terrain__table th, .fm-sp-terrain__table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--cx-hair); vertical-align: top; }
.fm-sp-terrain__table th { color: var(--cx-mute-3); font-family: var(--cx-mono); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.fm-sp-terrain__table td:first-child { color: var(--cx-bright); font-weight: 700; }
.fm-sp-terrain__src { white-space: nowrap; font-family: var(--cx-mono); font-size: .8rem; }
.fm-sp-terrain__details { border: 1px solid rgba(230, 237, 245, .08); border-radius: 12px; margin: 0 0 .6rem; background: var(--cx-navy); }
.fm-sp-terrain__dsummary { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 44px; cursor: pointer; padding: .3rem 1rem; font-weight: 700; color: var(--cx-bright); }
.fm-sp-terrain__count { color: var(--cx-mute-3); font-weight: 400; font-size: .8rem; font-family: var(--cx-mono); }
.fm-sp-terrain__conseil { padding: .8rem 1rem; border-top: 1px solid var(--cx-hair); }
.fm-sp-terrain__text { margin: 0 0 .3rem; color: var(--cx-ink-light); }
.fm-sp-terrain__cmeta { font-family: var(--cx-mono); font-size: .75rem; color: var(--cx-mute-3); margin: 0; }
.fm-sp-terrain__tags { margin: .35rem 0 0; padding-left: 1.1em; font-size: .82rem; color: var(--cx-mute-1); }
.fm-sp-terrain__tags li { margin: .1rem 0; }
.fm-sp-terrain__tags strong { color: var(--cx-bright); }
@media (max-width: 600px) {
	.fm-sp-terrain__table,
	.fm-sp-terrain__table tbody,
	.fm-sp-terrain__table tr,
	.fm-sp-terrain__table td { display: block; width: 100%; box-sizing: border-box; }
	.fm-sp-terrain__table thead { display: none; }
	.fm-sp-terrain__table tr { border: 1px solid var(--cx-hair); border-radius: 10px; margin: 0 0 .8rem; padding: .3rem .2rem; }
	.fm-sp-terrain__table td { border: 0; padding: .3rem .6rem; }
	.fm-sp-terrain__table td::before { content: attr(data-label) " : "; font-weight: 700; color: var(--cx-mute-3); }
	.fm-sp-terrain__src { white-space: normal; }
}

/* ---------------------------------------------------------------------
   (c) Carte article partagee (globalisee depuis la page index #833 du live) :
   accueil + archives. Badge categorie, titre, extrait, date — pas d'auteur.
   --------------------------------------------------------------------- */
.wp-block-post-template { gap: 1.5rem; }
/* Grille responsive : 3 colonnes a 1100px, 2 en tablette, 1 en mobile (auto-fill, pas de media query) */
.wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
/* Toutes les regles de carte sont scopees a .wp-block-post-template :
   aucune ne matche hors boucle (sinon elles ecrasent h1.wp-block-post-title). */
/* Direction A : cartes nuit (accueil + archives, plus de carte blanche autour). */
.wp-block-post-template .wp-block-post {
	background: var(--cx-panel);
	border: 1px solid rgba(230, 237, 245, .08);
	border-radius: 14px;
	padding: 1.25rem 1.4rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	transition: border-color .15s ease;
}
.wp-block-post-template .wp-block-post:hover { border-color: rgba(0, 212, 170, .45); }
.wp-block-post-template .wp-block-post > * { margin: 0; }
.wp-block-post-template .wp-block-post-featured-image { border-radius: 10px; overflow: hidden; }
.wp-block-post-template .wp-block-post-featured-image:empty { display: none; }
.wp-block-post-template .wp-block-post-terms { font-size: .85rem; color: var(--cx-mute-3); }
.wp-block-post-template .wp-block-post-terms a { color: var(--cx-mute-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.wp-block-post-template .wp-block-post-terms a:hover { color: var(--cx-bright); text-decoration: underline; }
.wp-block-post-template .wp-block-post-title { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.wp-block-post-template .wp-block-post-title a { color: var(--cx-bright); text-decoration: none; }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--cx-teal); text-decoration: underline; }
.wp-block-post-template .wp-block-post-excerpt { color: var(--cx-mute-1); font-size: .95rem; line-height: 1.55; }
.wp-block-post-template .wp-block-post-excerpt p { margin: 0; }
.wp-block-post-template .wp-block-post-excerpt__more-text { color: var(--cx-teal); }
.wp-block-post-template .wp-block-post-date { color: var(--cx-mute-3); font-family: var(--cx-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.wp-block-query-pagination { margin-top: 2rem; }
.wp-block-query-pagination a { color: var(--cx-teal); display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .4rem; }
.fm-liste .wp-block-term-description { color: var(--cx-mute-1); max-width: 720px; }

/* --------------------------------------------------------------------- */
@media (max-width: 600px) {
	.single-post .entry-content { font-size: 1rem; }
	.cortex-chart { padding: .6em .5em .5em; border-radius: 10px; }
	.cortex-sources { padding: 1em 1.1em; }
	.cortex-mer { padding: .9em 1em .85em; }
	.single-post .entry-content .cortex-mer p { font-size: 1rem; }
	/* Main des articles/archives : maximiser le contenu utile sur petit ecran */
	main.wp-block-group:not(.fm-home):not(.fm-fiche) { padding-left: .75rem; padding-right: .75rem; }
	.fm-nav a { padding: 0 .55rem; font-size: .9rem; }
}
@media (min-width: 720px) {
	.fm-card { padding: 2.5rem 2.5rem 2rem; }
	.fm-header__inner { padding: .9rem 1.5rem; }
	.fm-logo { font-size: 1.55rem; }
}

/* --------------------------------------------------------------------- */
/* Newsletter (inc/newsletter.php, shortcode [fm_newsletter]) */
.fm-newsletter {
	max-width: 720px;
	margin: 2.5rem auto 0;
	padding: 1.75rem 1.5rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}
.fm-newsletter__titre { margin: 0 0 .4rem; color: var(--cx-navy); font-size: 1.35rem; }
.fm-newsletter__intro { margin: 0 0 1.1rem; color: #334155; line-height: 1.55; }
.fm-newsletter__erreur {
	margin: 0 0 1rem;
	padding: .65rem .9rem;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: .95rem;
}
/* Champ-piege : hors ecran, jamais affiche (anti-bot). */
.fm-newsletter__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.fm-newsletter__champ { margin: 0 0 1rem; }
.fm-newsletter__champ label,
.fm-newsletter__option label { display: block; color: var(--cx-navy); font-size: .95rem; }
.fm-newsletter__champ label { margin-bottom: .35rem; font-weight: 600; }
.fm-newsletter__champ input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: .7rem .85rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1rem;
}
.fm-newsletter__option { margin: 0 0 1.25rem; }
.fm-newsletter__option label { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.45; }
.fm-newsletter__actions { margin: 0 0 1rem; }
.fm-newsletter__bouton {
	display: inline-block;
	min-height: 48px;
	padding: .75rem 1.6rem;
	background: #00D4AA;
	color: #0A1628;
	border: 0;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.fm-newsletter__bouton:hover { background: #00bd98; }
.fm-newsletter__champ input[type="email"]:focus-visible,
.fm-newsletter__option input:focus-visible,
.fm-newsletter__bouton:focus-visible {
	outline: 3px solid #0A1628;
	outline-offset: 2px;
}
.fm-newsletter__mention { margin: 0; color: var(--cx-muted); font-size: .82rem; line-height: 1.5; }
.fm-newsletter__mention a { color: var(--cx-teal-text); }

/* =====================================================================
   Accueil « A · Instrument de bord » (front-page.html). Mobile d'abord.
   Aucun chiffre ni texte fige ici : tout vient des RPC ou de WordPress.
   ===================================================================== */
.fm-home { margin: 0; padding: 0; }
.fm-home > * { margin-block: 0; }

/* Bloc Cortex : releve + titre de la page d'accueil + son texte. */
.fm-hero__inner { max-width: 1240px; margin: 0 auto; padding: 2.5rem 1rem 2.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.fm-releve {
	margin: 0;
	display: flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--cx-mono);
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cx-teal);
}
.fm-releve__point { width: 8px; height: 8px; border-radius: 50%; background: var(--cx-teal); box-shadow: 0 0 0 4px rgba(0, 212, 170, .18); flex: none; }
.fm-hero__titre {
	margin: 0;
	font-size: clamp(3.2rem, 1.6rem + 7vw, 6.5rem);
	line-height: .95;
	letter-spacing: -.045em;
	font-weight: 800;
	color: var(--cx-bright);
}
/* Index /especes/ : meme coque, titre de page plus sobre que l'accueil. */
.fm-hero__titre--page { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); }
.fm-hero--page .fm-hero__inner { padding-bottom: 0; }
.fm-hero__texte { max-width: 40em; color: #B8C4D3; font-size: 1.1rem; line-height: 1.6; }
.fm-hero__texte p { margin: 0 0 .9em; }
.fm-hero__texte a { color: var(--cx-teal); }
.fm-hero__actions { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.fm-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.25rem;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}
.fm-btn--clair { background: var(--cx-bright); color: var(--cx-navy); }
.fm-btn--clair:hover { background: #fff; color: var(--cx-navy); }
.fm-btn--contour { color: var(--cx-ink-light); border: 1px solid rgba(230, 237, 245, .22); }
.fm-btn--contour:hover { color: var(--cx-bright); border-color: var(--cx-teal); }

/* Chaine de verification : 5 blocs statiques (lisibles sans JS). */
.fm-chain { background: var(--cx-panel-2); border-block: 1px solid rgba(230, 237, 245, .08); }
.fm-chain__inner { max-width: 1240px; margin: 0 auto; padding: 3rem 1rem; }
.fm-chain .fm-section-title { max-width: 22em; }
.fm-chain__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: .75rem;
}
.fm-chain__step {
	margin: 0;
	padding: 1.1rem;
	border-radius: 14px;
	background: var(--cx-navy);
	border: 1px solid var(--cx-hair);
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.fm-chain__num { font-family: var(--cx-mono); font-size: .75rem; color: var(--cx-mute-3); }
.fm-chain__value { font-family: var(--cx-mono); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--cx-bright); }
.fm-chain__step--alerte .fm-chain__value { color: var(--cx-orange); }
.fm-chain__step--donnee .fm-chain__value { color: var(--cx-teal); }
.fm-chain__label { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--cx-bright); }
.fm-chain__bar { display: block; height: 6px; border-radius: 3px; background: rgba(230, 237, 245, .08); overflow: hidden; }
.fm-chain__bar > span { display: block; height: 100%; border-radius: 3px; background: var(--cx-bright); }
.fm-chain__step--alerte .fm-chain__bar > span { background: var(--cx-orange); }
.fm-chain__step--donnee .fm-chain__bar > span { background: var(--cx-teal); }
.fm-chain__pct { font-family: var(--cx-mono); font-size: .75rem; color: var(--cx-mute-3); }
.fm-chain__text { margin: .3rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--cx-mute-1); }
.fm-chain__note { margin: 1rem 0 0; font-size: .8rem; color: var(--cx-mute-3); }

/* Especes : toutes, mer puis eau douce ; carte = vrai lien si la fiche est publiee. */
.fm-home-sp { max-width: 1240px; margin: 0 auto; padding: 3rem 1rem 1rem; }
.fm-home-sp__legende { margin: -.4rem 0 1.5rem; max-width: 46em; font-size: .9rem; color: var(--cx-mute-2); }
.fm-home-sp__milieu { margin: 1.5rem 0 .75rem; font-size: .8rem; font-family: var(--cx-mono); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-mute-2); }
.fm-home-sp__grille {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: .6rem;
}
.fm-home-sp__grille > li { margin: 0; }
.fm-hsp {
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-height: 104px;
	padding: 1rem;
	border-radius: 12px;
	background: var(--cx-panel-2);
	border: 1px solid rgba(230, 237, 245, .08);
	color: inherit;
	text-decoration: none;
}
a.fm-hsp:hover { border-color: var(--cx-teal); background: #12284A; }
.fm-hsp__haut { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.fm-hsp__nom { font-weight: 700; font-size: 1rem; color: var(--cx-bright); }
a.fm-hsp .fm-hsp__nom { text-decoration: underline; text-decoration-color: rgba(0, 212, 170, .5); text-underline-offset: 3px; }
.fm-hsp__milieu { font-family: var(--cx-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; flex: none; }
.fm-hsp__milieu--mer { color: var(--cx-teal); }
.fm-hsp__milieu--eau { color: #9CC3FF; }
.fm-hsp__sci { font-style: italic; font-weight: 400; font-size: .85rem; color: var(--cx-mute-3); }
.fm-hsp__chiffres { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .35rem; font-family: var(--cx-mono); font-size: .8rem; color: var(--cx-mute-1); }
.fm-hsp__chiffres b { color: var(--cx-bright); }
.fm-hsp__chiffres b.fm-hsp__faits { color: var(--cx-teal); }
.fm-hsp__avenir { margin-top: auto; padding-top: .35rem; font-size: .75rem; color: var(--cx-mute-3); }
.fm-home-sp__plus { margin: 1.25rem 0 0; }
.fm-home-sp__plus a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--cx-teal); }

/* 4 derniers articles. */
.fm-home-art { max-width: 1240px; margin: 0 auto; padding: 3rem 1rem 1rem; box-sizing: border-box; }
.fm-home-art__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.fm-home-art__tete .fm-section-title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
.fm-home-art__tous { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--cx-teal); }

/* Cortex Pro : bloc clair (texte turquoise = #007F66, jamais #00D4AA sur clair). */
.fm-pro { max-width: 1240px; margin: 0 auto; padding: 2rem 1rem 4rem; box-sizing: border-box; }
.fm-pro__inner {
	border-radius: 20px;
	padding: 1.75rem 1.25rem;
	background: var(--cx-bright);
	color: var(--cx-navy);
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	align-items: center;
	justify-content: space-between;
}
.fm-pro__texte { flex: 1 1 420px; }
.fm-pro__kicker { margin: 0 0 .5rem; font-family: var(--cx-mono); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-teal-text); }
.fm-pro__titre { margin: 0 0 .6rem; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: var(--cx-navy); }
.fm-pro__intro { margin: 0; color: #3A4A60; }
.fm-pro__erreur { flex-basis: 100%; margin: 0; padding: .65rem .9rem; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .95rem; }
.fm-pro__form { flex: 1 1 340px; }
.fm-pro__champ { margin: 0 0 .75rem; }
.fm-pro__champ label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; color: var(--cx-navy); }
.fm-pro__champ input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 1rem;
	border: 1px solid #6B7B90; /* 4,3:1 sur blanc (>= 3:1 composant d'interface) */
	border-radius: 10px;
	font: inherit;
	color: var(--cx-navy);
	background: #fff;
}
.fm-pro__actions { margin: 0 0 .75rem; }
.fm-pro__bouton {
	min-height: 52px;
	padding: 0 1.4rem;
	border: 0;
	border-radius: 10px;
	background: var(--cx-navy);
	color: var(--cx-bright);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.fm-pro__bouton:hover { background: #12284A; }
.fm-pro :where(a, button, input):focus-visible { outline-color: var(--cx-navy); }
.fm-pro__mention { margin: 0; font-size: .8rem; line-height: 1.5; color: #4A5A70; }
.fm-pro__mention a { color: var(--cx-teal-text); }

/* -------------------------------------------------------------------------- *
 *  Interactivite A (assets/js/fishermade-a.js). Sans JS, aucune de ces classes
 *  n'existe dans la page : tout reste visible.
 * -------------------------------------------------------------------------- */
/* hidden pose par le script : l'emporte sur les display:flex/grid de ces blocs (portee limitee a eux). */
:where(.fm-chain, .fm-home-sp, .fm-sp-detail) [hidden] { display: none !important; }

/* Groupe de bascules (aria-pressed) : filtres qui passent a la ligne. */
.fm-bascule { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; margin: 0 0 1.25rem; border-radius: 10px; background: rgba(230, 237, 245, .06); width: fit-content; max-width: 100%; box-sizing: border-box; }
.fm-bascule__btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 0; border-radius: 8px; background: transparent; color: var(--cx-mute-1); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.fm-bascule__btn:hover { background: rgba(230, 237, 245, .08); color: var(--cx-bright); }
.fm-bascule__btn[aria-pressed="true"] { background: var(--cx-teal); color: var(--cx-navy); }
.fm-bascule__n { font-family: var(--cx-mono); font-weight: 400; opacity: .8; }

/* Chaine : etapes = boutons, texte dans un panneau unique. */
.fm-chain.fm-js .fm-chain__step { padding: 0; border: 0; background: none; }
.fm-chain__btn { display: flex; flex-direction: column; gap: .4rem; width: 100%; height: 100%; min-height: 150px; box-sizing: border-box; padding: 1.1rem; border-radius: 14px; border: 1px solid var(--cx-hair); background: var(--cx-navy); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fm-chain__btn:hover { border-color: rgba(0, 212, 170, .5); }
.fm-chain__btn[aria-pressed="true"] { background: #12284A; border-color: var(--cx-teal); }
.fm-chain__panneau { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: flex-start; margin-top: .75rem; padding: 1.25rem 1.4rem; border-radius: 14px; background: var(--cx-navy); border: 1px solid var(--cx-hair); }
.fm-chain__panneau-titre { margin: 0; min-width: 10em; font-family: var(--cx-mono); font-size: .85rem; color: var(--cx-teal); }
.fm-chain__panneau-texte { margin: 0; flex: 1 1 26em; font-size: 1.05rem; line-height: 1.6; color: var(--cx-mute-1); }

/* Especes de l'accueil : grilles + apercu lateral (empile sur mobile). */
.fm-home-sp__corps { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.fm-home-sp__colonne { flex: 999 1 560px; min-width: 0; }
.fm-home-sp__colonne > .fm-home-sp__bloc:first-child .fm-home-sp__milieu { margin-top: 0; }
.fm-home-sp li.is-sel > .fm-hsp { border-color: var(--cx-teal); background: #12284A; }
.fm-apercu { flex: 1 1 300px; box-sizing: border-box; display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: 16px; background: var(--cx-panel); border: 1px solid rgba(0, 212, 170, .3); }
.fm-apercu p, .fm-apercu blockquote, .fm-apercu dl { margin: 0; }
.fm-apercu__kicker { font-family: var(--cx-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-teal); }
.fm-apercu__nom { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--cx-bright); }
.fm-apercu__sci { font-style: italic; color: var(--cx-mute-2); }
.fm-apercu__chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.fm-apercu__chiffre { display: flex; flex-direction: column-reverse; padding: .7rem; border-radius: 10px; background: rgba(230, 237, 245, .05); }
.fm-apercu__chiffre dt { font-size: .75rem; color: var(--cx-mute-2); }
.fm-apercu__chiffre dd { margin: 0; font-family: var(--cx-mono); font-size: 1.4rem; font-weight: 700; color: var(--cx-bright); }
.fm-apercu__chiffre--faits dd { color: var(--cx-teal); }
.fm-apercu__fait { padding-top: .8rem; border-top: 1px solid var(--cx-hair); color: var(--cx-mute-1); font-size: .95rem; }
.fm-apercu__fait p { margin: 0; }
.fm-apercu__doi { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cx-mono); font-size: .75rem; color: var(--cx-teal); word-break: break-all; }
.fm-apercu__note { padding-top: .8rem; border-top: 1px solid var(--cx-hair); font-size: .9rem; color: var(--cx-mute-2); }
.fm-apercu__lien { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--cx-teal); }
.fm-apercu__lien:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
	.fm-bascule__btn, .fm-chain__btn, .fm-hsp { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
	*, ::before, ::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 720px) {
	.fm-hero__inner { padding: 4.5rem 1.5rem 3rem; }
	.fm-stats { padding: 0 1.5rem; }
	.fm-chain__inner { padding: 4.5rem 1.5rem; }
	.fm-home-sp, .fm-home-art { padding-left: 1.5rem; padding-right: 1.5rem; }
	.fm-pro { padding: 2rem 1.5rem 5rem; }
	.fm-pro__inner { padding: 2.5rem; }
	.fm-footer__inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* =====================================================================
   Page Cortex Pro (templates/page-cortex-pro.html, inc/cortex-pro-page.php).
   Fond nuit, memes jetons que la fiche espece ; orange en aplat RESERVE a
   l'alerte chlorophylle. Le tableau defile dans son conteneur (premiere
   colonne figee), jamais la page.
   ===================================================================== */
.fm-pro__exemple { margin: .9rem 0 0; font-weight: 700; }
.fm-pro__exemple a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cx-teal-text); }
.fm-cpro { color: var(--cx-ink-light); line-height: 1.6; min-width: 0; }
.fm-cpro > * + * { margin-top: 2.5rem; }
.fm-cpro p { margin: 0; }
.fm-cpro__tete { display: flex; flex-direction: column; gap: .8rem; margin-top: .6rem; }
.fm-cpro__promesse { max-width: 26em; font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--cx-bright); }
.fm-cpro__sous, .fm-cpro__intro { max-width: 46em; color: var(--cx-mute-1); }
.fm-cpro__zone .fm-pastille { display: inline-block; font-family: var(--cx-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.fm-cpro__liste { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; color: var(--cx-ink-light); }
.fm-cpro__exemple > * + * { margin-top: 1rem; }
.fm-cpro__h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--cx-bright); }
.fm-cpro__h4 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 700; color: var(--cx-mute-1); }

/* Onglets loup / dorade : radios visuellement masquees + etiquettes ; sans CSS tout est visible. */
.fm-cpro-ex__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fm-cpro-ex__onglets { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: 10px; background: rgba(230, 237, 245, .06); }
.fm-cpro-ex__onglet { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 8px; font-weight: 700; color: var(--cx-mute-1); cursor: pointer; }
.fm-cpro-ex__onglet:hover { background: rgba(230, 237, 245, .08); color: var(--cx-bright); }
.fm-cpro-ex__panneau { display: none; margin-top: 1.25rem; }
.fm-cpro-ex__panneau > * + * { margin-top: 1.25rem; }
#fm-cpro-loup:checked ~ .fm-cpro-ex__panneaux .fm-cpro-ex__panneau--loup,
#fm-cpro-dorade:checked ~ .fm-cpro-ex__panneaux .fm-cpro-ex__panneau--dorade { display: block; }
#fm-cpro-loup:checked ~ .fm-cpro-ex__onglets .fm-cpro-ex__onglet--loup,
#fm-cpro-dorade:checked ~ .fm-cpro-ex__onglets .fm-cpro-ex__onglet--dorade { background: var(--cx-panel); color: var(--cx-bright); box-shadow: inset 0 -2px 0 var(--cx-teal); }
#fm-cpro-loup:focus-visible ~ .fm-cpro-ex__onglets .fm-cpro-ex__onglet--loup,
#fm-cpro-dorade:focus-visible ~ .fm-cpro-ex__onglets .fm-cpro-ex__onglet--dorade { outline: 3px solid var(--cx-teal); outline-offset: 2px; }
.fm-cpro-ex__entete { font-family: var(--cx-mono); font-size: .8rem; letter-spacing: .02em; color: var(--cx-mute-2); }
.fm-cpro-ex__stale, .fm-cpro-ex__indispo { padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--cx-hair); background: var(--cx-panel-2); color: var(--cx-ink-light); }
.fm-cpro-ex__avert { font-size: .9rem; color: var(--cx-mute-1); border-left: 3px solid var(--cx-teal); padding-left: .8rem; }

/* Alerte chlorophylle : seul aplat orange (texte nuit sur orange). */
.fm-cpro-chl > * + * { margin-top: .5rem; }
.fm-cpro-chl__alerte { padding: .8rem 1rem; border-radius: 10px; background: var(--cx-orange); color: var(--cx-navy); }
.fm-cpro-chl__calme, .fm-cpro-chl__indispo { padding: .8rem 1rem; border-radius: 10px; background: var(--cx-panel-2); border: 1px solid var(--cx-hair); color: var(--cx-ink-light); }

/* Jours : tableau compact (tient sans defilement dans ~890 px des 1024 px ; filet de
   defilement DANS le conteneur entre 641 et 1023 px, premiere colonne figee) ;
   <= 640 px : une carte par jour a la place du tableau. */
.fm-cpro-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--cx-hair); border-radius: 14px; background: var(--cx-panel-2); }
.fm-cpro-table:focus-visible { outline: 3px solid var(--cx-teal); outline-offset: 2px; }
.fm-cpro-table table { width: 100%; border-collapse: collapse; font-size: .82rem; color: var(--cx-ink-light); }
.fm-cpro-table th, .fm-cpro-table td { padding: .5rem .45rem; border-bottom: 1px solid var(--cx-hair); text-align: left; vertical-align: top; }
.fm-cpro-table thead th { font-family: var(--cx-mono); font-size: .66rem; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; color: var(--cx-mute-2); }
.fm-cpro-table tbody th { font-family: var(--cx-mono); font-weight: 700; white-space: nowrap; color: var(--cx-bright); }
.fm-cpro-table tr > :first-child { position: sticky; left: 0; z-index: 1; padding-left: .7rem; background: var(--cx-panel-2); box-shadow: 1px 0 0 var(--cx-hair); }
.fm-cpro-table__num { font-family: var(--cx-mono); white-space: nowrap; }
.fm-cpro-table__verdicts { min-width: 11em; }
.fm-cpro-m { font-family: var(--cx-mono); white-space: nowrap; }
.fm-cpro-cartes { display: none; margin: 0; padding: 0; list-style: none; }
.fm-cpro-carte { padding: .8rem 1rem; border: 1px solid var(--cx-hair); border-radius: 12px; background: var(--cx-panel-2); font-size: .9rem; }
.fm-cpro-carte > * + * { margin-top: .45rem; }
.fm-cpro-carte__date { font-family: var(--cx-mono); font-weight: 700; color: var(--cx-bright); }
.fm-cpro-carte__mer { font-family: var(--cx-mono); font-size: .82rem; color: var(--cx-ink-light); }
.fm-cpro-carte__dl { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.fm-cpro-carte__dl dt { font-family: var(--cx-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cx-mute-2); }
.fm-cpro-carte__dl dd { margin: 0; color: var(--cx-ink-light); }
@media (max-width: 640px) {
	.fm-cpro-table { display: none; }
	.fm-cpro-cartes { display: grid; gap: .6rem; }
}
.fm-cpro-v { display: block; }
.fm-cpro-v + .fm-cpro-v { margin-top: .3rem; }
.fm-cpro-v--soutenu { color: var(--cx-teal); }
.fm-cpro-v--non_tranche { color: var(--cx-bright); }
.fm-cpro-v--sans_source, .fm-cpro-v--non_classe { color: var(--cx-mute-2); }

/* Couleur de l'eau : conseils (rendu des fiches) en deux colonnes en large. */
.fm-cpro-eau__regle { color: var(--cx-mute-1); }
.fm-cpro-eau__duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.fm-cpro-attrib ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .85rem; color: var(--cx-mute-1); word-break: break-word; }
.fm-cpro-gratuit, .fm-cpro-methode { flex: 1 1 340px; color: var(--cx-mute-1); }
.fm-cpro-page .fm-pro { padding-left: 0; padding-right: 0; }
