/*
Theme Name: Le Guide du Survivant
Theme URI: https://www.leguidedusurvivant.com
Description: Thème enfant de GeneratePress pour Le Guide du Survivant. Direction artistique « carnet de terrain » : papier chaud, encre bleu nuit, accent balise, courbes de niveau. Voir rapports/design.md.
Author: Le Guide du Survivant
Template: generatepress
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leguidedusurvivant
*/

/* ==========================================================================
   Sommaire
   1. Polices        5. Boutons, formulaires   9. Catégorie       13. Utilitaires
   2. Jetons         6. En-tête et menu       10. Composants      14. Impression
   3. Base           7. Conteneurs            11. Accueil         15. Mouvement réduit
   4. Typographie    8. Article et page       12. Pied de page
   ========================================================================== */

/* 1. Polices — auto-hébergées (OFL 1.1), sous-ensemble latin, variables en graisse.
   ========================================================================== */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/polices/fraunces-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/polices/public-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Public Sans";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/polices/public-sans-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Jetons
   ========================================================================== */
:root {
	/* Couleurs */
	--gds-encre: #14283A;
	--gds-encre-2: #24415A;
	--gds-texte: #1D2B36;
	--gds-texte-doux: #52606B;
	--gds-papier: #FBF8F2;
	--gds-sable: #F2EDE1;
	--gds-trait: #DDD4C2;
	--gds-trait-fort: #8C8472;
	--gds-blanc: #FFFFFF;
	--gds-balise: #B8431A;
	--gds-balise-fonce: #963412;
	--gds-balise-vive: #F0803C;
	--gds-lagune: #1C6661;
	--gds-lagune-fond: #E4EFEC;
	--gds-ocre: #7A4F08;
	--gds-ocre-fond: #FAF0D7;
	--gds-ocre-trait: #D9A441;
	--gds-brume: #C9D3DB;

	/* Couleurs globales de GeneratePress, alignées sur la palette */
	--contrast: var(--gds-texte);
	--contrast-2: var(--gds-texte-doux);
	--contrast-3: var(--gds-trait-fort);
	--base: var(--gds-sable);
	--base-2: var(--gds-papier);
	--base-3: var(--gds-blanc);
	--accent: var(--gds-balise);

	/* Typographie */
	--gds-titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--gds-corps: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gds-t-xs: 0.8125rem;
	--gds-t-s: 0.9375rem;
	--gds-t-base: 1.0625rem;
	--gds-t-l: 1.1875rem;
	--gds-t-h4: 1.125rem;
	--gds-t-h3: 1.375rem;
	--gds-t-h2: 1.75rem;
	--gds-t-h1: 2.125rem;
	--gds-t-hero: 2.5rem;

	/* Espacements (base 4 px) */
	--gds-e1: 0.25rem;
	--gds-e2: 0.5rem;
	--gds-e3: 0.75rem;
	--gds-e4: 1rem;
	--gds-e5: 1.5rem;
	--gds-e6: 2rem;
	--gds-e7: 3rem;
	--gds-e8: 4rem;
	--gds-e9: 6rem;
	--gds-gouttiere: 1.25rem;
	--gds-flux: 1.5rem;

	/* Largeurs */
	--gds-l-texte: 44rem;
	--gds-l-large: 60rem;
	--gds-l-page: 75rem;

	/* Formes */
	--gds-r-s: 6px;
	--gds-r: 10px;
	--gds-r-l: 16px;
	--gds-ombre: 0 1px 2px rgba(20, 40, 58, 0.06), 0 10px 24px -14px rgba(20, 40, 58, 0.22);
	--gds-ombre-forte: 0 2px 4px rgba(20, 40, 58, 0.08), 0 22px 40px -20px rgba(20, 40, 58, 0.35);
	--gds-transition: 160ms ease;

	/* Pictogrammes d'interface (masques CSS, colorés par background-color) */
	--gds-i-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 10.5 3.6 3.6 7.4-8.2'/%3E%3C/svg%3E");
	--gds-i-tiret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5.5 10h9'/%3E%3C/svg%3E");
	--gds-i-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E");
	--gds-i-sortie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5H5v10h10v-3M11 4h5v5M16 4l-7 7'/%3E%3C/svg%3E");
	--gds-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
	--gds-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 9.2v4.3M10 6.3v.2'/%3E%3C/svg%3E");
}

@media (min-width: 769px) {
	:root {
		--gds-t-base: 1.125rem;
		--gds-t-l: 1.3125rem;
		--gds-t-h4: 1.1875rem;
		--gds-t-h3: 1.5rem;
		--gds-t-h2: 2.125rem;
		--gds-t-h1: 3rem;
		--gds-t-hero: 4rem;
		--gds-gouttiere: 2.5rem;
	}
}

/* 3. Base
   ========================================================================== */
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--gds-e5);
}

body {
	background-color: var(--gds-papier);
	color: var(--gds-texte);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

button,
input,
select,
textarea {
	font-family: var(--gds-corps);
}

::selection {
	background: var(--gds-encre);
	color: var(--gds-papier);
}

img,
svg {
	max-width: 100%;
	height: auto;
}

hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--gds-trait);
	background: none;
	height: 0;
	margin: var(--gds-e7) auto;
}

/* 4. Typographie
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--gds-encre);
	font-family: var(--gds-titre);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.012em;
	margin: 0 0 var(--gds-e4);
	text-wrap: balance;
}

h1 { font-size: var(--gds-t-h1); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--gds-t-h2); }
h3 { font-size: var(--gds-t-h3); line-height: 1.2; }
h4 { font-size: var(--gds-t-h4); line-height: 1.3; font-family: var(--gds-corps); font-weight: 700; letter-spacing: 0; }
h5,
h6 { font-size: var(--gds-t-base); line-height: 1.4; font-family: var(--gds-corps); font-weight: 700; letter-spacing: 0; }

p {
	margin: 0 0 var(--gds-flux);
}

strong,
b {
	font-weight: 700;
}

small,
.has-small-font-size {
	font-size: var(--gds-t-s);
}

ul,
ol {
	margin: 0 0 var(--gds-flux) 1.25em;
	padding: 0;
}

.entry-content li + li,
.entry-content li > ul,
.entry-content li > ol {
	margin-top: var(--gds-e2);
}

li > ul,
li > ol {
	margin-bottom: 0;
}

blockquote,
.wp-block-quote {
	border-left: 3px solid var(--gds-balise);
	margin: 0 0 var(--gds-flux);
	padding: var(--gds-e1) 0 var(--gds-e1) var(--gds-e5);
	font-family: var(--gds-titre);
	font-size: var(--gds-t-l);
	font-style: normal;
	line-height: 1.45;
	color: var(--gds-encre);
}

blockquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: var(--gds-e3);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-s);
	font-style: normal;
	color: var(--gds-texte-doux);
}

/* Liens : encre soulignée de balise ; la couleur bascule au survol. */
a {
	color: var(--gds-encre);
	text-decoration: underline;
	text-decoration-color: var(--gds-balise);
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.2em;
	transition: color var(--gds-transition), background-color var(--gds-transition), border-color var(--gds-transition);
}

a:hover,
a:focus,
a:active {
	color: var(--gds-balise);
}

a:visited {
	color: inherit;
}

/* Focus clavier : toujours visible, jamais supprimé. */
:focus-visible {
	outline: 3px solid var(--gds-balise);
	outline-offset: 3px;
	border-radius: 2px;
}

.gds-section--encre :focus-visible,
.gds-pied :focus-visible,
.site-info :focus-visible {
	outline-color: var(--gds-balise-vive);
}

/* Surtitre (catégorie, rubrique, étiquette) */
.gds-surtitre {
	display: inline-flex;
	align-items: center;
	gap: var(--gds-e2);
	margin: 0 0 var(--gds-e3);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gds-balise);
}

.gds-surtitre::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.gds-surtitre a {
	color: inherit;
	text-decoration: none;
}

.gds-surtitre a:hover,
.gds-surtitre a:focus {
	color: var(--gds-balise-fonce);
	text-decoration: underline;
}

.gds-chapo {
	font-size: var(--gds-t-l);
	line-height: 1.55;
	color: var(--gds-texte);
}

/* 5. Boutons et formulaires
   ========================================================================== */
/* Le sélecteur reprend celui de GeneratePress (a.wp-block-button__link:not(.has-background))
   pour passer devant son CSS dynamique sans !important. */
a.wp-block-button__link:not(.has-background),
.wp-block-button .wp-block-button__link,
.gds-bouton,
button:not(.menu-toggle):not(.components-button),
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--gds-e2);
	min-height: 3rem;
	padding: 0.625rem 1.375rem;
	border: 2px solid transparent;
	border-radius: var(--gds-r);
	background-color: var(--gds-balise);
	color: var(--gds-blanc);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-base);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(20, 40, 58, 0.2);
	cursor: pointer;
	transition: background-color var(--gds-transition), color var(--gds-transition), border-color var(--gds-transition), transform var(--gds-transition);
}

a.wp-block-button__link:not(.has-background):hover,
a.wp-block-button__link:not(.has-background):focus,
a.wp-block-button__link:not(.has-background):active,
.gds-bouton:hover,
.gds-bouton:focus,
button:not(.menu-toggle):not(.components-button):hover,
button:not(.menu-toggle):not(.components-button):focus,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background-color: var(--gds-balise-fonce);
	color: var(--gds-blanc);
}

a.wp-block-button__link:active,
.gds-bouton:active {
	transform: translateY(1px);
}

a.wp-block-button__link:focus-visible,
.gds-bouton:focus-visible {
	outline-color: var(--gds-encre);
}

/* Bouton secondaire : style natif « Contour » du bloc Bouton. */
.wp-block-button.is-style-outline > a.wp-block-button__link:not(.has-background),
.gds-bouton--contour {
	background-color: transparent;
	border-color: var(--gds-encre);
	color: var(--gds-encre);
	padding: 0.625rem 1.375rem;
	box-shadow: none;
}

.wp-block-button.is-style-outline > a.wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-outline > a.wp-block-button__link:not(.has-background):focus,
.gds-bouton--contour:hover,
.gds-bouton--contour:focus {
	background-color: var(--gds-encre);
	border-color: var(--gds-encre);
	color: var(--gds-papier);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gds-e3);
}

/* Bouton marchand : pictogramme « lien sortant » après le libellé. */
.gds-btn-amazon > a.wp-block-button__link::after,
.gds-imprimer > a.wp-block-button__link::before {
	content: "";
	width: 1.125em;
	height: 1.125em;
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--gds-i-sortie) center / contain no-repeat;
	mask: var(--gds-i-sortie) center / contain no-repeat;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	min-height: 3rem;
	padding: 0.625rem 0.875rem;
	border: 1.5px solid var(--gds-trait-fort);
	border-radius: var(--gds-r-s);
	background-color: var(--gds-blanc);
	color: var(--gds-texte);
	font-size: var(--gds-t-base);
	line-height: 1.4;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	border-color: var(--gds-encre);
	background-color: var(--gds-blanc);
	color: var(--gds-texte);
}

label {
	font-weight: 600;
}

/* 6. En-tête et menu
   ========================================================================== */
.site-header {
	background-color: var(--gds-papier);
	border-bottom: 1px solid var(--gds-trait);
}

.site-header .inside-header {
	padding: 0.75rem var(--gds-gouttiere);
	gap: var(--gds-e4);
}

.site-logo {
	line-height: 0;
}

.site-logo a {
	display: inline-block;
	border-radius: var(--gds-r-s);
}

.site-header .header-image {
	width: auto;
	height: 2.5rem;
}

.main-navigation,
.main-navigation ul ul {
	background-color: transparent;
}

.main-navigation .main-nav ul li a {
	padding: 0 0.7rem;
	color: var(--gds-encre);
	font-size: var(--gds-t-s);
	font-weight: 600;
	line-height: 2.75rem;
	text-decoration: none;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--gds-balise);
}

.main-navigation .main-nav > ul > li > a {
	background: linear-gradient(currentColor, currentColor) no-repeat 50% calc(100% - 0.35rem) / 0 2px;
	transition: background-size var(--gds-transition), color var(--gds-transition);
}

.main-navigation .main-nav > ul > li:hover > a,
.main-navigation .main-nav > ul > li > a:focus,
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a {
	background-size: calc(100% - 1.4rem) 2px;
}

.main-navigation ul ul {
	background-color: var(--gds-blanc);
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r);
	box-shadow: var(--gds-ombre);
}

/* Bouton du menu mobile : libellé visible, cible de 44 px au moins. */
.main-navigation .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus {
	min-height: 2.75rem;
	padding: 0 0.875rem;
	border: 1.5px solid var(--gds-encre);
	border-radius: var(--gds-r);
	background-color: transparent;
	color: var(--gds-encre);
	font-size: var(--gds-t-s);
	font-weight: 700;
	line-height: 1;
}

.menu-toggle .mobile-menu {
	padding-left: 0.4rem;
}

@media (max-width: 768px) {
	.site-header .header-image {
		height: 2.25rem;
	}

	.has-inline-mobile-toggle #site-navigation.toggled {
		margin-top: 0.75rem;
		background-color: transparent;
	}

	.main-navigation.toggled .main-nav > ul {
		border-top: 1px solid var(--gds-trait);
	}

	.main-navigation.toggled .main-nav ul li a {
		padding: 0 0.25rem;
		border-bottom: 1px solid var(--gds-trait);
		font-size: var(--gds-t-base);
		line-height: 3.25rem;
		background-image: none;
	}

	.main-navigation.toggled .main-nav > ul > li:last-child > a {
		border-bottom: 0;
	}
}

@media (min-width: 769px) and (max-width: 1100px) {
	.main-navigation .main-nav ul li a {
		padding: 0 0.45rem;
		font-size: 0.875rem;
	}

	.main-navigation .main-nav > ul > li:hover > a,
	.main-navigation .main-nav > ul > li > a:focus,
	.main-navigation .main-nav > ul > li[class*="current-menu-"] > a {
		background-size: calc(100% - 0.9rem) 2px;
	}
}

/* 7. Conteneurs
   ========================================================================== */
/* Une seule surface : le papier. Pas de boîte blanche autour du contenu. */
.one-container .site.container,
.separate-containers .inside-article,
.separate-containers .page-header {
	background-color: transparent;
}

.one-container .site-content {
	padding: var(--gds-e6) var(--gds-gouttiere) var(--gds-e8);
}

/* Les blocs Groupe reçoivent un conteneur interne sur les thèmes classiques : on le neutralise,
   et dans nos composants il devient transparent pour la mise en page (display: contents). */
.site-main .wp-block-group__inner-container {
	max-width: none;
	padding: 0;
}

[class*="gds-"] > .wp-block-group__inner-container {
	display: contents;
}

@media (min-width: 769px) {
	.one-container .site-content {
		padding-top: var(--gds-e7);
		padding-bottom: var(--gds-e9);
	}
}

/* 8. Article et page
   ========================================================================== */
.entry-header,
.entry-content > *,
.entry-summary,
footer.entry-meta,
.page-header,
.post-navigation {
	max-width: var(--gds-l-texte);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: var(--gds-flux);
}

/* Les marges auto ci-dessus annulent le retrait des listes ; il est rétabli pour les listes simples du corps
   (les listes des composants gds-… ont leur propre mise en forme). */
.entry-content > ul:not([class*="gds-"]),
.entry-content > ol:not([class*="gds-"]) {
	padding-left: 1.25em;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

/* Blocs larges : tableau comparatif, grilles. Remplace les marges négatives de GeneratePress. */
.entry-content > .alignwide {
	width: auto;
	max-width: var(--gds-l-large);
	margin-left: auto;
	margin-right: auto;
}

.no-sidebar .entry-content > .alignfull {
	width: auto;
	max-width: none;
	margin-left: calc(var(--gds-gouttiere) * -1);
	margin-right: calc(var(--gds-gouttiere) * -1);
}

.entry-header {
	margin-bottom: var(--gds-e6);
}

.entry-header .entry-title {
	margin-bottom: var(--gds-e4);
}

.entry-meta {
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
}

.entry-header .entry-meta {
	margin-top: 0;
	padding-top: var(--gds-e4);
	border-top: 1px solid var(--gds-trait);
}

.entry-content > h2 {
	margin-top: var(--gds-e7);
	padding-top: var(--gds-e5);
	border-top: 1px solid var(--gds-trait);
}

.entry-content > h3 {
	margin-top: var(--gds-e6);
}

.entry-content > h4 {
	margin-top: var(--gds-e5);
}

.entry-content > h2,
.entry-content > h3,
.entry-content > h4 {
	margin-bottom: var(--gds-e4);
}

.entry-content > h2:first-child,
.entry-content > h3:first-child {
	margin-top: 0;
}

.entry-content li::marker {
	color: var(--gds-balise);
	font-weight: 700;
}

.entry-content figcaption,
.wp-element-caption {
	margin-top: var(--gds-e3);
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
	line-height: 1.5;
	text-align: left;
}

/* .site-main en préfixe : passe devant la marge de GeneratePress (.site-main .post-navigation). */
.site-main .post-navigation {
	display: grid;
	gap: var(--gds-e4);
	margin-top: var(--gds-e7);
	padding-top: var(--gds-e5);
	border-top: 1px solid var(--gds-trait);
	font-size: var(--gds-t-s);
	font-weight: 600;
}

.post-navigation .gp-icon {
	margin-right: var(--gds-e2);
	color: var(--gds-balise);
}

.entry-header .updated-date::before {
	content: "Mis à jour le ";
}

/* Tableaux ----------------------------------------------------------------
   Le <figure> du bloc Tableau sert de zone de défilement horizontal sur mobile. */
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r);
	background:
		linear-gradient(to right, var(--gds-blanc) 30%, rgba(255, 255, 255, 0)) left / 2.5rem 100% no-repeat local,
		linear-gradient(to left, var(--gds-blanc) 30%, rgba(255, 255, 255, 0)) right / 2.5rem 100% no-repeat local,
		linear-gradient(to right, rgba(20, 40, 58, 0.16), rgba(20, 40, 58, 0)) left / 0.75rem 100% no-repeat scroll,
		linear-gradient(to left, rgba(20, 40, 58, 0.16), rgba(20, 40, 58, 0)) right / 0.75rem 100% no-repeat scroll,
		var(--gds-blanc);
}

.wp-block-table table,
.entry-content table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: var(--gds-t-s);
	line-height: 1.45;
}

.wp-block-table th,
.wp-block-table td,
.entry-content th,
.entry-content td {
	padding: 0.875rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--gds-trait);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead,
.entry-content thead {
	border-bottom: 0;
}

.wp-block-table thead th,
.entry-content thead th {
	background-color: var(--gds-encre);
	color: var(--gds-papier);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	border-bottom: 0;
}

.wp-block-table tbody tr:last-child td,
.wp-block-table tbody tr:last-child th {
	border-bottom: 0;
}

.wp-block-table figcaption {
	position: sticky;
	left: 0;
	margin: 0;
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--gds-trait);
	background-color: var(--gds-papier);
}

/* Tableau comparatif : première colonne mise en avant, largeur minimale pour rester lisible. */
.gds-comparatif table {
	min-width: 42rem;
}

/* En-têtes à la ligne dès les écrans larges : la colonne « Fiche » doit rester dans le champ (défilement horizontal conservé sur mobile). */
@media (min-width: 961px) {
	.gds-comparatif thead th {
		white-space: normal;
	}
}

.gds-comparatif tbody td:first-child,
.gds-comparatif tbody th:first-child {
	min-width: 10.5rem;
	color: var(--gds-encre);
	font-weight: 700;
}

.gds-comparatif tbody tr:nth-child(even) td {
	background-color: rgba(242, 237, 225, 0.55);
}

.gds-comparatif td a {
	font-weight: 700;
	white-space: nowrap;
}

/* 9. Catégorie, blog, recherche
   ========================================================================== */
.archive .site-main,
.blog .site-main,
.search .site-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e5);
}

.archive .page-header,
.search .page-header {
	grid-column: 1 / -1;
	max-width: none;
	margin: 0 0 var(--gds-e4);
	padding: 0 0 var(--gds-e6);
	border-bottom: 1px solid var(--gds-trait);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e3);
	justify-items: start;
}

.page-header .page-title {
	margin: 0;
}

.page-header .taxonomy-description {
	max-width: var(--gds-l-texte);
	font-size: var(--gds-t-l);
	line-height: 1.55;
}

.page-header .taxonomy-description p:last-child {
	margin-bottom: 0;
}

.gds-rubrique-icone {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: var(--gds-e2);
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r-l);
	background-color: var(--gds-blanc);
}

.gds-rubrique-icone img {
	width: 2.5rem;
	height: 2.5rem;
}

/* Cartes d'articles. Le sélecteur long passe devant la règle de GeneratePress
   (.one-container.archive .post:not(:last-child):not(.is-loop-template-item)). */
.one-container.archive .site-main .post:not(.is-loop-template-item),
.one-container.blog .site-main .post:not(.is-loop-template-item),
.one-container.search .site-main article:not(.is-loop-template-item) {
	position: relative;
	margin: 0;
	padding: var(--gds-e5);
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r-l);
	background-color: var(--gds-blanc);
	transition: border-color var(--gds-transition), box-shadow var(--gds-transition), transform var(--gds-transition);
}

.archive .site-main .post:hover,
.blog .site-main .post:hover,
.search .site-main article:hover {
	border-color: var(--gds-encre);
	box-shadow: var(--gds-ombre);
}

.archive .post .inside-article,
.blog .post .inside-article,
.search article .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.archive .post .entry-header,
.blog .post .entry-header,
.search article .entry-header {
	max-width: none;
	margin: 0 0 var(--gds-e3);
}

.archive .post .entry-title,
.blog .post .entry-title,
.search article .entry-title {
	margin: 0;
	font-size: var(--gds-t-h3);
	line-height: 1.2;
}

.entry-title a {
	color: var(--gds-encre);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--gds-balise);
}

/* Toute la carte est cliquable via le lien du titre. */
.archive .post .entry-title a::after,
.blog .post .entry-title a::after,
.search article .entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--gds-r-l);
}

.archive .post .entry-header .entry-meta,
.blog .post .entry-header .entry-meta,
.search article .entry-header .entry-meta {
	order: -1;
	margin: 0 0 var(--gds-e2);
	padding: 0;
	border: 0;
	font-size: var(--gds-t-xs);
	letter-spacing: 0.04em;
}

.archive .post .entry-header,
.blog .post .entry-header,
.search article .entry-header {
	display: flex;
	flex-direction: column;
}

.archive .post .entry-summary,
.blog .post .entry-summary,
.search article .entry-summary {
	max-width: none;
	margin: 0;
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
	line-height: 1.6;
}

.entry-summary p:last-child {
	margin-bottom: 0;
}

.entry-summary .read-more {
	display: flex;
	width: fit-content;
	position: relative;
	align-items: center;
	gap: var(--gds-e2);
	margin-top: var(--gds-e3);
	color: var(--gds-encre);
	font-weight: 700;
	text-decoration: none;
}

.entry-summary .read-more::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background-color: var(--gds-balise);
	-webkit-mask: var(--gds-i-fleche) center / contain no-repeat;
	mask: var(--gds-i-fleche) center / contain no-repeat;
}

.paging-navigation {
	grid-column: 1 / -1;
	margin-top: var(--gds-e5);
}

.paging-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gds-e2);
}

.paging-navigation .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--gds-e2);
	white-space: nowrap;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r);
	background-color: var(--gds-blanc);
	font-weight: 700;
	text-decoration: none;
}

.paging-navigation .page-numbers.current {
	border-color: var(--gds-encre);
	background-color: var(--gds-encre);
	color: var(--gds-papier);
}

@media (min-width: 700px) {
	.archive .site-main,
	.blog .site-main,
	.search .site-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.archive .page-header {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: var(--gds-e5);
		align-items: start;
	}

	.archive .page-header .gds-rubrique-icone {
		grid-row: span 3;
		width: 5.5rem;
		height: 5.5rem;
		margin: 0;
	}

	.archive .page-header .gds-rubrique-icone img {
		width: 3.5rem;
		height: 3.5rem;
	}

	.archive .page-header .gds-rubrique-icone ~ * {
		grid-column: 2;
	}
}

@media (min-width: 1025px) {
	.archive .site-main,
	.blog .site-main,
	.search .site-main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 10. Composants de contenu (classes à poser sur les blocs natifs)
   ========================================================================== */

/* Bandeau de mention d'affiliation, en tête d'article -------------------- */
.gds-affiliation {
	display: flex;
	align-items: flex-start;
	gap: var(--gds-e3);
	padding: 0.875rem 1rem;
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r);
	background-color: var(--gds-sable);
	color: var(--gds-texte);
	font-size: var(--gds-t-s);
	line-height: 1.5;
}

.gds-affiliation::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.1rem;
	background-color: var(--gds-encre);
	-webkit-mask: var(--gds-i-info) center / contain no-repeat;
	mask: var(--gds-i-info) center / contain no-repeat;
}

.gds-affiliation p {
	margin: 0;
}

/* Sommaire (bloc Détails) ------------------------------------------------- */
.gds-sommaire {
	padding: 0;
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r-l);
	background-color: var(--gds-blanc);
}

.gds-sommaire summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gds-e4);
	min-height: 3.25rem;
	padding: 0.5rem 1.25rem;
	border-radius: var(--gds-r-l);
	color: var(--gds-encre);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.gds-sommaire summary::-webkit-details-marker {
	display: none;
}

.gds-sommaire summary::after {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--gds-balise);
	-webkit-mask: var(--gds-i-chevron) center / contain no-repeat;
	mask: var(--gds-i-chevron) center / contain no-repeat;
	transition: transform var(--gds-transition);
}

.gds-sommaire[open] summary::after {
	transform: rotate(180deg);
}

.gds-sommaire ol,
.gds-sommaire ul {
	margin: 0;
	padding: 0 1.25rem 1rem;
	list-style: none;
	counter-reset: gds-sommaire;
}

.gds-sommaire li {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	align-items: baseline;
	margin: 0;
	border-top: 1px solid var(--gds-trait);
	counter-increment: gds-sommaire;
}

.gds-sommaire li::before {
	content: counter(gds-sommaire);
	font-family: var(--gds-titre);
	font-size: var(--gds-t-base);
	font-weight: 600;
	color: var(--gds-balise);
}

.gds-sommaire li a {
	display: block;
	padding: 0.7rem 0;
	font-size: var(--gds-t-s);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.gds-sommaire li a:hover,
.gds-sommaire li a:focus {
	text-decoration: underline;
}

/* Encadrés ---------------------------------------------------------------- */
.gds-encadre {
	padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	border-left: 4px solid var(--gds-trait-fort);
	border-radius: var(--gds-r-s) var(--gds-r) var(--gds-r) var(--gds-r-s);
	background-color: var(--gds-sable);
}

.gds-encadre p,
.gds-encadre ul,
.gds-encadre ol {
	margin-bottom: var(--gds-e3);
}

.gds-encadre :is(p, ul, ol):last-child {
	margin-bottom: 0;
}

.gds-encadre__titre {
	margin-bottom: var(--gds-e3);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.gds-encadre li::marker {
	color: inherit;
}

.gds-retenir {
	border-left-color: var(--gds-ocre-trait);
	background-color: var(--gds-ocre-fond);
}

.gds-retenir .gds-encadre__titre {
	color: var(--gds-ocre);
}

.gds-officiel {
	border-left-color: var(--gds-lagune);
	background-color: var(--gds-lagune-fond);
}

.gds-officiel .gds-encadre__titre {
	color: var(--gds-lagune);
}

.gds-officiel a {
	text-decoration-color: var(--gds-lagune);
	font-weight: 600;
}

.gds-officiel a:hover,
.gds-officiel a:focus {
	color: var(--gds-lagune);
}

/* Bloc produit : une « fiche » sans photo ---------------------------------- */
.gds-produit {
	position: relative;
	padding: 1.5rem 1.25rem 1.25rem;
	border: 1px solid var(--gds-trait);
	border-top: 4px solid var(--gds-encre);
	border-radius: var(--gds-r-s) var(--gds-r-s) var(--gds-r-l) var(--gds-r-l);
	background-color: var(--gds-blanc);
	box-shadow: var(--gds-ombre);
}

.gds-produit__etiquette {
	margin: 0 0 var(--gds-e3);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gds-balise);
}

.entry-content .gds-produit__nom,
.gds-produit__nom {
	margin: 0 0 var(--gds-e3);
	padding: 0;
	border: 0;
	font-size: var(--gds-t-h3);
}

.gds-produit__pour {
	margin: 0 0 var(--gds-e5);
	padding-bottom: var(--gds-e5);
	border-bottom: 1px solid var(--gds-trait);
	color: var(--gds-texte);
}

.gds-produit__bilan {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e5);
	margin-bottom: var(--gds-e5);
}

.gds-produit__colonne p {
	margin: 0 0 var(--gds-e3);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gds-texte-doux);
}

/* Listes à pictogrammes : points forts, limites, cases à cocher. */
.gds-plus,
.gds-moins,
.gds-cases {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gds-plus li,
.gds-moins li,
.gds-cases li {
	position: relative;
	margin: 0;
	padding: 0.3rem 0 0.3rem 2rem;
	font-size: var(--gds-t-s);
	line-height: 1.5;
}

.gds-plus li::before,
.gds-moins li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35rem;
	width: 1.375rem;
	height: 1.375rem;
	background-color: var(--gds-lagune);
	-webkit-mask: var(--gds-i-coche) center / contain no-repeat;
	mask: var(--gds-i-coche) center / contain no-repeat;
}

.gds-moins li::before {
	background-color: var(--gds-texte-doux);
	-webkit-mask-image: var(--gds-i-tiret);
	mask-image: var(--gds-i-tiret);
}

.gds-produit__action {
	display: grid;
	gap: var(--gds-e3);
	padding-top: var(--gds-e5);
	border-top: 1px solid var(--gds-trait);
}

.gds-produit__action .wp-block-buttons,
.gds-produit__action p {
	margin: 0;
}

.gds-produit__action .wp-block-button,
.gds-produit__action .wp-block-button__link {
	width: 100%;
}

.gds-produit__mention {
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-xs);
	line-height: 1.5;
}

/* Marqueur de lien d'affiliation à compléter : volontairement voyant en brouillon.
   Un article qui l'affiche encore ne doit pas être publié. */
.gds-marqueur {
	display: inline-block;
	justify-self: start;
	padding: 0.2rem 0.5rem;
	border: 1.5px dashed var(--gds-balise);
	border-radius: var(--gds-r-s);
	background-color: var(--gds-ocre-fond);
	color: var(--gds-balise-fonce);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: var(--gds-t-xs);
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

@media (min-width: 600px) {
	.gds-produit {
		padding: 2rem 2rem 1.75rem;
	}

	.gds-produit__bilan {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--gds-e6);
	}

	.gds-produit__action {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: var(--gds-e5);
	}

	.gds-produit__action .wp-block-button,
	.gds-produit__action .wp-block-button__link {
		width: auto;
	}

	.gds-produit__action .gds-marqueur {
		grid-column: 1 / -1;
	}
}

/* Checklist imprimable ------------------------------------------------------ */
.gds-checklist {
	padding: 1.5rem 1.25rem;
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r-l);
	background-color: var(--gds-blanc);
}

.gds-checklist__entete {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gds-e4);
	margin-bottom: var(--gds-e5);
	padding-bottom: var(--gds-e5);
	border-bottom: 2px solid var(--gds-encre);
}

.entry-content .gds-checklist__titre,
.gds-checklist__titre {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--gds-t-h3);
}

.gds-checklist__entete .wp-block-buttons {
	margin: 0;
}

.gds-checklist__groupes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e5) var(--gds-e6);
}

.entry-content .gds-checklist h4,
.gds-checklist h4 {
	margin: 0 0 var(--gds-e2);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gds-balise);
}

.gds-cases li {
	padding: 0.5rem 0 0.5rem 2.25rem;
	border-bottom: 1px solid var(--gds-trait);
	font-size: var(--gds-t-base);
}

.gds-cases li:last-child {
	border-bottom: 0;
}

.gds-cases li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--gds-trait-fort);
	border-radius: 4px;
	background-color: var(--gds-blanc);
}

.gds-checklist__note {
	margin: var(--gds-e5) 0 0;
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
}

.gds-imprimer > a.wp-block-button__link::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7V3h8v4M6 14H3.5V7.5h13V14H14M6 11.5h8V17H6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7V3h8v4M6 14H3.5V7.5h13V14H14M6 11.5h8V17H6z'/%3E%3C/svg%3E");
}

@media (min-width: 600px) {
	.gds-checklist {
		padding: 2rem;
	}

	.gds-checklist__groupes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 11. Accueil
   ========================================================================== */
/* Sur l'accueil, le contenu occupe toute la largeur : chaque .gds-section gère ses marges.
   .gds-accueil est posée par functions.php (modèle « Accueil » ou page d'accueil statique). */
.gds-accueil .site.grid-container {
	max-width: none;
}

.gds-accueil.one-container .site-content {
	padding: 0;
}

.gds-accueil .entry-content > * {
	max-width: none;
	margin-bottom: 0;
}

.gds-section {
	--gds-marge-section: max(var(--gds-gouttiere), calc((100% - var(--gds-l-page)) / 2 + var(--gds-gouttiere)));
	padding: var(--gds-e7) var(--gds-marge-section);
}

.gds-section--sable {
	background-color: var(--gds-sable);
	border-top: 1px solid var(--gds-trait);
	border-bottom: 1px solid var(--gds-trait);
}

.gds-section--encre {
	background: var(--gds-encre) url("assets/motifs/courbes-sombre.svg") center / cover no-repeat;
	color: var(--gds-brume);
}

.gds-section--encre h2,
.gds-section--encre h3 {
	color: var(--gds-papier);
}

.gds-section--encre .gds-surtitre {
	color: var(--gds-balise-vive);
}

.gds-section--encre a {
	color: var(--gds-papier);
	text-decoration-color: var(--gds-balise-vive);
}

.gds-section--encre a:hover,
.gds-section--encre a:focus {
	color: var(--gds-balise-vive);
}

.gds-section__entete {
	max-width: 40rem;
	margin-bottom: var(--gds-e6);
}

.gds-section__entete h2 {
	margin-bottom: var(--gds-e3);
}

.gds-section__entete p:last-child {
	margin-bottom: 0;
}

/* Bandeau d'ouverture */
.gds-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e6);
	align-items: center;
	padding-top: var(--gds-e7);
	padding-bottom: var(--gds-e7);
	background:
		linear-gradient(rgba(251, 248, 242, 0.78), rgba(251, 248, 242, 0.78)),
		var(--gds-papier) url("assets/motifs/courbes-clair.svg") 70% 50% / cover no-repeat;
	border-bottom: 1px solid var(--gds-trait);
}

.gds-hero__titre {
	margin-bottom: var(--gds-e4);
	font-size: var(--gds-t-hero);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.gds-hero__texte .gds-chapo {
	max-width: 34rem;
	margin-bottom: var(--gds-e5);
}

.gds-hero__texte .wp-block-buttons {
	margin: 0;
}

/* Fiche d'aperçu « kit 72 heures » */
.gds-fiche {
	position: relative;
	max-width: 24rem;
	padding: 1.5rem 1.5rem 1.25rem;
	border: 1px solid var(--gds-trait);
	border-top: 4px solid var(--gds-encre);
	border-radius: var(--gds-r-s) var(--gds-r-s) var(--gds-r-l) var(--gds-r-l);
	background-color: var(--gds-blanc);
	box-shadow: var(--gds-ombre-forte);
}

.gds-fiche__titre {
	margin: 0 0 var(--gds-e3);
	color: var(--gds-encre);
	font-family: var(--gds-titre);
	font-size: var(--gds-t-h3);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.012em;
}

.gds-fiche .gds-cases {
	margin-bottom: var(--gds-e4);
}

.gds-fiche .gds-cases li {
	font-size: var(--gds-t-s);
}

.gds-fiche .gds-cases li:nth-child(-n+2)::before {
	border-color: var(--gds-lagune);
	background-color: var(--gds-lagune);
}

.gds-fiche .gds-cases li:nth-child(-n+2)::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--gds-blanc);
	-webkit-mask: var(--gds-i-coche) center / 85% no-repeat;
	mask: var(--gds-i-coche) center / 85% no-repeat;
}

.gds-fiche__lien {
	margin: 0;
	font-size: var(--gds-t-s);
	font-weight: 700;
}

/* Étapes « Par où commencer » */
.gds-etapes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e5);
	counter-reset: gds-etape;
}

.gds-etape {
	position: relative;
	padding-top: var(--gds-e4);
	border-top: 2px solid var(--gds-encre);
	counter-increment: gds-etape;
}

.gds-etape::before {
	content: counter(gds-etape);
	display: block;
	margin-bottom: var(--gds-e2);
	font-family: var(--gds-titre);
	font-size: 2.75rem;
	font-weight: 500;
	line-height: 1;
	color: var(--gds-balise);
}

.gds-etape h3 {
	margin-bottom: var(--gds-e2);
}

.gds-etape p {
	margin-bottom: 0;
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
	line-height: 1.6;
}

.gds-etape p + p {
	margin-top: var(--gds-e3);
	font-weight: 700;
}

.gds-section--encre .gds-etape {
	border-top-color: rgba(201, 211, 219, 0.35);
}

.gds-section--encre .gds-etape::before {
	color: var(--gds-balise-vive);
}

.gds-section--encre .gds-etape p {
	color: var(--gds-brume);
}

/* Cartes de rubriques */
.gds-rubriques {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e4);
}

.gds-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.25rem 5.25rem;
	min-height: 5.5rem;
	border: 1px solid var(--gds-trait);
	border-radius: var(--gds-r-l);
	background-color: var(--gds-blanc);
	transition: border-color var(--gds-transition), box-shadow var(--gds-transition), transform var(--gds-transition);
}

.gds-carte::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 1.25rem;
	width: 3rem;
	height: 3rem;
	background: center / contain no-repeat;
}

.gds-carte--kits::before { background-image: url("assets/icones/kits.svg"); }
.gds-carte--eau::before { background-image: url("assets/icones/eau.svg"); }
.gds-carte--energie::before { background-image: url("assets/icones/energie.svg"); }
.gds-carte--risques::before { background-image: url("assets/icones/risques.svg"); }
.gds-carte--crises::before { background-image: url("assets/icones/crises.svg"); }
.gds-carte--maison::before { background-image: url("assets/icones/maison.svg"); }
.gds-carte--guides::before { background-image: url("assets/icones/guides.svg"); }

.gds-carte:hover,
.gds-carte:focus-within {
	border-color: var(--gds-encre);
	box-shadow: var(--gds-ombre);
	transform: translateY(-2px);
}

.gds-carte__titre {
	margin: 0 0 var(--gds-e1);
	font-size: var(--gds-t-h4);
	font-family: var(--gds-titre);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.gds-carte__titre a {
	color: var(--gds-encre);
	text-decoration: none;
}

.gds-carte__titre a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--gds-r-l);
}

.gds-carte:hover .gds-carte__titre a {
	color: var(--gds-balise);
}

.gds-carte p {
	margin: 0;
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
	line-height: 1.5;
}

/* Derniers guides (bloc Derniers articles) */
.gds-derniers.wp-block-latest-posts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--gds-encre);
}

.gds-derniers.wp-block-latest-posts li {
	display: grid;
	gap: var(--gds-e1);
	margin: 0;
	padding: var(--gds-e4) 0;
	border-bottom: 1px solid var(--gds-trait);
}

.gds-derniers .wp-block-latest-posts__post-title {
	font-family: var(--gds-titre);
	font-size: var(--gds-t-h3);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.gds-derniers .wp-block-latest-posts__post-date {
	order: -1;
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-xs);
	letter-spacing: 0.04em;
}

.gds-derniers .wp-block-latest-posts__post-excerpt {
	margin: 0;
	color: var(--gds-texte-doux);
	font-size: var(--gds-t-s);
}

/* Section de clôture : consignes officielles + transparence */
.gds-cloture {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e5);
}

@media (min-width: 700px) {
	.gds-rubriques {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gds-carte {
		padding: 1.5rem;
		min-height: 13rem;
	}

	.gds-carte::before {
		position: static;
		margin-bottom: auto;
		flex: none;
	}

	.gds-carte__titre {
		margin-top: var(--gds-e5);
	}

	.gds-carte--vedette {
		grid-column: span 2;
		background: var(--gds-sable) url("assets/motifs/courbes-clair.svg") 120% 40% / 140% no-repeat;
	}

	.gds-carte--vedette::before {
		width: 4rem;
		height: 4rem;
	}

	.gds-carte--vedette .gds-carte__titre {
		font-size: var(--gds-t-h2);
	}

	.gds-carte--vedette p {
		max-width: 30rem;
		color: var(--gds-texte);
		font-size: var(--gds-t-base);
	}

	.gds-etapes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--gds-e6);
	}

	.gds-cloture {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--gds-e6);
		align-items: stretch;
	}

	.gds-derniers.wp-block-latest-posts li {
		grid-template-columns: 9rem minmax(0, 1fr);
		column-gap: var(--gds-e5);
		align-items: baseline;
	}

	.gds-derniers .wp-block-latest-posts__post-date {
		grid-row: span 2;
	}
}

@media (min-width: 769px) {
	.gds-section {
		padding-top: var(--gds-e8);
		padding-bottom: var(--gds-e8);
	}
}

@media (min-width: 960px) {
	.gds-hero {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
		gap: var(--gds-e8);
		padding-top: var(--gds-e9);
		padding-bottom: var(--gds-e9);
		background:
			linear-gradient(to right, var(--gds-papier) 0%, rgba(251, 248, 242, 0.94) 38%, rgba(251, 248, 242, 0) 78%),
			var(--gds-papier) url("assets/motifs/courbes-clair.svg") 70% 50% / cover no-repeat;
	}

	.gds-fiche {
		justify-self: end;
		transform: rotate(1.5deg);
	}

	.gds-rubriques {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* 12. Pied de page
   ========================================================================== */
.gds-pied {
	background: var(--gds-encre) url("assets/motifs/courbes-sombre.svg") 80% 50% / cover no-repeat;
	color: var(--gds-brume);
	font-size: var(--gds-t-s);
	line-height: 1.6;
}

.gds-pied__interieur {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gds-e6);
	max-width: var(--gds-l-page);
	margin: 0 auto;
	padding: var(--gds-e7) var(--gds-gouttiere) var(--gds-e6);
}

.gds-pied__logo {
	display: inline-block;
	margin-bottom: var(--gds-e4);
	line-height: 0;
	border-radius: var(--gds-r-s);
}

.gds-pied__logo img {
	width: auto;
	height: 2.75rem;
}

.gds-pied p {
	margin: 0 0 var(--gds-e3);
	max-width: 26rem;
}

.gds-pied__titre {
	margin: 0 0 var(--gds-e3);
	color: var(--gds-papier);
	font-family: var(--gds-corps);
	font-size: var(--gds-t-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.gds-pied ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gds-pied li {
	margin: 0;
}

.gds-pied a,
.site-info a {
	color: var(--gds-papier);
	text-decoration-color: rgba(201, 211, 219, 0.45);
}

.gds-pied a:hover,
.gds-pied a:focus,
.site-info a:hover,
.site-info a:focus {
	color: var(--gds-balise-vive);
	text-decoration-color: currentColor;
}

/* Liens de liste : cible tactile de 44 px. */
.gds-pied li a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	text-decoration: none;
}

.gds-pied li a:hover,
.gds-pied li a:focus {
	text-decoration: underline;
}

.gds-pied__mention {
	padding-top: var(--gds-e5);
	border-top: 1px solid rgba(201, 211, 219, 0.25);
}

.gds-pied__mention p {
	max-width: 50rem;
}

.site-info {
	background-color: var(--gds-encre);
	color: var(--gds-brume);
	font-size: var(--gds-t-xs);
	border-top: 1px solid rgba(201, 211, 219, 0.25);
}

.site-info .inside-site-info {
	justify-content: flex-start;
	padding: var(--gds-e4) var(--gds-gouttiere);
}

.site-info .copyright-bar {
	text-align: left;
}

@media (min-width: 700px) {
	.gds-pied__interieur {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--gds-e6) var(--gds-e7);
	}

	.gds-pied__mention {
		grid-column: 1 / -1;
	}

	.gds-pied li a {
		min-height: 2.25rem;
	}
}

/* 13. Utilitaires
   ========================================================================== */
.gds-centre {
	text-align: center;
}

.gds-sans-marge {
	margin-bottom: 0;
}

/* Rubrique sans article publié (no-results.php du thème enfant). */
.gds-rubrique-vide {
	margin-top: var(--gds-e5);
	color: var(--gds-texte-doux);
}

/* Formulaire de contact (Contact Form 7) : champs sur toute la largeur de la colonne. */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
}

/* Bandeau de consentement (Complianz) : couleurs de la palette, sans changer son fonctionnement.
   Complianz déclare ses couleurs en variables sur :root ; « :root:root » l'emporte sur sa feuille, chargée après. */
:root:root {
	--cmplz_banner_background_color: var(--gds-blanc);
	--cmplz_banner_border_color: var(--gds-trait);
	--cmplz_banner_border_radius: 16px;
	--cmplz_text_color: var(--gds-texte);
	--cmplz_hyperlink_color: var(--gds-encre);
	--cmplz_button_border_radius: 10px;
	--cmplz_button_accept_background_color: var(--gds-balise);
	--cmplz_button_accept_border_color: var(--gds-balise);
	--cmplz_button_accept_text_color: var(--gds-blanc);
	--cmplz_button_deny_background_color: var(--gds-blanc);
	--cmplz_button_deny_border_color: var(--gds-encre);
	--cmplz_button_deny_text_color: var(--gds-encre);
	--cmplz_button_settings_background_color: var(--gds-blanc);
	--cmplz_button_settings_border_color: var(--gds-encre);
	--cmplz_button_settings_text_color: var(--gds-encre);
	--cmplz_slider_active_color: var(--gds-lagune);
	--cmplz_category_header_always_active_color: var(--gds-lagune);
}

.cmplz-cookiebanner,
.cmplz-cookiebanner .cmplz-btn {
	font-family: var(--gds-corps);
}

.cmplz-cookiebanner .cmplz-title {
	font-family: var(--gds-titre);
	color: var(--gds-encre);
}

.cmplz-cookiebanner .cmplz-btn {
	font-weight: 700;
}

/* Les styles de boutons du thème (spécificité plus forte) annulaient le masquage prévu par Complianz pour
   « Enregistrer les préférences » au premier niveau ; le script de Complianz l'affiche (style en ligne) une fois
   « Voir les préférences » ouvert. */
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
	display: none;
}

/* 14. Impression — pensée pour les checklists : encre noire, pas de décor, pas de liens marchands.
   ========================================================================== */
@media print {
	@page {
		margin: 16mm 14mm;
	}

	html,
	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
		line-height: 1.45;
	}

	.site-header,
	.main-navigation,
	.gds-pied,
	.site-footer,
	.post-navigation,
	.comments-area,
	.gds-affiliation,
	.gds-sommaire,
	.gds-produit__action,
	.gds-marqueur,
	.gds-imprimer,
	.wp-block-buttons,
	.gds-non-imprime {
		display: none !important; /* l'impression doit primer sur toute règle d'affichage écran */
	}

	.one-container .site-content,
	.gds-section {
		padding: 0;
	}

	.entry-header,
	.entry-content > *,
	.entry-content > .alignwide {
		max-width: none;
	}

	h1 { font-size: 22pt; }
	h2 { font-size: 16pt; }
	h3 { font-size: 13pt; }

	h1,
	h2,
	h3,
	h4 {
		color: #000;
		break-after: avoid;
	}

	a {
		color: #000;
		text-decoration: none;
	}

	.entry-content a[href^="http"]:not(.wp-block-button__link)::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		font-weight: 400;
		overflow-wrap: anywhere;
	}

	.gds-checklist,
	.gds-encadre,
	.gds-produit,
	.gds-fiche {
		border-color: #000;
		background: #fff;
		box-shadow: none;
	}

	.gds-checklist {
		padding: 0;
		border: 0;
	}

	.gds-checklist__groupes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6mm 10mm;
	}

	.gds-checklist h4,
	.gds-encadre__titre,
	.gds-surtitre {
		color: #000;
	}

	.gds-cases li {
		break-inside: avoid;
		border-bottom-color: #999;
	}

	.gds-cases li::before {
		border-color: #000;
	}

	.gds-checklist__groupes > *,
	.gds-encadre,
	.gds-produit,
	tr {
		break-inside: avoid;
	}

	.wp-block-table {
		overflow: visible;
		background: #fff;
	}

	.gds-comparatif table {
		min-width: 0;
	}

	.wp-block-table thead th {
		background: #fff;
		color: #000;
		border-bottom: 2px solid #000;
	}
}

/* 15. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important; /* préférence d'accessibilité : doit primer partout */
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.gds-carte:hover,
	.gds-carte:focus-within {
		transform: none;
	}
}
