/*
Theme Name:        ALGM Basket Block
Theme URI:         https://www.algm-basket.fr/
Author:            ALGM Basket
Author URI:        https://www.algm-basket.fr/
Description:       Thème hybride du club ALGM Basket (Gerland Mouche). Garde les templates PHP classiques pour les fiches licenciés, l'espace bénévoles et les overrides The Events Calendar, et ajoute par-dessus un theme.json centralisé (charte bleu marine / or) ainsi que des patterns Gutenberg réutilisables (convocation match, résultat, recrue, événement, recherche bénévole, sponsors).
Version:           0.1.0
Requires at least: 6.1
Tested up to:      6.9
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:       algm
Tags:              custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns, block-styles

Basé initialement sur Underscores (theme-algm), Copyright 2017-2026 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design tokens (charte ALGM)
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
	## Event
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Design tokens (charte ALGM Basket)
----------------------------------------------------------------
Variables CSS canoniques exposées à l'ensemble du site et consommées
par les plugins maison (algm-benevoles, algm-faq, etc.). Ces tokens
reflètent les presets déclarés dans theme.json (color & fontFamilies)
pour offrir le même vocabulaire en CSS classique.

Toute valeur de marque (couleur, police, radius, ombre) DOIT venir
d'une de ces variables. Pas de hex en dur dans les feuilles consommatrices.
--------------------------------------------------------------*/
:root {
	/* Couleurs charte */
	--algm-bleu:        #202346;
	--algm-or:          #EAB93A;
	--algm-blanc:       #FFFFFF;
	--algm-gris:        #F5F5F5;
	--algm-gris-bord:   #E0E0E0;

	/* Texte */
	--algm-texte:       #1A1A1A;
	--algm-texte-muted: #6B7280;

	/* États */
	--algm-erreur:      #C0392B;
	--algm-succes:      #27AE60;

	/* Typographie */
	--algm-font-titre:  Verdana, Geneva, sans-serif;
	--algm-font-texte:  'Open Sans', Arial, Helvetica, sans-serif;

	/* Rayon de coins (échelle unifiée) */
	--algm-radius-sm:   4px;   /* inputs, badges */
	--algm-radius:      8px;   /* cartes, conteneurs, boutons */
	--algm-radius-lg:   12px;  /* grandes cartes (hero, etc.) */
	--algm-radius-pill: 999px; /* pastilles, CTA arrondis */

	/* Ombres */
	--algm-shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.04);
	--algm-shadow:      0 2px 8px rgba(32, 35, 70, 0.10);
	--algm-shadow-lg:   0 6px 16px rgba(32, 35, 70, 0.12);

	/* Transitions */
	--algm-transition:  0.2s ease;
}

/*--------------------------------------------------------------
# Normalize (test)
--------------------------------------------------------------*/
/* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
	line-height: 1.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
	box-sizing: content-box; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
	border-bottom: none; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1.2em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */

legend {
	box-sizing: border-box; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box; /* 1 */
	padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/* ===== Harmonisation Gravity Forms avec l'espace bénévole ===== */

/* Conteneur du formulaire */
.gform_wrapper.gravity-theme {
  font-family: var(--algm-font, 'Open Sans', Arial, sans-serif);
  color: var(--algm-bleu, #202346);
}

/* Espacement entre les champs */
.gform_wrapper.gravity-theme .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Labels principaux */
.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper.gravity-theme .gform-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--algm-bleu, #202346);
  margin-bottom: 5px;
  font-family: var(--algm-font, 'Open Sans', Arial, sans-serif);
}

/* Sous-labels (Prénom / Nom) */
.gform_wrapper.gravity-theme .gform-field-label--type-sub {
  font-weight: 500;
  color: var(--algm-texte-muted, #6B7280);
  text-transform: none;
}

/* Indicateur "(Nécessaire)" */
.gform_wrapper.gravity-theme .gfield_required {
  color: var(--algm-or, #EAB93A);
  font-weight: 600;
  margin-left: 4px;
}

/* Descriptions */
.gform_wrapper.gravity-theme .gfield_description {
  font-size: 12px;
  color: var(--algm-texte-muted, #6B7280);
  margin: 4px 0 6px;
}

/* Inputs, textarea, select */
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme input[type="password"],
.gform_wrapper.gravity-theme textarea,
.gform_wrapper.gravity-theme select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDDDDD;
  border-radius: var(--algm-radius, 8px);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  background: #FFFFFF;
  color: var(--algm-bleu, #202346);
  transition: border-color var(--algm-transition, 0.2s ease);
}

.gform_wrapper.gravity-theme .gfield_radio input[type=text] {
    margin-top: 5px !important;
    padding: 0px 5px;
}

.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme textarea:focus,
.gform_wrapper.gravity-theme select:focus {
  border-color: var(--algm-bleu, #202346);
}

.gform_wrapper.gravity-theme textarea {
  min-height: 140px;
  resize: vertical;
}

/* Grille du champ Nom (Prénom / Nom) */
.gform_wrapper.gravity-theme .ginput_complex.gform-grid-row {
  gap: 14px;
}

/* Champ "fichiers joints" */
.gform_wrapper.gravity-theme input[type="file"],
.gform_wrapper.gravity-theme .gform_drop_area {
  border: 1px dashed #DDDDDD;
  border-radius: var(--algm-radius, 8px);
  padding: 10px;
  font-size: small;
  background: #FAFAFA;
}

/* Checkbox RGPD */
.ginput_container.ginput_container_consent {
    display: flex;
    align-items: flex-start;
}

.gform_wrapper.gravity-theme .gchoice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  color: var(--algm-bleu, #202346);
}

.gform_wrapper.gravity-theme input[type="checkbox"] {
  accent-color: var(--algm-or, #EAB93A);
  width: 16px;
  height: 16px;
  margin-top: 7px;
  margin-right: 0.5em;
}

/* Bouton d'envoi */
.gform_wrapper.gravity-theme .gform_footer,
.gform_wrapper.gravity-theme .gform_page_footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.gform_wrapper.gravity-theme .gform_button,
.gform_wrapper.gravity-theme button[type="submit"] {
  background: var(--algm-or, #EAB93A);
  color: var(--algm-bleu, #202346);
  border: none;
  border-radius: var(--algm-radius, 8px);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--algm-font, 'Open Sans', Arial, sans-serif);
  cursor: pointer;
  transition: all var(--algm-transition, 0.2s ease);
}

.gform_wrapper.gravity-theme .gform_button:hover,
.gform_wrapper.gravity-theme button[type="submit"]:hover {
  background: var(--algm-bleu, #202346);
  color: #FFFFFF;
}

/* Messages de validation */

div.gform_confirmation_wrapper {
    margin: 2em;
}
.gform_wrapper.gravity-theme .gfield_validation_message,
.gform_wrapper.gravity-theme .validation_message {
  color: var(--algm-erreur, #C0392B);
  font-size: 12px;
  margin-top: 4px;
}

.gform_wrapper.gravity-theme .gfield_error input,
.gform_wrapper.gravity-theme .gfield_error textarea {
  border-color: var(--algm-erreur, #C0392B);
}

.gform_wrapper.gravity-theme .gform_validation_errors>h2 .gform-icon {
    position: relative !important;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# button
# ─────────────────────────────────────────────────────────────
# RAYONS BOUTONS — convention design system ALGM :
#   • 25px ............. CTA marketing (WP Block, pages publiques)
#   • 8px .............. boutons applicatifs (plugin algm-benevoles)
#                        → consommer var(--algm-radius)
#   • 999px ............ pills / badges / votes binaires
# Ne pas hardcoder d'autres valeurs (4, 6, 7, 10px) sur des boutons.
--------------------------------------------------------------*/
.wp-block-button__link {
	background-color: var(--wp--preset--color--or);
    color: var(--wp--preset--color--bleu);
    border-radius: 25px;
}

.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--bleu);
    color: var(--wp--preset--color--blanc);
}

a.wp-block-button__link.wp-element-button:hover:visited {
    color: var(--wp--preset--color--blanc);
}

a.wp-block-button__link.wp-element-button:visited {
    color: var(--wp--preset--color--bleu);
}


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--wp--preset--color--bleu);
	font-family: var(--wp--preset--font-family--texte);
	font-size: 1.2em;
	line-height: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	font-weight: 600;
	line-height: 1.3em;
}
h1 {
	font-size: 2.2em;
}
h2 {
	font-size: 1.6em;
	position: relative;
	padding-bottom: 0.5em;
	margin-bottom: 0.9em;
}
h2::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 4px;
	background: var(--wp--preset--color--or);
	border-radius: 2px;
}
/* Centrage de la barre quand le titre est centré */
.has-text-align-center > h2::after,
h2.has-text-align-center::after,
[style*="text-align: center"] > h2::after,
[style*="text-align:center"] > h2::after {
	left: 50%;
	transform: translateX(-50%);
}
/* Compatibilité ancienne classe : .mouche n'ajoute plus le soulignement (devenu global). */


p {
	margin-bottom: 1.5em;
}

p.chiffresClub {
	margin-bottom: 0;
}

dfn, cite, em, i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark, ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
	height: 100%;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: var(--wp--preset--color--blanc);
	height: 100%;
	margin:0;
  	padding:0;
	/* Fallback for when there is no custom background color defined. */
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul, ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: square;
}

ol {
	list-style: decimal;
}

li {
	padding-bottom: 1em;
	line-height: 1.7em;
}

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

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	color: var(--wp--preset--color--blanc);
	background: var(--wp--preset--color--bleu);
	font-size: 1em;
	line-height: 1;
	padding: 1em 1.5em;
	float: right;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background-color: var(--wp--preset--color--or);
	color: var(--wp--preset--color--bleu);
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="search"] {
	width: 100%;
	padding: 0.5em;
	border: 1px solid var(--wp--preset--color--bleu);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: var(--wp--preset--color--bleu);
}

a:visited {
	color: var(--wp--preset--color--bleu);
}

a:hover, a:focus, a:active {
	color: var(--wp--preset--color--or);
}

a:focus {
	/* outline: thin dotted; */
}

a:hover, a:active {
	/* outline: 0; */
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header#masthead {
	position: fixed;
	background: var(--wp--preset--color--blanc);
	height: 172px;
	width: 100%;
	z-index: 99;
}

header#masthead.site-header-benevoles {
	background: none;
	position: absolute;
}

#header-logo {
	text-align: center;
	padding-top: 1.5em;
}

.compte-search{
    display: flex;
    flex-flow: row;
    float: right;
    align-items: center;
    gap: 0.6em;
    margin-right: 2em;
    height: 55px;
}

/*--------------------------------------------------------------
# Bouton "Mon espace bénévole" — variante A : lien sobre icône + texte
# Placé à gauche de la loupe dans .compte-search
--------------------------------------------------------------*/
.benevole-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    color: var(--wp--preset--color--bleu);
    font-family: var(--algm-font-texte, 'Open Sans', Arial, Helvetica, sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.benevole-trigger:hover {
    background-color: rgba(32, 35, 70, 0.08);
    color: var(--wp--preset--color--bleu);
    text-decoration: none;
}
.benevole-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--wp--preset--color--or);
}
.benevole-trigger .iconBenevole {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
    pointer-events: none;
}
.benevole-trigger__label {
    white-space: nowrap;
}

/*--------------------------------------------------------------
# Formulaire recherche — Option B : déclencheur loupe + overlay plein écran
--------------------------------------------------------------*/

/* --- Déclencheur (loupe seule, toujours visible) --- */
.search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--wp--preset--color--bleu);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.search-trigger:hover {
    background-color: rgba(32, 35, 70, 0.08);
}
.search-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--wp--preset--color--or);
}
.search-trigger .iconSearch {
    width: 24px;
    height: 24px;
    fill: currentColor;
    pointer-events: none;
}

/* --- Overlay plein écran --- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6em 1.5em 2em;
    background: rgba(32, 35, 70, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}
/* Quand l'overlay est fermé, [hidden] applique display:none.
   Le JS retire `hidden` une frame avant d'ajouter `.is-open` pour permettre la transition opacity. */
.search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay__close {
    position: absolute;
    top: 1.2em;
    right: 1.2em;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--wp--preset--color--blanc);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.search-overlay__close:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}
.search-overlay__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--wp--preset--color--or);
}

.search-overlay__inner {
    width: 100%;
    max-width: 640px;
}

.search-overlay__form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid var(--wp--preset--color--or);
    padding-bottom: 4px;
}
/* Spécificité doublée (.search-overlay .search-overlay__input) pour battre les règles globales
   input[type="search"] et input[type="search"]:focus du thème (border bleue, color #111). */
.search-overlay .search-overlay__input,
.search-overlay .search-overlay__input:focus {
    flex: 1;
    min-width: 0;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--wp--preset--color--blanc);
    font-size: 1.75rem;
    line-height: 1.4;
    padding: 0.4em 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-fill-color: var(--wp--preset--color--blanc); /* iOS Safari */
    caret-color: var(--wp--preset--color--or);
}
.search-overlay .search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
/* Masque la croix native de input[type=search] sous Chrome/Safari */
.search-overlay__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.search-overlay__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--wp--preset--color--or);
    cursor: pointer;
    transition: background-color .2s ease;
}
.search-overlay__submit:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.search-overlay__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--wp--preset--color--or);
}
.search-overlay__submit .iconSearch {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.search-overlay__hint {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    margin: 1em 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
.search-overlay__hint kbd {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8rem;
}
.search-overlay__hint-cats {
    margin-left: auto;
    opacity: 0.7;
}

.search-overlay__results {
    margin-top: 1.5em;
    background: var(--wp--preset--color--blanc);
    border-radius: 8px;
    overflow: hidden;
    max-height: 60vh;
    overflow-y: auto;
}
.search-overlay__results:empty {
    display: none;
}
.search-overlay__group-label {
    padding: 10px 16px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(32, 35, 70, 0.55);
}
.search-overlay__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--wp--preset--color--bleu);
    text-decoration: none;
    font-size: 1rem;
    border-top: 1px solid rgba(32, 35, 70, 0.06);
    transition: background-color .15s ease;
}
.search-overlay__item:first-child {
    border-top: 0;
}
.search-overlay__item:hover,
.search-overlay__item.is-active {
    background-color: rgba(234, 185, 58, 0.18);
    color: var(--wp--preset--color--bleu);
    text-decoration: none;
}
.search-overlay__item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-overlay__item-tag {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(32, 35, 70, 0.08);
    color: var(--wp--preset--color--bleu);
    font-size: 0.7rem;
    text-transform: lowercase;
}
.search-overlay__status {
    padding: 14px 16px;
    color: rgba(32, 35, 70, 0.7);
    font-size: 0.95rem;
    font-style: italic;
}

/* État body quand l'overlay est ouvert : on bloque le scroll de la page */
body.search-overlay-open {
    overflow: hidden;
}

/* Compatibilité ancienne icône (utilisée ailleurs dans le thème) */
svg.iconSearch {
    width: 24px;
    height: 24px;
    fill: var(--wp--preset--color--bleu);
}

/* --- Mobile --- */
@media (max-width: 1024px) {
    .compte-search {
        position: absolute;
        top: 0;
        right: 0.5em;
        margin-right: 0;
        height: auto;
        z-index: 30;
        gap: 0.35em;
    }
    .search-trigger {
        margin-top: 0.6em;
        width: 48px;
        height: 48px;
    }
    .search-trigger .iconSearch {
        width: 26px;
        height: 26px;
    }

    /* Bouton bénévole : icône seule (cercle transparent comme la loupe), texte sr-only */
    .benevole-trigger {
        width: 48px;
        height: 48px;
        margin-top: 0.6em;
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 50%;
        background: transparent;
    }
    .benevole-trigger:hover {
        background-color: rgba(32, 35, 70, 0.08);
    }
    .benevole-trigger .iconBenevole {
        width: 26px;
        height: 26px;
    }
    .benevole-trigger__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .search-overlay {
        padding: 4.5em 1em 1.5em;
    }
    .search-overlay__input {
        font-size: 1.3rem;
    }
    .search-overlay__hint-cats {
        display: none;
    }
    .search-overlay__close {
        top: 0.5em;
        right: 0.5em;
    }
}

/*--------------------------------------------------------------
## Contenaire Menus
--------------------------------------------------------------*/

#header-navigation .menu-menu-principal-container,
#header-navigation .menu-menu-principal-2-container {
    border-bottom: 6px solid var(--wp--preset--color--bleu); 
    padding-bottom: 1.2em;
		background-color: var(--wp--preset--color--blanc);
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	clear: both;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

ul.sub-menu {
	display: block;
}

ul.sub-menu li {
	padding-bottom: 1em;
	text-transform: none;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	margin: .125rem 0 0;
	padding: 1.5em 0.5em;
	background: var(--wp--preset--color--blanc);
    width: 265px;
    border-bottom: 3px solid var(--wp--preset--color--bleu);
	z-index: 99999;
	border-radius: .25rem;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: 0;
}

.main-navigation li {
	float: left;
	position: relative;
	padding: 0 1.5em;
    text-transform: uppercase;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

.main-navigation a:visited {
	color: inherit;
}

/* ============================================================
   Menu drawer responsive — refonte mai 2026 (theme-algm-block)
   Breakpoint hamburger : <= 1024 px
   Couleurs : variables theme.json (bleu / or / blanc)
   ============================================================ */

/* --- Bouton hamburger (cache en desktop) --- */
button.menu-toggle {
    display: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0.8em;
    position: absolute;
    left: 0.5em;
    right: auto;
    top: 0;
    transform: none;
    z-index: 100;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 4px;
    background-color: var(--wp--preset--color--bleu);
    display: block;
    margin: 6px auto;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.hamburger:hover { cursor: pointer; }

#hamburger-9 {
    position: relative;
    transition: all 0.3s ease-in-out;
}
#hamburger-9.is-active { transform: rotate(45deg); }
#hamburger-9.is-active .line {
    width: 35px;
    background-color: var(--wp--preset--color--blanc);
}
#hamburger-9.is-active .line:nth-child(2) { opacity: 0; }
#hamburger-9.is-active .line:nth-child(1) { transform: translateY(13px); }
#hamburger-9.is-active .line:nth-child(3) { transform: translateY(-13px) rotate(90deg); }
button.menu-toggle.open .hamburger span.line { background-color: var(--wp--preset--color--blanc); }

/* --- Drawer header (logo + croix) : cache par defaut --- */
.menu-drawer-header { display: none; }
.menu-drawer-header .drawer-logo {
    width: 60px;
    height: auto;
    display: block;
}
.menu-close {
    background: transparent;
    border: 0;
    color: var(--wp--preset--color--blanc);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1em 0.5em;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.menu-close:hover,
.menu-close:focus { background: rgba(255,255,255,0.12); outline: none; }

/* --- Overlay du drawer ---
   N'occupe QUE la zone a droite du drawer (pas par dessus).
   Le drawer fait min(380px, 85vw) de large depuis la gauche. */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: min(380px, 85vw);
    right: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    cursor: pointer;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay {
    display: block;
    animation: algmFadeIn 0.3s ease;
}
@keyframes algmFadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ============================================================
   TABLET / MOBILE — <= 1024 px : passage en drawer lateral droit
   ============================================================ */
@media (max-width: 1024px) {

    /* Hamburger visible */
    button.menu-toggle { display: block; }

    /* Header en mode "ferme" : seul le logo central est visible.
       position:relative est crucial pour que le hamburger absolute
       soit ancre dans la barre de nav et pas dans le viewport. */
    .main-navigation:not(.toggled) {
        position: relative;
        justify-content: center;
    }
    .main-navigation:not(.toggled) > .menu-menu-principal-container,
    .main-navigation:not(.toggled) > .menu-menu-principal-2-container {
        display: none !important;
    }

    /* === Drawer ouvert (slide depuis la gauche) === */
    .main-navigation.toggled {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: min(380px, 85vw);
        height: 100vh;
        background: var(--wp--preset--color--bleu);
        z-index: 200;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-shadow: 8px 0 30px rgba(0,0,0,0.35);
        animation: algmSlideIn 0.3s ease-out;
    }
    @keyframes algmSlideIn {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }

    /* Dans le drawer : on cache le hamburger et le logo central */
    .main-navigation.toggled .menu-toggle,
    .main-navigation.toggled .custom-logo-link {
        display: none;
    }

    /* Drawer header : visible uniquement quand drawer ouvert */
    .main-navigation.toggled .menu-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.2em 1.5em;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        flex-shrink: 0;
    }

    /* Conteneurs de menus */
    .main-navigation.toggled > .menu-menu-principal-container,
    .main-navigation.toggled > .menu-menu-principal-2-container {
        display: block !important;
        width: 100%;
        border: none !important;
        padding: 0 !important;
        margin: 0;
        /* Annule le fond blanc hérité de la règle desktop pour laisser apparaître le bleu marine du drawer */
        background-color: transparent !important;
    }

    /* Listes empilees verticalement */
    .main-navigation.toggled ul {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .main-navigation.toggled li {
        float: none;
        clear: none;
        position: static;
        width: 100%;
        margin: 0;
        padding: 0;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-navigation.toggled li a {
        display: block;
        color: var(--wp--preset--color--blanc);
        padding: 1em 1.5em;
        font-size: 1rem;
        text-decoration: none;
        letter-spacing: 0.05em;
    }
    .main-navigation.toggled li a:hover,
    .main-navigation.toggled li a:focus {
        background: rgba(234,185,58,0.18);
        color: var(--wp--preset--color--or);
    }
    .main-navigation.toggled li a:after { content: ''; }

    /* Sous-menus en accordeon (toujours deplies dans le drawer) */
    .main-navigation.toggled ul ul {
        display: block;
        position: static;
        background: rgba(0,0,0,0.25);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: auto;
        min-width: 0;
        float: none;
    }
    .main-navigation.toggled ul ul li {
        padding: 0;
        margin: 0;
        text-transform: none;
        border-bottom: none;
    }
    .main-navigation.toggled ul ul li:first-child { margin-top: 0; }
    .main-navigation.toggled ul ul a {
        width: auto;
        padding: 0.7em 1.5em 0.7em 2.5em;
        color: rgba(255,255,255,0.85);
        font-size: 0.9rem;
        font-weight: 400;
        text-transform: none;
    }
    .main-navigation.toggled ul ul a:hover {
        color: var(--wp--preset--color--or);
        background: rgba(234,185,58,0.1);
    }

    /* Separateur visuel entre les deux menus */
    .main-navigation.toggled > .menu-menu-principal-2-container {
        margin-top: 0.5em;
        padding-top: 0.5em !important;
        border-top: 2px solid rgba(234,185,58,0.45) !important;
    }
}

/* ============================================================
   DESKTOP >= 1025 px : on cache le drawer/overlay/hamburger
   ============================================================ */
@media (min-width: 1025px) {
    .menu-toggle,
    .menu-drawer-header,
    .menu-overlay {
        display: none !important;
    }
    .main-navigation ul { display: block; }
}

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--bleu);
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.panel-image {
	background-position: top center;
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	background-size: cover;
	max-height: 500px;
	box-shadow: inset 3000px 0 0 0 rgba(41, 43, 64, 0.5);
  	border-color: rgba(41, 43, 64, 1);

}

.panel-image-benevoles {
	background-position: top center;
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	background-size: cover;
	max-height: 35vh;
	box-shadow: inset 3000px 0 0 0 rgba(41, 43, 64, 0.5);
  	border-color: rgba(41, 43, 64, 1);

}

.content-area-benevoles {
    margin-top: 125px;
    padding: 2em;
    background: var(--wp--preset--color--blanc);
    z-index: 999;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-shadow: 0px 0px 12px 0px rgb(32 35 70);
    -moz-box-shadow: 0px 0px 12px 0px rgb(32 35 70);
    box-shadow: 0px 0px 12px 0px rgb(32 35 70);
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

div#content {
    min-height: 100vh;
}

.content-area {
	width: 80%;
	max-width: 1200px;
	margin: 250px auto 3em;
}

.content-area-home {
	margin-top: 250px;
}

.content-area-banniere {
    margin-top: -150px; 
    padding: 2em 3em;
    background: var(--wp--preset--color--blanc); 
    z-index: 999;
    width: 85%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-shadow: 0px 0px 12px 0px rgb(32 35 70);
	-moz-box-shadow: 0px 0px 12px 0px rgb(32 35 70);
	box-shadow: 0px 0px 12px 0px rgb(32 35 70);
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.wp-block-group.socialWall {
    margin: 3em 0;
}

/*--------------------------------------------------------------
## CTC
--------------------------------------------------------------*/
.wp-block-media-text.alignwide.is-stacked-on-mobile.is-image-fill.img-gauche > .wp-block-media-text__content {
	padding-right: 0; 
}

.wp-block-media-text.alignwide.is-stacked-on-mobile.is-image-fill.img-droite > .wp-block-media-text__content,
.wp-block-media-text.alignwide.has-media-on-the-right.is-stacked-on-mobile.img-droite > .wp-block-media-text__content{
	padding-left: 0;
}
/*--------------------------------------------------------------
## Groupe text
--------------------------------------------------------------*/
.wp-block-group.groupeText {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
## Groupe Media text
--------------------------------------------------------------*/

.wp-block-media-text__content ul {
    padding: 0 0 1em 0;
    margin: 0 0 1.5em 0;
}


/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
## Event
--------------------------------------------------------------*/
.tribe-common .tribe-common-g-row {
    width: 100%;
    margin-bottom: 1em;
}

.tribe-events-calendar-list__event-wrapper.tribe-common-g-col {
    display: flex;
    align-items: baseline;
   justify-content: flex-start;
}

.tribe-events-calendar-list__event-date-tag.tribe-common-g-col.tribe_events.type-tribe_events {
	flex-basis: 5%;
	margin-right: 1.5em;
}


article.tribe-events-calendar-list__event.tribe-common-g-row.tribe-common-g-row--gutters {
	
    justify-content: flex-end;
   	flex-wrap: nowrap;
}

.tribe-events-calendar-list__event-details.tribe-common-g-col-custom {
	border-left: 3px solid var(--wp--preset--color--bleu);
	min-width: 0;
    width: 100%;
   	padding-left: var(--tec-grid-gutter-half);
    padding-right: var(--tec-grid-gutter-half);
}

.tribe-events-calendar-list__event-header.header-event-custom {
    margin-bottom: 1.5em;

}

.tribe-events-calendar-list__event-details.tribe-common-g-col-perso {
	display: flex;
	align-items: flex-start;
	padding-left: calc(var(--tec-grid-gutter) / 2);
    padding-right: calc(var(--tec-grid-gutter) / 2);
}

.tribe-events-calendar-list__event-featured-image-wrapper.tribe-common-g-col {
	flex-basis: 35%;
	 align-self: flex-start;
}

.tribe-events-calendar-list__event-featured-image {
	display: block;
    width: 100%;
    object-fit: cover;
}

/* ============================================================
   Catégorie événement — point coloré
   À ajouter dans le CSS de ton thème enfant
   ============================================================ */
 
.tec-events-calendar-list__event-categories {
    display: flex;
    align-items: center;
    margin-top: 4px;
}
 
.tec-events-calendar-list__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: inherit;
    background-color: transparent;
    padding: 0;
    border: none;
}

/* Point coloré généré via la variable CSS --cat-color */
span.tec-events-calendar-list__category-icon {
	aspect-ratio: 1;
    background-color: var(--tec-color-category-primary, #0000);
    border-radius: 25px;
    display: inline-block;
    margin-right: var(--tec-spacer-0);
    width: 14px;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
## Footer
--------------------------------------------------------------*/
.wp-block-columns.logo-partenaire {
    align-items: center;
}

footer {
	bottom: 0;
	background-color: var(--wp--preset--color--bleu);
	width: 100%;
	background-image: url(assets/img/ballon-blanc.svg);
	background-repeat: no-repeat;
	background-position: bottom right -20px;
	background-size: 300px;	
}

.zoneFooterWidget {
	display: block;
	margin: 2em 2em 0 2em;
}

/*--------------------------------------------------------------
## Footer principal — layout 3 colonnes 12,5 % / 75 % / 12,5 %
## Géré via parts/footer.html (Phase 2 — Option B).
## Les anciennes zones widget footer-widgets-1..4 ont été retirées
## (functions.php + footer-benevoles.php).
--------------------------------------------------------------*/
.zoneFooterWidget.zoneFooterWidget--main {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1em;
}

.zoneFooterWidget--main .algm-col {
	box-sizing: border-box;
}

.zoneFooterWidget--main .algm-col--left,
.zoneFooterWidget--main .algm-col--right {
	flex: 0 0 15%;
	max-width: 15%;
}

.zoneFooterWidget--main .algm-col--main {
	flex: 0 0 calc(70% - 2em);
	max-width: calc(70% - 2em);
}

.zoneFooterWidget--main .algm-col--main h2 {
	text-align: center;
}
/* Pas de barre d'accent dans le footer ni dans le shortcode missions publiques */
.zoneFooterWidget h2::after,
.algm-pub-missions h2::after {
	display: none;
}
.zoneFooterWidget h2,
.algm-pub-missions h2 {
	padding-bottom: 0;
}

/* Responsive : on empile sous 1024px et la zone réseaux remonte au-dessus */
@media only screen and (max-width: 1024px) {
	.zoneFooterWidget.zoneFooterWidget--main {
		flex-wrap: wrap;
	}
	.zoneFooterWidget--main .algm-col--left,
	.zoneFooterWidget--main .algm-col--right {
		flex: 0 0 calc(50% - 0.5em);
		max-width: calc(50% - 0.5em);
	}
	.zoneFooterWidget--main .algm-col--main {
		flex: 0 0 100%;
		max-width: 100%;
		order: -1;
	}
}

@media only screen and (max-width: 480px) {
	.zoneFooterWidget--main .algm-col--left,
	.zoneFooterWidget--main .algm-col--right {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.zoneFooterWidget h2,
.zoneFooterWidget .wp-block-heading,
.zoneFooterWidget h2[class*="has-"] {
	color: var(--wp--preset--color--blanc);
	font-size: 1.2em;
	margin-top: 0;
}

.zoneFooterWidget p, .zoneFooterWidget a {
	color: var(--wp--preset--color--blanc);
	font-size: 0.9em;
}
.zoneFooterWidget a {
	color: var(--wp--preset--color--blanc);
	text-decoration: none;
}
.zoneFooterWidget a:hover {
	color: var(--wp--preset--color--or);
}

.zoneFooterWidget ul#menu-menu-principal,
.zoneFooterWidget ul#menu-menu-footer-club,
.zoneFooterWidget ul#menu-menu-principal-2 {
	list-style: none;
	margin: 2em 0 0 0;
	padding: 0;
}

/*--------------------------------------------------------------
## Réseaux sociaux footer (Block Pattern algm-block/reseaux-sociaux)
--------------------------------------------------------------*/
.algm-reseaux-sociaux {
	margin: 0 auto;
}

.algm-reseaux-sociaux .widget-title {
	color: var(--wp--preset--color--blanc);
	margin-bottom: 1em;
}

.algm-reseaux-sociaux .wp-block-social-links {
	justify-content: center;
	gap: 1em;
}

/* Cercles 50px avec glyphe 40px centré */
.algm-reseaux-sociaux .wp-block-social-link,
.algm-reseaux-sociaux.wp-block-social-links .wp-block-social-link {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.algm-reseaux-sociaux .wp-block-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.algm-reseaux-sociaux .wp-block-social-link svg {
	width: 40px;
	height: 40px;
}

/* Cercle blanc + logo bleu marine, comme la maquette */
.algm-reseaux-sociaux .wp-block-social-link {
	background-color: var(--wp--preset--color--blanc) !important;
	transition: background-color 0.2s ease;
}

.algm-reseaux-sociaux .wp-block-social-link svg {
	fill: var(--wp--preset--color--bleu);
	transition: fill 0.2s ease;
}

/* Hover : passage en or, conformément à la charte */
.algm-reseaux-sociaux .wp-block-social-link:hover,
.algm-reseaux-sociaux .wp-block-social-link:focus-within {
	background-color: var(--wp--preset--color--or) !important;
}

.algm-reseaux-sociaux .wp-block-social-link:hover svg,
.algm-reseaux-sociaux .wp-block-social-link:focus-within svg {
	fill: var(--wp--preset--color--bleu);
}

/* Focus accessible (clavier) */
.algm-reseaux-sociaux .wp-block-social-link a:focus-visible {
	outline: 2px solid var(--wp--preset--color--or);
	outline-offset: 2px;
}

/*--------------------------------------------------------------
## Footer menu légal + site infos
--------------------------------------------------------------*/

ul#Footer-menu, ul#Benevoles-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0 0 1em 0;
    padding: 0;
}

ul#Footer-menu li, ul#Benevoles-menu li {
	padding-right: 1em;
}

ul#Footer-menu li a {
	color: var(--wp--preset--color--blanc);
	text-decoration: none;
}

ul#Footer-menu li a:after, ul#Benevoles-menu li a:after {
	content: '|';
	padding-left: 1em;
}

ul#Footer-menu li:last-child a:after, ul#Benevoles-menu li:last-child a:after {
	content: '';
	padding-left: 0;
}

.site-info {
    color: var(--wp--preset--color--blanc);
    font-size: 0.7em;
    padding-bottom: 0.3em;
    margin-top: 1.5em;
    text-align: center;
}

.site-info a {
	color: var(--wp--preset--color--blanc);
	text-decoration: none;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

/* Notebook (header un cran plus bas) */
@media screen and (max-width: 1199px) {
	header#masthead {
		height: 169px;
	}
}

/* Netbook : compactage du menu desktop */
@media only screen and (max-width: 1024px) {
	.main-navigation li {
		padding: 0 0.5em;
	}
}

/* iPad paysage */
@media only screen and (max-width: 960px) {
	header#masthead {
		height: 167px;
	}
}

/* iPad portrait */
@media only screen and (max-width: 768px) {
	header#masthead {
		height: 131px;
	}
	img.custom-logo {
		width: 115px;
		margin: 0 1em;
	}
	.panel-image {
		background-attachment: fixed;
	}
	footer {
		background-size: 150px;
	}
}

/* Phablet */
@media only screen and (max-width: 600px) {
	header#masthead {
		border-bottom: 4px solid var(--wp--preset--color--bleu);
	}
	header#masthead.site-header-benevoles {
		border-bottom: none;
	}
	.content-area-benevoles {
		margin-top: 100px;
		padding: 2em 0.5em;
		box-shadow: none;
	}
}

/* Mobile */
@media only screen and (max-width: 480px) {
	svg.iconSearch {
		fill: var(--wp--preset--color--blanc);
	}
	.content-area-banniere {
		margin-top: -100px;
		width: 90%;
	}
	.content-area {
		margin: 200px auto;
	}
	.content-area-benevoles {
		width: 100%;
	}
	footer {
		background-size: 100px;
	}
}

/* Mobile S */
@media only screen and (max-width: 425px) {
	.content-area-banniere {
		margin-top: 0px;
		width: 100%;
	}
	.zoneFooterWidget {
		margin: 2em 3em 0 3em;
	}
}

/* Mobile XS */
@media only screen and (max-width: 325px) {
	footer {
		background-size: 70px;
	}
}


/*--------------------------------------------------------------
# Patterns ALGM Basket
--------------------------------------------------------------*/

/* Carte par défaut (résultat, recrue, événement, recherche bénévole) */
.algm-card {
	padding: 1.5rem;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 6px;
}

/* Espacement vertical entre les blocs internes */
.algm-card > * + * {
	margin-top: 0.75rem;
}

/* Espacement spécifique avant les boutons */
.algm-card .wp-block-buttons {
	margin-top: 1.25rem;
}

/* Variante avec bordure or (utilisée par "Nouvelle recrue") */
.algm-card--bordered {
	border-style: solid;
	border-width: 2px;
}

/* Variante avec barre or à gauche (utilisée par "Événement") */
.algm-card--accent-or {
	border-left: 6px solid var(--wp--preset--color--or);
}

/* Variante "Call to action" plus aérée (utilisée par "Recherche bénévole") */
.algm-card--cta {
	padding: 2.5rem 2rem;
	text-align: center;
}

.algm-card--cta > * + * {
	margin-top: 1rem;
}

/* Bandeau pleine largeur (utilisé par "Sponsors / Partenaires") */
.algm-banner {
	padding: 3rem 1.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
	border-top: 1px solid #E5E5E5;
	border-bottom: 1px solid #E5E5E5;
}

.algm-banner > * + * {
	margin-top: 1.5rem;
}

/* Responsive : padding plus serré sur mobile */
@media (max-width: 600px) {
	.algm-card,
	.algm-card--cta {
		padding: 1.25rem;
	}
	.algm-banner {
		padding: 2rem 1rem;
	}
}
