/* ==========================================================================
   Grève féministe — styles du thème
   ========================================================================== */

:root {
	--violet: #9600ff;   /* violet du logo */
	--violet-dark: #7300c4; /* survols et texte sur jaune (contraste AA) */
	--pink: #ef0087;
	--pink-text: #d6007a;   /* rose assez foncé pour du texte blanc (AA) */
	--yellow: #ffe500;
	--ink: #1e1630;
	--muted: #5b536b;
	--tint: #f5efff;
	--line: #e4dbf3;
	--white: #fff;

	--font-display: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
	--font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-lg: 22px;
	--radius: 14px;
	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--gap: clamp(1.25rem, 3vw, 2rem);
	--header-h: clamp(84px, 11vw, 132px);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* Garde-fou : rien ne doit élargir la page horizontalement (clip ne gêne pas position: sticky). */
body { overflow-x: clip; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--yellow); color: var(--violet-dark); font-weight: 600;
	padding: .6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.gf-icon { width: 1em; height: 1em; flex: none; }

/* --- Boutons ------------------------------------------------------------- */
.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: .8em 1.5em; border: 0; border-radius: 999px;
	background: var(--violet); color: var(--white); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover, .wp-block-button__link:hover, .wp-element-button:hover { background: var(--violet-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--xl {
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem); padding: .6em 1.2em; text-align: center;
}

/* --- En-tête ------------------------------------------------------------- */
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--header-h); padding-block: .75rem;
}
.site-logo { display: block; }
.site-logo__img { height: var(--header-h); width: auto; }

/* Bouton menu : dans l'en-tête, puis flottant quand l'en-tête sort de l'écran. */
.menu-toggle-slot { display: block; flex: none; width: 68px; height: 68px; margin-right: -14px; }
.menu-toggle {
	position: relative; z-index: 200;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
	width: 68px; height: 68px; padding: 0; border: 0; border-radius: 16px;
	background: transparent; color: var(--violet);
	font: 700 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
	transition: color .2s, background-color .2s, box-shadow .2s;
}
.menu-toggle:hover { color: var(--violet-dark); }
.menu-toggle__bars { position: relative; width: 40px; height: 28px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after,
.menu-toggle__bars span {
	content: ""; position: absolute; left: 0; width: 100%; height: 4px;
	background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s, top .25s;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: calc(50% - 2px); }
.menu-toggle__bars::after { top: calc(100% - 4px); }

.is-floating .menu-toggle {
	position: fixed; top: 1rem;
	right: calc((100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / 2);
	background: var(--white); box-shadow: 0 6px 20px rgb(30 22 48 / .16);
	animation: gf-drop .25s ease;
}
@keyframes gf-drop { from { transform: translateY(-130%); opacity: 0; } }

.menu-is-open .menu-toggle { color: var(--yellow); background: transparent; box-shadow: none; }
.menu-is-open .menu-toggle:focus-visible { outline-color: var(--yellow); }
.menu-is-open .menu-toggle__bars::before { top: calc(50% - 2px); transform: rotate(45deg); }
.menu-is-open .menu-toggle__bars span { opacity: 0; }
.menu-is-open .menu-toggle__bars::after { top: calc(50% - 2px); transform: rotate(-45deg); }
.menu-is-open { overflow: hidden; }

/* --- Menu plein écran ---------------------------------------------------- */
.menu-overlay {
	position: fixed; inset: 0; z-index: 150;
	background: var(--violet); color: var(--white);
	overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; transition: opacity .25s ease;
}
.menu-overlay.is-open { opacity: 1; }
.menu-overlay[hidden] { display: none; }
.menu-overlay__inner {
	min-height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
	padding: 6rem var(--gutter) 3rem; text-align: center;
}
.menu-list, .menu-list .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu-list > li + li { margin-top: .35em; }
.menu-list a {
	color: var(--white); text-decoration: none;
	font-family: var(--font-display); font-size: clamp(1.75rem, 5.5vw, 3.25rem); line-height: 1.15;
}
.menu-list a:hover, .menu-list .current-menu-item > a, .menu-list .current_page_item > a { color: var(--yellow); }
.menu-list a:focus-visible { outline-color: var(--yellow); }
.menu-list .sub-menu { margin-block: .25em .5em; }
.menu-list .sub-menu a { font-family: var(--font-body); font-weight: 600; font-size: clamp(1rem, 2.5vw, 1.25rem); }
.menu-overlay .search-form { width: min(100%, 420px); }
.menu-overlay .search-form__input { background: rgb(255 255 255 / .12); color: var(--white); border-color: rgb(255 255 255 / .5); }
.menu-overlay .search-form__input::placeholder { color: rgb(255 255 255 / .8); }
.menu-overlay .search-form__btn { background: var(--yellow); color: var(--violet-dark); }
.menu-overlay .social a { color: var(--white); }
.menu-overlay .social a:hover { color: var(--yellow); }
.menu-overlay .social a:focus-visible { outline-color: var(--yellow); }

/* --- Recherche ----------------------------------------------------------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form__input {
	flex: 1; min-width: 0; font: inherit; color: var(--ink);
	padding: .7rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white);
}
.search-form__input:focus { border-color: var(--violet); outline: none; }
.search-form__btn {
	flex: none; width: 3rem; height: 3rem; border: 0; border-radius: 50%;
	display: grid; place-items: center; font-size: 1.25rem; cursor: pointer;
	background: var(--violet); color: var(--white);
}

/* --- Réseaux sociaux ----------------------------------------------------- */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; font-size: 1.6rem; color: var(--violet); border-radius: 50%; }
.social a:hover { color: var(--pink); }

/* --- Accueil ------------------------------------------------------------- */
.home-top { padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.featured { position: relative; display: block; text-decoration: none; margin-top: .5rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.featured__btn {
	position: absolute; z-index: 1; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem);
	display: inline-flex; align-items: center; gap: .45em;
	padding: .75em 1.35em; border-radius: 999px; background: var(--yellow); color: var(--violet-dark);
	font-weight: 600; font-size: clamp(.875rem, 1.4vw, 1.05rem); line-height: 1.2;
	box-shadow: 0 6px 18px rgb(30 22 48 / .25); transition: background-color .15s, transform .15s;
}
.featured__btn .gf-icon { transition: transform .2s; }
.featured:hover .featured__btn { background: var(--white); }
.featured:hover .featured__btn .gf-icon { transform: translateX(3px); }
/* Petit écran : le bouton passe sous l'image pour ne pas masquer le visuel. */
@media (max-width: 599px) {
	.featured { display: flex; flex-direction: column; }
	.featured__btn { position: static; order: 2; justify-content: center; border-radius: 0; box-shadow: none; padding: .8em 1em; }
}
.featured__img { width: 100%; transition: transform .4s ease; }
.featured:hover .featured__img { transform: scale(1.015); }
.featured:focus-visible { outline-offset: 4px; }

.section-title, .page-title {
	font-family: var(--font-display); font-weight: 400; color: var(--violet);
	font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em;
}

/* Bandes pleine largeur */
.band { padding-block: clamp(2.75rem, 7vw, 5rem); }
.band__row { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 860px) { .band__row { grid-template-columns: minmax(0, 1fr) auto; } }
.band__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .25em; }
.band__intro p { margin: 0; font-size: 1.125rem; font-weight: 500; }
.band__text { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.4; max-width: 36ch; }
.band__more { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; text-align: center; }
.band__more .gf-icon { transition: transform .2s; }
.band__more .btn:hover .gf-icon { transform: translateX(4px); }

.band--news { padding-top: 0; }

.band--newsletter { background: var(--violet); color: var(--white); }
.band--newsletter .band__action { width: min(100%, 520px); }
.band--newsletter a { color: var(--white); }
.band--newsletter :focus-visible { outline-color: var(--yellow); }

.band--toolbox { background: var(--yellow); color: var(--violet-dark); }
.band--toolbox .btn { background: var(--violet); color: var(--white); }
.band--toolbox .btn:hover { background: var(--violet-dark); }

.band--map { background: var(--pink-text); color: var(--white); }
.band--map .btn { background: var(--yellow); color: var(--violet-dark); }
.band--map .btn:hover { background: var(--white); }
.band--map :focus-visible { outline-color: var(--yellow); }

/* --- Cartes -------------------------------------------------------------- */
.cards { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem) var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 900px) { .cards--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; gap: .85rem; }
.card__media {
	aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; border-radius: var(--radius);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .card__placeholder { object-fit: contain; padding: .75rem; }
.card:hover .card__media { transform: translateY(-3px); box-shadow: 0 10px 24px rgb(150 0 255 / .18); }
.card__body { padding: 0; }
.card__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: .15rem 0 0; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; } /* carte entière cliquable */
.card:hover .card__link { color: var(--violet); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--violet); outline-offset: 6px; border-radius: var(--radius); }

.meta { font-size: .875rem; color: var(--muted); }

@media (max-width: 599px) {
	.cards--home { gap: 1rem; }
	.cards--home .card { flex-direction: row; align-items: center; gap: 1rem; }
	.cards--home .card__media { flex: 0 0 42%; border-radius: 10px; }
	.cards--home .card__title { font-size: .975rem; }
}

/* Formulaire du plugin gf-newsletter */
.gfnl-form { display: grid; gap: .85rem; }
.gfnl-label { font-size: .9rem; font-weight: 600; margin-bottom: -.4rem; }
.gfnl-form input[type="email"] {
	width: 100%; font: inherit; color: var(--ink);
	padding: .8rem 1.1rem; border: 2px solid transparent; border-radius: 999px; background: var(--white);
}
.gfnl-form input[type="email"]:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(255 229 0 / .5); }
.gfnl-form button[type="submit"] {
	font: 600 1rem/1.2 var(--font-body); padding: .85rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--yellow); color: var(--violet-dark);
}
.gfnl-form button[type="submit"]:hover { background: var(--white); }
.gfnl-form button[disabled] { opacity: .7; cursor: progress; }
.gfnl-form .cf-turnstile { min-height: 65px; }
.gfnl-notice { font-size: .8125rem; line-height: 1.5; opacity: .95; margin: 0; }
.gfnl-message { margin: 0; padding: .7rem 1rem; border-radius: var(--radius); font-weight: 500; background: rgb(255 255 255 / .15); }
.gfnl-message:empty { display: none; }
.gfnl-message.is-success { background: var(--white); color: var(--violet); }
.gfnl-message.is-error { background: var(--yellow); color: var(--ink); }
/* Champ et bouton sur une ligne quand il y a la place */
@media (min-width: 480px) {
	.band--newsletter .gfnl-form { grid-template-columns: minmax(0, 1fr) auto; }
	.band--newsletter .gfnl-form > * { grid-column: 1 / -1; }
	.band--newsletter .gfnl-form input[type="email"] { grid-column: 1; grid-row: 2; }
	.band--newsletter .gfnl-form button[type="submit"] { grid-column: 2; grid-row: 2; }
}

/* --- Pages intérieures --------------------------------------------------- */
.listing, .entry, .error-404 { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.page-header { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-header__desc { color: var(--muted); max-width: 65ch; }
.page-header .search-form { margin-top: 1rem; }
.empty { font-size: 1.125rem; }

.entry { max-width: 880px; }
.entry__header { margin-bottom: 1.5rem; }
.entry__title {
	font-family: var(--font-display); font-weight: 400; color: var(--violet);
	font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -.01em; margin-top: .25rem;
}
.entry__media { margin: 0 0 2rem; }
.entry__media img { width: 100%; border-radius: var(--radius-lg); }
.post-cats { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .9rem 0 0; padding: 0; }
.post-cats a {
	display: inline-block; padding: .3rem .85rem; border-radius: 999px;
	background: var(--tint); color: var(--violet-dark); font-size: .8125rem; font-weight: 600; text-decoration: none;
}
.post-cats a:hover { background: var(--violet); color: var(--white); }

/* Filtre par catégorie (page des articles et archives de catégorie) */
.cat-filter ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 clamp(1.75rem, 4vw, 2.5rem); padding: 0; }
.cat-filter a {
	display: inline-block; padding: .45rem 1.05rem; border: 2px solid var(--violet); border-radius: 999px;
	color: var(--violet); font-size: .9375rem; font-weight: 600; line-height: 1.3; text-decoration: none;
	transition: background-color .15s, color .15s;
}
.cat-filter a:hover { background: var(--tint); color: var(--violet-dark); }
.cat-filter a[aria-current] { background: var(--violet); color: var(--white); }

.post-navigation { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; gap: 1rem; }
@media (min-width: 700px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .nav-next { text-align: right; grid-column: 2; } }
.post-navigation a { display: block; text-decoration: none; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.post-navigation a:hover { border-color: var(--violet); }
.post-nav__label { display: block; font-size: .8125rem; color: var(--muted); }
.post-nav__title { display: block; font-weight: 600; line-height: 1.35; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
	min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; display: inline-grid; place-items: center;
	border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500;
}
.pagination .page-numbers.current { background: var(--violet); border-color: var(--violet); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--violet); color: var(--violet); }

.error-404 { text-align: center; }
.error-404 .search-form { margin: 1.5rem auto; }
.error-404__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--pink); margin: 0; }

/* --- Page avec barre latérale ------------------------------------------ */
.with-sidebar { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.entry--side { max-width: none; padding: 0; margin: 0; }
@media (min-width: 960px) {
	.with-sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (min-width: 960px) and (min-height: 720px) {
	.sidebar { position: sticky; top: 6.5rem; } /* seulement si la colonne tient dans l'écran */
}
.sidebar { display: grid; gap: 1.25rem; }
.side-card { border-radius: var(--radius-lg); padding: 1.5rem; }
.side-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: .35em; }
.side-card p { margin: 0 0 1rem; }
.side-card--newsletter { background: var(--violet); color: var(--white); }
.side-card--newsletter a { color: var(--white); }
.side-card--newsletter :focus-visible { outline-color: var(--yellow); }
.side-card--newsletter .gfnl-form button[type="submit"] { width: 100%; }
.side-card--social { background: var(--tint); }
.side-card--social .side-card__title { color: var(--violet); }
.social--side { justify-content: flex-start; margin-left: -.5rem; }

/* --- Contenu éditorial (Gutenberg) -------------------------------------- */
.prose { font-size: 1.0938rem; }
.prose > * { max-width: 70ch; }
.prose > .alignwide, .prose > .alignfull, .prose > figure, .prose > .wp-block-image, .prose > .wp-block-embed,
.prose > .wp-block-gallery, .prose > .wp-block-columns, .prose > .wp-block-table, .prose > .wp-block-cover { max-width: none; }
.prose h2 { font-family: var(--font-display); font-weight: 400; color: var(--violet); font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.75em; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.5em; }
.prose h4 { font-size: 1.1rem; font-weight: 700; margin-top: 1.25em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li + li { margin-top: .3em; }
.prose li::marker { color: var(--pink); }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption, .wp-element-caption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.prose blockquote, .wp-block-quote {
	margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 5px solid var(--pink);
	font-size: 1.15rem; font-weight: 500;
}
.prose blockquote cite { display: block; font-size: .9rem; font-style: normal; color: var(--muted); margin-top: .5rem; }
.prose hr { border: 0; height: 4px; width: 80px; background: var(--yellow); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-table { overflow-x: auto; }
.prose iframe { max-width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
@media (min-width: 1000px) { .alignwide { width: min(1100px, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); } }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.has-text-align-center { text-align: center; }
.page-links { margin-top: 2rem; display: flex; gap: .5rem; }

/* Commentaires */
.comments { margin-top: 3rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; font: inherit; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: var(--radius);
}

/* --- Pied de page -------------------------------------------------------- */
.site-footer { background: var(--violet); color: var(--white); }
.site-footer__inner {
	display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
	padding-block: clamp(2.5rem, 6vw, 3.5rem); text-align: center;
}
.site-footer__logo img { width: 240px; }
.site-footer .social a { color: var(--white); }
.site-footer .social a:hover { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.site-footer__legal { font-size: .875rem; }
.site-footer__legal p { margin: 0 0 .35rem; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: var(--white); }
.footer-menu a:hover { color: var(--yellow); }

/* --- Mouvement réduit ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.featured:hover .featured__img { transform: none; }
}

/* Barre d'administration WordPress */
.is-floating .admin-bar .menu-toggle { top: calc(32px + 1rem); }
@media (max-width: 782px) { .is-floating .admin-bar .menu-toggle { top: calc(46px + .75rem); } }
