/*
Theme Name: Spirit 45 Marine
Theme URI: https://www.spirit45.com/
Author: Spirit 45
Description: Thème bleu marine pour Spirit 45, la communauté des amoureux du Club Med. Conçu d'abord pour l'iPhone : barre d'onglets en bas d'écran, encoche et Dynamic Island gérées, carrousels au doigt, polices hébergées localement (RGPD), zéro jQuery.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spirit45-marine
*/

/* =========================================================================
   1. Polices (hébergées dans le thème)
   ========================================================================= */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* =========================================================================
   2. Variables
   ========================================================================= */
:root {
	--marine: #0A1F3C;
	--marine-deep: #06142A;
	--marine-soft: #13305A;
	--ocean: #1E5AA8;
	--lagon: #6FB7D6;
	--safran: #E9B44C;
	--safran-dark: #C9932B;
	--sable: #F5EFE4;
	--bg: #FBF9F5;
	--white: #FFFFFF;
	--ink: #14213A;
	--muted: #5A6780;
	--line: #E4E1DA;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(10, 31, 60, .06), 0 8px 24px rgba(10, 31, 60, .08);
	--shadow-lg: 0 20px 50px rgba(6, 20, 42, .25);

	--gutter: 16px;
	--max: 1200px;
	--header-h: 60px;
	--tabbar-h: 62px;

	/* Zones de sécurité iPhone (encoche, Dynamic Island, barre d'accueil) */
	--sat: env(safe-area-inset-top, 0px);
	--sab: env(safe-area-inset-bottom, 0px);
	--sal: env(safe-area-inset-left, 0px);
	--sar: env(safe-area-inset-right, 0px);
}
@media (min-width: 768px) {
	:root { --gutter: 28px; --header-h: 76px; }
}

/* =========================================================================
   3. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
	overflow-x: hidden; /* jamais de défilement horizontal parasite */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--sat) + 12px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	/* place pour la barre d'onglets mobile */
	padding-bottom: calc(var(--tabbar-h) + var(--sab));
}
@media (min-width: 1024px) {
	body { padding-bottom: 0; }
}
body.is-locked { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--marine); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--marine); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }

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

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-left: max(var(--gutter), var(--sal));
	padding-right: max(var(--gutter), var(--sar));
}
.wrap--narrow { max-width: 820px; }

.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: -999px; top: 0; z-index: 999; background: var(--safran); color: var(--marine); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 10px; top: calc(10px + var(--sat)); }

.icon { width: 22px; height: 22px; flex: none; }

@media (max-width: 1023px) { .hide-mobile { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

/* =========================================================================
   4. Boutons, badges
   ========================================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border-radius: 999px; border: 0;
	font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .01em;
	text-decoration: none; white-space: nowrap;
	transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--safran); color: var(--marine-deep); box-shadow: 0 6px 18px rgba(233, 180, 76, .35); }
.btn-gold:hover { background: #F2C463; color: var(--marine-deep); }
.btn-outline { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--marine); color: var(--marine); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

.badge {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: rgba(30, 90, 168, .1); color: var(--ocean);
	font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.badge:hover { background: var(--ocean); color: #fff; }

.kicker {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--safran-dark);
	margin-bottom: 10px;
}
.kicker .icon { width: 16px; height: 16px; }
.kicker--light { color: var(--safran); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: transparent; border: 0; color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* =========================================================================
   5. Entête
   ========================================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--marine);
	color: #fff;
	padding-top: var(--sat);
	transition: box-shadow .25s ease, background-color .25s ease;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.site-header { background: rgba(10, 31, 60, .92); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
}
.is-scrolled .site-header { box-shadow: 0 6px 24px rgba(6, 20, 42, .35); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	height: var(--header-h);
}

.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark:hover { color: #fff; }
.brand-logo {
	display: grid; place-items: center; flex: none;
	width: 38px; height: 38px; border-radius: 11px;
	background: linear-gradient(140deg, var(--safran), #F6D489);
	color: var(--marine-deep); font-family: var(--serif); font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--safran); font-weight: 500; margin-left: 1px; }
.brand-sub { font-size: 11.5px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; max-width: 52vw; }
.custom-logo { max-height: 44px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 4px; }

/* Menu bureau */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
	.nav-desktop { display: block; flex: 1; min-width: 0; }
	.nav-desktop .menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2px; }
	.nav-desktop .menu > li { position: relative; }
	.nav-desktop a {
		display: block; padding: 10px 14px; border-radius: 999px;
		color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
	}
	.nav-desktop .menu > li > a { padding: 10px 12px; }
	.brand-sub { display: none; }
	.nav-desktop a:hover, .nav-desktop .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, .1); }
	.nav-desktop .sub-menu {
		list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%;
		min-width: 260px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
	}
	.nav-desktop li:hover > .sub-menu, .nav-desktop li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav-desktop .sub-menu a { color: var(--ink); border-radius: 8px; }
	.nav-desktop .sub-menu a:hover { background: var(--sable); color: var(--marine); }
	.nav-desktop .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
}

/* =========================================================================
   6. Tiroir mobile & recherche
   ========================================================================= */
.drawer, .search-overlay { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 42, .55); opacity: 0; transition: opacity .25s ease; }
.drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(88vw, 400px);
	background: var(--marine); color: #fff;
	padding: calc(var(--sat) + 8px) max(20px, var(--sar)) calc(var(--sab) + 24px) 20px;
	display: flex; flex-direction: column; gap: 20px;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.drawer-title { font-family: var(--serif); font-size: 26px; font-style: italic; }

.nav-mobile .menu, .nav-mobile .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-mobile .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .1); position: relative; }
.nav-mobile a {
	display: flex; align-items: center; min-height: 54px;
	color: #fff; text-decoration: none; font-size: 19px; font-weight: 600;
	padding-right: 52px;
}
.nav-mobile .current-menu-item > a { color: var(--safran); }
.nav-mobile .sub-menu { display: none; padding: 0 0 12px 14px; border-left: 2px solid var(--safran); margin-left: 2px; }
.nav-mobile .is-open > .sub-menu { display: block; }
.nav-mobile .sub-menu a { min-height: 46px; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.submenu-toggle {
	position: absolute; right: 0; top: 5px; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); border: 0; color: #fff; display: grid; place-items: center;
	transition: transform .2s ease;
}
.is-open > .submenu-toggle { transform: rotate(180deg); }

.search-overlay {
	background: rgba(6, 20, 42, .82);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	padding-top: calc(var(--sat) + 14px);
	opacity: 0; transition: opacity .2s ease;
}
.search-overlay.is-open { opacity: 1; }
.search-box { display: flex; align-items: center; gap: 8px; }
.search-box .search-form { flex: 1; }

/* Formulaire de recherche */
.search-form {
	display: flex; align-items: center; gap: 8px;
	background: #fff; border-radius: 999px; padding: 4px 4px 4px 16px;
	box-shadow: var(--shadow);
	color: var(--muted);
}
.search-field {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
	font-family: var(--sans); font-size: 16px; /* 16px = pas de zoom auto sur iPhone */
	color: var(--ink); padding: 10px 0; -webkit-appearance: none; appearance: none;
}
.search-field:focus { border: 0; box-shadow: none; }
.search-form:focus-within { box-shadow: 0 0 0 4px rgba(233, 180, 76, .45), var(--shadow); }
.search-field::-webkit-search-cancel-button { -webkit-appearance: none; }

/* =========================================================================
   7. Barre d'onglets (mobile & tablette)
   ========================================================================= */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tabbar-h) + var(--sab));
	padding: 0 var(--sar) var(--sab) var(--sal);
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-top: 1px solid rgba(10, 31, 60, .08);
}
.tabbar a, .tabbar button {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	background: none; border: 0; color: var(--muted); text-decoration: none;
	font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.tabbar .icon { width: 24px; height: 24px; }
.tabbar .is-active { color: var(--marine); }
.tabbar .is-active .icon { color: var(--ocean); }
.tabbar a:active, .tabbar button:active { color: var(--marine); }
@media (min-width: 1024px) { .tabbar { display: none; } }

/* =========================================================================
   8. Hero d'accueil
   ========================================================================= */
.hero {
	position: relative; isolation: isolate;
	min-height: 420px;
	min-height: min(58svh, 480px);
	display: flex; align-items: flex-end;
	background: var(--marine-deep); color: #fff;
	overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(6, 20, 42, .15) 0%, rgba(6, 20, 42, 0) 30%, rgba(6, 20, 42, .55) 58%, rgba(6, 20, 42, .96) 100%);
}
.hero-content { padding-top: 90px; padding-bottom: 28px; }
.hero-title { font-size: clamp(26px, 6.8vw, 44px); color: #fff; max-width: 20ch; margin-bottom: 10px; font-weight: 600; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-excerpt { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 56ch; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-meta { font-size: 14px; color: rgba(255, 255, 255, .7); }
@media (min-width: 1024px) {
	.hero { min-height: 440px; }
	.hero-content { padding-bottom: 48px; }
	.hero::after { background: linear-gradient(90deg, rgba(6, 20, 42, .92) 0%, rgba(6, 20, 42, .55) 45%, rgba(6, 20, 42, 0) 75%), linear-gradient(0deg, rgba(6, 20, 42, .6), transparent 40%); }
}

/* =========================================================================
   9. Sections & grilles
   ========================================================================= */
.section { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .section { padding-top: 64px; padding-bottom: 64px; } }
.section--sand { background: var(--sable); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-title { font-size: clamp(25px, 6vw, 38px); margin: 0; position: relative; }
.section-title::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--safran); margin-top: 10px; }
.section-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; color: var(--ocean); }
.section-link .icon { width: 16px; height: 16px; }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Les dernières news : 1 grande carte + 3 en liste */
.news-layout { display: grid; gap: 8px; }
.news-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; }
@media (min-width: 900px) {
	.news-layout { grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: stretch; }
	.news-layout > .card .card-media { aspect-ratio: 16 / 10; }
	.news-layout > .card .card-title { font-size: 26px; }
	.news-list { display: flex; flex-direction: column; padding: 8px 22px; }
	.news-list .card--row { flex: 1; }
	.news-list .card--row .card-media { width: 120px; }
	.news-list .card--row .card-title { font-size: 19px; }
}

/* =========================================================================
   10. Cartes
   ========================================================================= */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
	.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 31, 60, .06), 0 18px 40px rgba(10, 31, 60, .14); }
	.card:hover .card-media img { transform: scale(1.04); }
}
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--marine-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta-top:empty { display: none; }
.card-title { font-size: 20px; margin: 0; line-height: 1.22; }
.card-title a { color: var(--marine); text-decoration: none; }
/* toute la carte cliquable */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .badge { position: relative; z-index: 2; }
.card-excerpt { color: var(--muted); font-size: 15.5px; margin: 0; }
.card-meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* Repli quand pas d'image */
.thumb-fallback {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	background: radial-gradient(120% 90% at 20% 10%, var(--ocean), var(--marine) 60%, var(--marine-deep));
}
.thumb-fallback span { font-family: var(--serif); font-style: italic; font-size: 34px; color: rgba(255, 255, 255, .25); }

/* Variante liste compacte */
.card--row { flex-direction: row; align-items: center; gap: 14px; background: transparent; box-shadow: none; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line); overflow: visible; }
.card--row:last-child { border-bottom: 0; }
.card--row:hover { transform: none; box-shadow: none; }
.card--row .card-media { width: 92px; aspect-ratio: 1; border-radius: 14px; flex: none; }
.card--row .card-body { padding: 0; gap: 4px; }
.card--row .card-title { font-size: 17px; }

/* Variante texte sur image */
.card--overlay { min-height: 360px; color: #fff; justify-content: flex-end; }
.card--overlay .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--overlay .card-media { z-index: 0; }
.card--overlay::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 20, 42, 0) 30%, rgba(6, 20, 42, .55) 60%, rgba(6, 20, 42, .94)); }
.card--overlay .card-body { position: relative; z-index: 2; padding: 22px; flex: 0; }
.card--overlay .card-title { font-size: clamp(22px, 5.6vw, 30px); }
.card--overlay .card-title a, .card--overlay .card-meta { color: #fff; }
.card--overlay .card-meta { opacity: .8; }
.card--overlay .badge { background: var(--safran); color: var(--marine-deep); }

.split { display: grid; gap: 8px; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: stretch; }
	.split-main .card--overlay { height: 100%; min-height: 460px; }
}

/* Carrousel au doigt */
.carousel {
	display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
	gap: 14px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
	margin-inline: calc(var(--gutter) * -1);
	padding: 4px var(--gutter) 20px;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.card--slide .card-media { aspect-ratio: 4 / 5; }
.card--slide { min-width: 0; }
@media (min-width: 640px) { .carousel { grid-auto-columns: 42%; } }
@media (min-width: 1024px) {
	.carousel { grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; margin-inline: 0; padding-inline: 0; scrollbar-width: thin; }
	.carousel::-webkit-scrollbar { display: block; height: 6px; }
	.carousel::-webkit-scrollbar-thumb { background: rgba(10, 31, 60, .25); border-radius: 6px; }
}

/* =========================================================================
   11. Bandeau forum & newsletter
   ========================================================================= */
.forum-band {
	position: relative; overflow: hidden;
	background: radial-gradient(90% 140% at 100% 0%, var(--ocean) 0%, var(--marine) 55%, var(--marine-deep) 100%);
	color: rgba(255, 255, 255, .85);
	padding: 52px 0;
}
.forum-band::before {
	content: "45"; position: absolute; right: -10px; bottom: -70px;
	font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 260px; line-height: 1;
	color: rgba(255, 255, 255, .05); pointer-events: none;
}
.forum-band-inner { position: relative; display: grid; gap: 24px; align-items: center; }
.forum-band-title { color: #fff; font-size: clamp(26px, 6.4vw, 42px); font-weight: 500; max-width: 20ch; }
.forum-band-title strong { color: var(--safran); font-weight: 700; }
.forum-band p { max-width: 58ch; margin: 0; }
@media (min-width: 900px) { .forum-band-inner { grid-template-columns: 1fr auto; gap: 48px; } .forum-band { padding: 80px 0; } }

.newsletter { padding-top: 40px; padding-bottom: 48px; }
.newsletter-card {
	display: grid; gap: 20px;
	background: var(--sable); border-radius: 24px; padding: 28px 22px;
	border: 1px solid rgba(201, 147, 43, .25);
}
.newsletter-card h2 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 8px; }
.newsletter-card p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .newsletter-card { grid-template-columns: 1fr 1fr; align-items: center; padding: 48px; gap: 48px; } }
.admin-hint { background: #fff; border: 1px dashed var(--safran-dark); border-radius: 12px; padding: 14px; font-size: 14px; }

/* Formulaires génériques (newsletter, commentaires, plugins) */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="tel"], input[type="number"], textarea, select {
	width: 100%; font-family: var(--sans); font-size: 16px; /* évite le zoom iOS */
	color: var(--ink); background: #fff;
	border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 50px;
	-webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(30, 90, 168, .15); }
input[type="submit"], button[type="submit"]:not(.btn) {
	-webkit-appearance: none; appearance: none;
	min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
	background: var(--safran); color: var(--marine-deep); font-family: var(--sans); font-weight: 700; font-size: 16px; cursor: pointer;
}
label { font-weight: 600; font-size: 14px; color: var(--marine); }
.newsletter-form p, .newsletter-form form > * { margin-bottom: 10px; }

/* =========================================================================
   12. En-têtes de pages & archives
   ========================================================================= */
.page-hero {
	background: radial-gradient(80% 140% at 100% 0%, var(--marine-soft), var(--marine) 60%);
	color: rgba(255, 255, 255, .82);
	padding: 40px 0 44px;
}
.page-title { color: #fff; font-size: clamp(30px, 8vw, 52px); margin-bottom: 10px; }
.page-desc { max-width: 60ch; }
.page-desc p:last-child { margin: 0; }
.page-hero .search-form { margin-top: 18px; max-width: 560px; }
.page-hero--404 .btn { margin-top: 22px; }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
	border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--marine); font-weight: 700; text-decoration: none;
}
.page-numbers.current { background: var(--marine); color: #fff; }
.page-numbers.dots { background: none; box-shadow: none; }

.empty { text-align: center; padding: 40px 0; }

/* =========================================================================
   13. Article
   ========================================================================= */
.article-head { background: var(--marine); color: #fff; padding: 32px 0 36px; }
.article-head--image { position: relative; isolation: isolate; padding: 0; display: flex; align-items: flex-end; min-height: min(70svh, 560px); overflow: hidden; }
.article-head-media { position: absolute; inset: 0; z-index: -2; }
.article-head-media img { width: 100%; height: 100%; object-fit: cover; }
.article-head--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 20, 42, .1) 20%, rgba(6, 20, 42, .94)); }
.article-head--image .article-head-text { padding-top: 140px; padding-bottom: 32px; }
.article-head .badge { background: var(--safran); color: var(--marine-deep); }
.article-title { max-width: 22ch; color: #fff; font-size: clamp(30px, 7.8vw, 54px); margin: 14px 0 18px; }
.article-meta { display: flex; align-items: center; gap: 12px; }
.article-meta .avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.article-meta .author { display: block; font-weight: 700; color: #fff; }
.meta-line { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.meta-line .icon { width: 15px; height: 15px; }

.article-layout { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 48px; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 720px) 320px; justify-content: space-between; padding-top: 56px; } }

/* Contenu éditorial */
.entry-content { font-size: 18px; line-height: 1.75; min-width: 0; overflow-wrap: break-word; }
.entry-content > * { max-width: 720px; }
.entry-content h2 { font-size: clamp(25px, 6vw, 32px); margin-top: 1.8em; }
.entry-content h3 { font-size: clamp(21px, 5vw, 25px); margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-caption { max-width: 100% !important; width: auto !important; }
.entry-content blockquote {
	margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--safran);
	font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--marine);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--safran-dark); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; font-size: 15px; width: 100%; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--sable); color: var(--marine); }
.entry-content iframe, .entry-content embed, .entry-content video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.video-embed { margin: 1.8em 0; }
.entry-content .wp-block-embed__wrapper iframe { aspect-ratio: auto; }
.entry-content pre { overflow-x: auto; background: var(--marine-deep); color: #fff; padding: 16px; border-radius: 12px; font-size: 14px; }
.entry-content .alignwide { max-width: 1000px; }
.entry-content .alignfull { max-width: none; margin-inline: calc(var(--gutter) * -1); }
.entry-content .aligncenter { margin-inline: auto; }
@media (min-width: 640px) {
	.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 50%; }
	.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
}
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-button__link { border-radius: 999px; background: var(--safran); color: var(--marine-deep); font-weight: 700; }

.tags { list-style: none; padding: 0 !important; margin: 2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sable); color: var(--marine); font-size: 14px; font-weight: 600; text-decoration: none; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2.2em 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share > span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }

.cta-forum {
	background: var(--marine); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 24px;
	font-size: 16px; line-height: 1.55;
}
.cta-forum strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 4px; }

/* Barre latérale */
.sidebar { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1100px) { .sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }
.widget { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); font-size: 15.5px; }
.widget-title { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--marine); text-decoration: none; font-weight: 600; }
.widget .post-date { display: block; font-size: 13px; color: var(--muted); }

/* Commentaires */
.comments { padding: 24px 0 56px; }
.comments-title, .comment-reply-title { font-size: 26px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 18px; border-left: 2px solid var(--line); margin-left: 6px; }
.comment-body { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 2px 0 8px 54px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.reply a { font-size: 14px; font-weight: 700; text-decoration: none; }
.comment-form p { margin-bottom: 14px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; -webkit-appearance: checkbox; appearance: auto; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--muted); }

/* =========================================================================
   14. Pied de page
   ========================================================================= */
.site-footer { position: relative; background: var(--marine-deep); color: rgba(255, 255, 255, .7); margin-top: 24px; }
.wave { color: var(--marine-deep); position: absolute; left: 0; right: 0; top: -38px; height: 40px; line-height: 0; }
.wave svg { width: 100%; height: 100%; }
.footer-inner { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 32px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand-mark--footer .brand-name { font-size: 28px; }
.footer-pitch { margin: 16px 0 20px; font-size: 15.5px; max-width: 44ch; }
.site-footer .widget-title { color: var(--safran); }
.site-footer .menu { list-style: none; margin: 0; padding: 0; columns: 2; gap: 20px; }
.site-footer .menu a { display: block; padding: 8px 0; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; color: inherit; }
.site-footer .widget a { color: #fff; }
.site-footer .widget li { border-color: rgba(255, 255, 255, .1); }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s ease, color .2s ease; }
.social a:hover { background: var(--safran); color: var(--marine-deep); }
.social .icon { width: 20px; height: 20px; }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 28px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.footer-legal p { margin-bottom: 8px; }
.footer-legal a { color: rgba(255, 255, 255, .75); }

/* =========================================================================
   15. Compatibilité plugins courants
   ========================================================================= */
/* Bannière cookies : remonte au-dessus de la barre d'onglets sur mobile */
@media (max-width: 1023px) {
	#cookie-notice, .cookie-notice-container, #cn-notice-text, .cli-bar-container, #cookie-law-info-bar, .cky-consent-container, .cmplz-cookiebanner, #moove_gdpr_cookie_info_bar, .wpcc-container {
		bottom: calc(var(--tabbar-h) + var(--sab)) !important;
	}
}
/* Grecaptcha badge au-dessus de la barre */
@media (max-width: 1023px) { .grecaptcha-badge { bottom: calc(var(--tabbar-h) + var(--sab) + 14px) !important; } }

@media (min-width: 1024px) and (max-width: 1279px) {
	.nav-desktop .menu > li > a { padding: 10px 9px; font-size: 14px; }
}

/* =========================================================================
   16. Vidéos YouTube (accueil)
   ========================================================================= */
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.section--marine { background: radial-gradient(100% 120% at 0% 0%, var(--marine-soft), var(--marine) 55%, var(--marine-deep)); color: rgba(255, 255, 255, .8); }
.section--marine .section-title { color: #fff; }
.section--marine .section-link { color: var(--safran); }

.yt-main { display: grid; gap: 18px; }
@media (min-width: 900px) { .yt-main { grid-template-columns: minmax(0, 1.8fr) 1fr; gap: 36px; align-items: center; } }

.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { position: absolute; inset: 0; display: block; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.yt-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 20, 42, .45)); }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); transition: transform .2s ease; }
@media (hover: hover) {
	.yt-poster:hover img { transform: scale(1.03); }
	.yt-poster:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
}
.yt-duration { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.yt-title { color: #fff; font-size: clamp(21px, 5.4vw, 30px); margin: 0 0 6px; }
.yt-date { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.yt-info .btn .icon { width: 20px; height: 20px; }

.yt-thumbs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
@media (min-width: 900px) { .yt-thumbs { grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; } }
.yt-thumb { display: block; color: #fff; text-decoration: none; }
.yt-thumb:hover { color: var(--safran); }
.yt-thumb-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--marine-soft); }
.yt-thumb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .yt-thumb:hover img { transform: scale(1.05); } }
.yt-thumb.is-current .yt-thumb-img { box-shadow: 0 0 0 3px var(--safran); }
.yt-thumb-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
