/*
Theme Name: Scout Mont-Saint-Hilaire 2026
Theme URI: https://www.scoutsthilaire.com/
Author: 18e Groupe Scout Mont-Saint-Hilaire
Author URI: https://www.scoutsthilaire.com/
Description: Thème sur mesure du 18e Groupe Scout Mont-Saint-Hilaire, conforme à l'image de marque de l'Association des Scouts du Canada (plateforme 2024). Structure identique au site historique du groupe, habillage renouvelé : vert forêt, jaune, marine et typographie Poppins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scout-msh-2026
Tags: custom-menu, custom-logo, featured-images, translation-ready, accessibility-ready, two-columns, right-sidebar
*/

/* ==========================================================================
   SOMMAIRE
   1.  Variables de marque
   2.  Réinitialisation et base
   3.  Typographie
   4.  Accessibilité
   5.  Mise en page / conteneurs
   6.  Bandeau d'annonce et barre supérieure
   7.  En-tête et identité du site
   8.  Navigation principale + menu mobile
   9.  En-tête de page
   10. Contenu et blocs WordPress
   11. Composants de marque
   12. Articles et archives
   13. Commentaires
   14. Widgets et pied de page
   15. Adaptatif
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES DE MARQUE
   Valeurs officielles — plateforme de marque Scouts du Canada (Beauvoir, 2024)
   ========================================================================== */

:root {
	/* Palette officielle */
	--smsh-vert:        #007748; /* Pantone 3415 C — couleur principale */
	--smsh-vert-fonce:  #005634;
	--smsh-vert-pale:   #f1f7f4;
	--smsh-jaune:       #ffb400; /* Pantone 7549 C */
	--smsh-marine:      #002d5a; /* Pantone 2728 C */
	--smsh-bleu:        #0078ff; /* Pantone 285 C */
	--smsh-rouge:       #ff4637; /* Pantone 2347 C */
	--smsh-rose:        #ff73be; /* Pantone 2038 C */
	--smsh-violet:      #8237ff; /* Pantone 266 C */
	--smsh-gris:        #b2b2b2; /* Cool Gray 5 C */

	/* Neutres d'interface */
	--smsh-texte:       #21262b;
	--smsh-texte-doux:  #56606a;
	--smsh-bordure:     #e3e6e4;
	--smsh-fond-doux:   #f5f5f4;

	/* Typographie — Poppins est la police principale de la marque */
	--smsh-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	/* Mesures */
	--smsh-largeur:         1080px;
	--smsh-largeur-contenu: 820px;
	--smsh-rayon:           10px;
	--smsh-rayon-lg:        14px;
}


/* ==========================================================================
   2. RÉINITIALISATION ET BASE
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--smsh-font);
	font-size: 16.5px;
	line-height: 1.72;
	color: var(--smsh-texte);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

a {
	color: var(--smsh-vert);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

a:hover,
a:focus {
	color: var(--smsh-vert-fonce);
}

:focus-visible {
	outline: 3px solid var(--smsh-jaune);
	outline-offset: 2px;
	border-radius: 3px;
}

hr,
.wp-block-separator {
	border: 0;
	border-top: 2px solid var(--smsh-bordure);
	margin: 40px 0;
}


/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--smsh-font);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--smsh-marine);
	margin: 0 0 14px;
}

h1 { font-size: 2.4rem; font-weight: 700; color: var(--smsh-vert); }
h2 { font-size: 1.75rem; font-weight: 700; color: var(--smsh-vert); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; color: var(--smsh-vert); }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--smsh-texte-doux); }

p {
	margin: 0 0 18px;
}

strong, b {
	font-weight: 600;
}

blockquote,
.wp-block-quote {
	margin: 28px 0;
	padding: 4px 0 4px 22px;
	border-left: 5px solid var(--smsh-jaune);
	font-style: italic;
	color: var(--smsh-texte-doux);
}

blockquote p:last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	font-style: normal;
	font-size: 0.85em;
	font-weight: 600;
	margin-top: 8px;
	color: var(--smsh-texte);
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--smsh-fond-doux);
	border-radius: 4px;
}

code { padding: 2px 6px; }

pre {
	padding: 18px;
	overflow-x: auto;
	border-left: 4px solid var(--smsh-vert);
}


/* ==========================================================================
   4. ACCESSIBILITÉ
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--smsh-vert);
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}


/* ==========================================================================
   5. MISE EN PAGE / CONTENEURS
   ========================================================================== */

.smsh-wrap {
	max-width: var(--smsh-largeur);
	margin-left: auto;
	margin-right: auto;
	padding-left: 26px;
	padding-right: 26px;
}

.site-main {
	padding: 52px 0 70px;
}

.smsh-contenu {
	max-width: var(--smsh-largeur-contenu);
}

.smsh-layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 54px;
	align-items: start;
	max-width: none;
}


/* ==========================================================================
   6. BANDEAU D'ANNONCE ET BARRE SUPÉRIEURE
   ========================================================================== */

.smsh-annonce {
	background-color: var(--smsh-jaune);
	color: #21262b;
	text-align: center;
	font-size: 0.92rem;
	font-weight: 600;
	padding: 11px 26px;
}

.smsh-annonce a {
	color: #21262b;
	text-decoration: underline;
}

.smsh-topbar {
	background-color: var(--smsh-vert);
	color: #fff;
	font-size: 0.8rem;
}

.smsh-topbar .smsh-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	min-height: 38px;
}

.smsh-topbar-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.smsh-topbar a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.smsh-topbar a:hover,
.smsh-topbar a:focus {
	color: #fff;
	text-decoration: underline;
}


/* ==========================================================================
   7. EN-TÊTE ET IDENTITÉ DU SITE
   ========================================================================== */

.site-header {
	background-color: #fff;
	border-bottom: 1px solid var(--smsh-bordure);
}

.smsh-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.site-branding .custom-logo-link,
.smsh-logo-fallback {
	flex: none;
	display: block;
	line-height: 0;
}

.site-branding img {
	width: auto;
	max-height: 78px;
	object-fit: contain;
}

.smsh-logo-fallback {
	width: 62px;
	height: 62px;
	border-radius: 16px;
	background-color: var(--smsh-vert);
	color: #fff;
	font-weight: 700;
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 1;
}

.site-title {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: var(--smsh-vert);
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--smsh-texte-doux);
	margin: 3px 0 0;
}

.smsh-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}


/* --- Boutons --- */

.smsh-btn {
	display: inline-block;
	font-family: var(--smsh-font);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 22px;
	border-radius: 100px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.smsh-btn--don {
	background-color: var(--smsh-jaune);
	color: #21262b;
}

.smsh-btn--don:hover,
.smsh-btn--don:focus {
	background-color: #ffc32e;
	color: #21262b;
}

.smsh-btn--ligne {
	border-color: var(--smsh-vert);
	color: var(--smsh-vert);
	background-color: transparent;
}

.smsh-btn--ligne:hover,
.smsh-btn--ligne:focus {
	background-color: var(--smsh-vert);
	color: #fff;
}

.smsh-btn--sombre {
	background-color: #21262b;
	color: #fff;
}

.smsh-btn--sombre:hover,
.smsh-btn--sombre:focus {
	background-color: #000;
	color: #fff;
}


/* ==========================================================================
   8. NAVIGATION PRINCIPALE + MENU MOBILE
   ========================================================================== */

.smsh-nav {
	background-color: var(--smsh-vert);
	position: relative;
}

.smsh-menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--smsh-font);
	font-size: 0.95rem;
	font-weight: 600;
	padding: 14px 0;
	cursor: pointer;
}

.smsh-menu-toggle .smsh-burger {
	position: relative;
	width: 22px;
	height: 2px;
	background-color: #fff;
	display: block;
	flex: none;
}

.smsh-menu-toggle .smsh-burger::before,
.smsh-menu-toggle .smsh-burger::after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background-color: #fff;
	transition: transform 0.2s ease, top 0.2s ease;
}

.smsh-menu-toggle .smsh-burger::before { top: -7px; }
.smsh-menu-toggle .smsh-burger::after  { top: 7px; }

.smsh-menu-toggle[aria-expanded="true"] .smsh-burger { background-color: transparent; }
.smsh-menu-toggle[aria-expanded="true"] .smsh-burger::before { top: 0; transform: rotate(45deg); }
.smsh-menu-toggle[aria-expanded="true"] .smsh-burger::after  { top: 0; transform: rotate(-45deg); }

.smsh-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smsh-nav .smsh-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.smsh-nav .smsh-menu > li {
	position: relative;
}

.smsh-nav .smsh-menu > li > a {
	display: block;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 14px 18px;
	text-decoration: none;
}

.smsh-nav .smsh-menu > li > a:hover,
.smsh-nav .smsh-menu > li > a:focus,
.smsh-nav .smsh-menu > li.current-menu-item > a,
.smsh-nav .smsh-menu > li.current-menu-ancestor > a,
.smsh-nav .smsh-menu > li.current_page_item > a,
.smsh-nav .smsh-menu > li.current_page_parent > a {
	background-color: var(--smsh-vert-fonce);
	color: #fff;
}

/* Bouton d'ouverture des sous-menus */
.smsh-sous-menu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 34px;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smsh-sous-menu-toggle svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
	transition: transform 0.2s ease;
}

.smsh-sous-menu-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.smsh-nav .smsh-menu > li.menu-item-has-children > a {
	padding-right: 36px;
}

/* Sous-menus déroulants (bureau) */
.smsh-nav .sub-menu,
.smsh-nav .children {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background-color: #fff;
	border: 1px solid var(--smsh-bordure);
	border-top: 3px solid var(--smsh-jaune);
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.28);
	padding: 8px 0;
	z-index: 60;
	display: none;
}

.smsh-nav .smsh-menu > li:hover > .sub-menu,
.smsh-nav .smsh-menu > li:focus-within > .sub-menu,
.smsh-nav .smsh-menu > li.smsh-ouvert > .sub-menu,
.smsh-nav .smsh-menu > li:hover > .children,
.smsh-nav .smsh-menu > li:focus-within > .children {
	display: block;
}

.smsh-nav .sub-menu a,
.smsh-nav .children a {
	display: block;
	padding: 8px 20px;
	color: var(--smsh-texte);
	font-size: 0.88rem;
	text-decoration: none;
}

.smsh-nav .sub-menu a:hover,
.smsh-nav .sub-menu a:focus,
.smsh-nav .children a:hover,
.smsh-nav .children a:focus {
	background-color: var(--smsh-vert-pale);
	color: var(--smsh-vert);
}


/* ==========================================================================
   9. EN-TÊTE DE PAGE
   ========================================================================== */

.smsh-page-header {
	background-color: var(--smsh-vert-pale);
	border-bottom: 1px solid var(--smsh-bordure);
	padding: 44px 0 40px;
}

.smsh-page-header .page-title,
.smsh-page-header .entry-title {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--smsh-vert);
	margin: 0;
}

.smsh-page-header .smsh-sous-titre {
	font-size: 1.05rem;
	color: var(--smsh-texte-doux);
	margin: 8px 0 0;
}

.smsh-fil-ariane {
	font-size: 0.82rem;
	color: var(--smsh-texte-doux);
	margin-bottom: 10px;
}

.smsh-fil-ariane a {
	color: var(--smsh-texte-doux);
	text-decoration: none;
}

.smsh-fil-ariane a:hover {
	color: var(--smsh-vert);
	text-decoration: underline;
}


/* ==========================================================================
   10. CONTENU ET BLOCS WORDPRESS
   ========================================================================== */

.entry-content > * {
	margin-top: 0;
	margin-bottom: 18px;
}

.entry-content h2 {
	font-size: 1.75rem;
	margin: 52px 0 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--smsh-jaune);
	display: inline-block;
}

.entry-content h3 {
	font-size: 1.3rem;
	color: var(--smsh-marine);
	margin: 40px 0 12px;
}

.entry-content h4 {
	font-size: 1.08rem;
	color: var(--smsh-vert);
	margin: 32px 0 10px;
}

.entry-content h5,
.entry-content h6 {
	margin: 26px 0 8px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 20px;
	padding-left: 0;
}

.entry-content ul {
	list-style: none;
}

.entry-content ul li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 9px;
}

.entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 9px;
	height: 9px;
	background-color: var(--smsh-jaune);
	border-radius: 2px;
}

.entry-content ol {
	list-style: decimal;
	padding-left: 24px;
}

.entry-content ol li {
	margin-bottom: 9px;
	padding-left: 4px;
}

.entry-content ol li::marker {
	color: var(--smsh-vert);
	font-weight: 600;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 9px 0 0;
}

/* Images et légendes */
.entry-content img {
	border-radius: var(--smsh-rayon);
}

.entry-content .wp-block-image,
.entry-content figure {
	margin: 26px 0;
}

.wp-caption,
figcaption,
.wp-element-caption {
	font-size: 0.83rem;
	color: var(--smsh-texte-doux);
	font-style: italic;
	margin-top: 9px;
	text-align: center;
}

.alignleft  { float: left;  margin: 6px 26px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 26px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.alignwide {
	max-width: calc(var(--smsh-largeur) - 52px);
	margin-left: calc((var(--smsh-largeur-contenu) - var(--smsh-largeur) + 52px) / 2);
}

.entry-content > .alignfull {
	max-width: 100vw;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Galeries */
.wp-block-gallery,
.gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 26px 0;
	list-style: none;
	padding: 0;
}

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

.wp-block-gallery figure,
.gallery-item {
	margin: 0;
}

.wp-block-gallery img,
.gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--smsh-rayon);
}

/* Tableaux */
table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 26px 0;
	font-size: 0.94rem;
}

th, td {
	border: 1px solid var(--smsh-bordure);
	padding: 11px 14px;
	text-align: left;
}

thead th {
	background-color: var(--smsh-vert);
	color: #fff;
	font-weight: 600;
	border-color: var(--smsh-vert);
}

tbody tr:nth-child(even) {
	background-color: var(--smsh-fond-doux);
}

/* Boutons de blocs */
.wp-block-button__link {
	background-color: var(--smsh-vert);
	color: #fff;
	border-radius: 100px;
	font-weight: 600;
	padding: 12px 26px;
	text-decoration: none;
}

.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--smsh-vert);
	color: var(--smsh-vert);
}

/* Formulaires */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	font-family: var(--smsh-font);
	font-size: 0.95rem;
	color: var(--smsh-texte);
	padding: 11px 14px;
	border: 1px solid var(--smsh-bordure);
	border-radius: var(--smsh-rayon);
	background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--smsh-vert);
	outline: 3px solid rgba(0, 119, 72, 0.18);
	outline-offset: 0;
}

button,
input[type="submit"],
.wp-block-search__button {
	font-family: var(--smsh-font);
	font-size: 0.9rem;
	font-weight: 600;
	background-color: var(--smsh-vert);
	color: #fff;
	border: 0;
	border-radius: 100px;
	padding: 12px 26px;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
	background-color: var(--smsh-vert-fonce);
}


/* ==========================================================================
   11. COMPOSANTS DE MARQUE
   ========================================================================== */

/* Bandeau de don réutilisable */
.smsh-bandeau-don {
	background-color: var(--smsh-jaune);
	border-radius: var(--smsh-rayon-lg);
	padding: 22px 28px;
	margin: 0 0 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.smsh-bandeau-don p {
	margin: 0;
	font-weight: 600;
	font-size: 1.05rem;
	color: #21262b;
	max-width: 560px;
}

/* Encadré (style de bloc « Encadré Scout ») */
.smsh-encadre,
.is-style-smsh-encadre {
	background-color: var(--smsh-vert-pale);
	border-left: 5px solid var(--smsh-vert);
	padding: 20px 24px;
	border-radius: 0 var(--smsh-rayon) var(--smsh-rayon) 0;
	margin: 26px 0;
}

.smsh-encadre > :last-child,
.is-style-smsh-encadre > :last-child {
	margin-bottom: 0;
}

/* Étiquettes de totem / pastilles */
.smsh-totems {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 14px 0 22px;
	padding: 0;
	list-style: none;
}

.smsh-totem {
	background-color: var(--smsh-vert-pale);
	color: var(--smsh-vert-fonce);
	font-size: 0.88rem;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 100px;
}

/* Fiche d'unité */
.smsh-unite {
	border: 1px solid var(--smsh-bordure);
	border-left: 6px solid var(--smsh-vert);
	border-radius: var(--smsh-rayon-lg);
	padding: 22px 26px;
	margin-bottom: 18px;
}

.smsh-unite--castors    { border-left-color: var(--smsh-jaune); }
.smsh-unite--louveteaux { border-left-color: var(--smsh-bleu); }
.smsh-unite--eclaireurs { border-left-color: var(--smsh-rouge); }
.smsh-unite--pionniers  { border-left-color: var(--smsh-violet); }
.smsh-unite--routiers   { border-left-color: var(--smsh-marine); }

.smsh-unite h3 {
	margin: 0 0 4px;
	font-size: 1.2rem;
	color: var(--smsh-marine);
}

.smsh-unite .smsh-tranche {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--smsh-texte-doux);
	margin-bottom: 14px;
}


/* ==========================================================================
   12. ARTICLES ET ARCHIVES
   ========================================================================== */

.smsh-liste-articles {
	display: grid;
	gap: 26px;
}

.smsh-carte {
	border: 1px solid var(--smsh-bordure);
	border-radius: var(--smsh-rayon-lg);
	overflow: hidden;
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: stretch;
}

.smsh-carte--sans-image {
	grid-template-columns: minmax(0, 1fr);
}

.smsh-carte__vignette {
	overflow: hidden;
	background-color: var(--smsh-fond-doux);
}

.smsh-carte__vignette img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.smsh-carte__corps {
	padding: 24px 26px;
}

.smsh-carte__corps .entry-title {
	font-size: 1.25rem;
	margin: 0 0 6px;
}

.smsh-carte__corps .entry-title a {
	color: var(--smsh-marine);
	text-decoration: none;
}

.smsh-carte__corps .entry-title a:hover {
	color: var(--smsh-vert);
	text-decoration: underline;
}

.entry-meta {
	font-size: 0.8rem;
	color: var(--smsh-texte-doux);
	margin-bottom: 10px;
}

.entry-meta a {
	color: var(--smsh-texte-doux);
}

.smsh-lien-suite {
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

.smsh-lien-suite:hover {
	text-decoration: underline;
}

.post-thumbnail {
	margin-bottom: 28px;
}

.post-thumbnail img {
	width: 100%;
	border-radius: var(--smsh-rayon-lg);
}

/* Pagination */
.navigation.pagination,
.navigation.posts-navigation,
.navigation.post-navigation {
	margin-top: 48px;
	padding-top: 26px;
	border-top: 2px solid var(--smsh-bordure);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.page-numbers {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	padding: 8px 12px;
	border-radius: 100px;
	border: 1px solid var(--smsh-bordure);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
}

.page-numbers.current,
.page-numbers:hover {
	background-color: var(--smsh-vert);
	border-color: var(--smsh-vert);
	color: #fff;
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation a {
	font-weight: 600;
	text-decoration: none;
}


/* ==========================================================================
   13. COMMENTAIRES
   ========================================================================== */

.comments-area {
	margin-top: 56px;
	padding-top: 34px;
	border-top: 2px solid var(--smsh-bordure);
}

.comment-list {
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
}

.comment-list li {
	padding: 0;
}

.comment-body {
	border: 1px solid var(--smsh-bordure);
	border-radius: var(--smsh-rayon-lg);
	padding: 20px 24px;
	margin-bottom: 18px;
}

.comment-list .children {
	list-style: none;
	margin: 0 0 0 34px;
	padding: 0;
}

.comment-author {
	font-weight: 600;
	color: var(--smsh-marine);
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--smsh-texte-doux);
	margin-bottom: 10px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 6px;
}

.comment-form p {
	margin-bottom: 16px;
}


/* ==========================================================================
   14. WIDGETS ET PIED DE PAGE
   ========================================================================== */

.smsh-sidebar .widget {
	margin-bottom: 34px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--smsh-bordure);
}

.smsh-sidebar .widget:last-child {
	border-bottom: 0;
}

.widget-title {
	font-size: 0.78rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--smsh-vert);
	margin-bottom: 14px;
}

.smsh-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smsh-sidebar li {
	margin-bottom: 9px;
	font-size: 0.94rem;
}

.site-footer {
	background-color: var(--smsh-marine);
	color: rgba(255, 255, 255, 0.72);
	padding: 52px 0 26px;
	font-size: 0.88rem;
	margin-top: 20px;
}

.smsh-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 36px;
}

.smsh-footer-grid .widget-title,
.smsh-footer-grid h2 {
	font-size: 0.72rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--smsh-jaune);
	margin-bottom: 14px;
}

.smsh-footer-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smsh-footer-grid li {
	margin-bottom: 8px;
}

.smsh-footer-grid a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.smsh-footer-grid a:hover,
.smsh-footer-grid a:focus {
	color: #fff;
	text-decoration: underline;
}

.smsh-footer-identite .smsh-footer-nom {
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.smsh-footer-identite p {
	max-width: 330px;
	line-height: 1.65;
}

.smsh-footer-bas {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
}

.smsh-footer-bas a {
	color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   15. ADAPTATIF
   ========================================================================== */

@media (max-width: 1024px) {
	.smsh-layout-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}
	.alignwide {
		max-width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 880px) {

	.smsh-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.smsh-header-actions {
		width: 100%;
	}

	.smsh-header-actions .smsh-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	/* Menu mobile */
	.smsh-menu-toggle {
		display: flex;
	}

	.smsh-nav .smsh-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 12px;
	}

	.smsh-nav .smsh-menu.smsh-menu--ouvert {
		display: flex;
	}

	.smsh-nav .smsh-menu > li > a {
		padding: 12px 0;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.smsh-nav .smsh-menu > li.menu-item-has-children > a {
		padding-right: 44px;
	}

	.smsh-sous-menu-toggle {
		width: 44px;
		height: 46px;
	}

	.smsh-nav .sub-menu,
	.smsh-nav .children {
		position: static;
		display: none;
		min-width: 0;
		background-color: transparent;
		border: 0;
		box-shadow: none;
		padding: 0 0 10px;
	}

	.smsh-nav .smsh-menu > li:hover > .sub-menu,
	.smsh-nav .smsh-menu > li:focus-within > .sub-menu {
		display: none;
	}

	.smsh-nav .smsh-menu > li.smsh-ouvert > .sub-menu,
	.smsh-nav .children {
		display: block;
	}

	.smsh-nav .sub-menu a,
	.smsh-nav .children a {
		color: rgba(255, 255, 255, 0.85);
		padding: 8px 0 8px 18px;
	}

	.smsh-nav .sub-menu a:hover,
	.smsh-nav .sub-menu a:focus,
	.smsh-nav .children a:hover,
	.smsh-nav .children a:focus {
		background-color: transparent;
		color: #fff;
	}

	.smsh-page-header .page-title,
	.smsh-page-header .entry-title {
		font-size: 1.8rem;
	}

	.smsh-carte {
		grid-template-columns: minmax(0, 1fr);
	}

	.smsh-carte__vignette img {
		aspect-ratio: 16 / 9;
	}

	.wp-block-gallery,
	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smsh-footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	body { font-size: 16px; }
	.smsh-wrap { padding-left: 20px; padding-right: 20px; }
	.alignleft, .alignright { float: none; margin: 20px 0; }
	.wp-block-gallery, .gallery { grid-template-columns: minmax(0, 1fr); }
	.smsh-header-actions { flex-direction: column; align-items: stretch; }
}


/* ==========================================================================
   IMPRESSION
   ========================================================================== */

@media print {
	.smsh-topbar,
	.smsh-nav,
	.smsh-annonce,
	.smsh-header-actions,
	.site-footer,
	.navigation {
		display: none !important;
	}
	body { font-size: 11pt; color: #000; }
	a { color: #000; text-decoration: underline; }
}
