/*
Theme Name: Odyssey Club
Theme URI: https://odysseyclub.fr/
Author: Oscar SEO
Author URI: https://oscar-seo.ai/
Description: Thème blog sur mesure pour Odyssey Club, Travel Planner. Reprend la charte du site principal : logo boussole, rouge #FF1D1D, crème #FEF9EC, bordeaux #8E0707, polices Playfair Display, Roboto et Kaushan Script (auto-hébergées).
Version: 1.0.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: odyssey-club
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Variables (charte odysseyclub.fr)
   ========================================================================== */
:root {
	--oc-red: #ff1d1d;
	--oc-red-hover: #a10b0b;
	--oc-burgundy: #8e0707;
	--oc-cream: #fef9ec;
	--oc-cream-2: #f8f0dc;
	--oc-sand: #cfcbb2;
	--oc-ink: #000;
	--oc-ink-soft: #211e1e;
	--oc-muted: #5c5650;

	--oc-font-title: "Playfair Display", "Playfair Display Placeholder", Georgia, serif;
	--oc-font-body: "Roboto", "Roboto Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
	--oc-font-script: "Kaushan Script", "Brush Script MT", cursive;

	--oc-radius: 2px;
	--oc-container: 1200px;
	--oc-content: 760px;
	--oc-gutter: clamp(16px, 4vw, 40px);
	--oc-header-h: 88px;
	--oc-ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--oc-cream);
	color: var(--oc-ink);
	font-family: var(--oc-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--oc-red); text-decoration: none; transition: color .2s var(--oc-ease); }
a:hover { color: var(--oc-red-hover); }
:focus-visible { outline: 2px solid var(--oc-red); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--oc-font-title);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 .6em;
	color: var(--oc-ink);
}

::selection { background: var(--oc-red); color: var(--oc-cream); }

.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:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 12px; left: 12px; z-index: 1000;
	padding: 12px 20px; background: var(--oc-red); color: var(--oc-cream);
}

.oc-container { width: 100%; max-width: calc(var(--oc-container) + var(--oc-gutter) * 2); margin: 0 auto; padding: 0 var(--oc-gutter); }

/* ==========================================================================
   3. Boutons & liens (identiques au site : 2px de rayon, Roboto 500 18px)
   ========================================================================== */
.oc-btn,
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button.oc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 12px 24px;
	border: 1px solid var(--oc-red);
	border-radius: var(--oc-radius);
	background: var(--oc-red);
	color: var(--oc-cream);
	font-family: var(--oc-font-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s var(--oc-ease), color .25s var(--oc-ease), border-color .25s var(--oc-ease), transform .25s var(--oc-ease);
}
.oc-btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover {
	background: var(--oc-red-hover);
	border-color: var(--oc-red-hover);
	color: var(--oc-cream);
	transform: translateY(-1px);
}
.oc-btn--outline,
.is-style-oc-outline .wp-block-button__link,
.is-style-outline .wp-block-button__link {
	background: var(--oc-cream);
	color: var(--oc-red);
	border-color: var(--oc-red);
}
.oc-btn--outline:hover,
.is-style-oc-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
	background: var(--oc-red);
	color: var(--oc-cream);
	border-color: var(--oc-red);
}
.oc-btns { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; }

.oc-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 500; color: var(--oc-red);
}
.oc-link svg { width: 18px; height: 18px; transition: transform .25s var(--oc-ease); }
.oc-link:hover svg { transform: translateX(4px); }

.oc-kicker {
	display: inline-block;
	font-family: var(--oc-font-title);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--oc-red);
	margin-bottom: 10px;
}

/* Titres en duo : Playfair 800 + Kaushan Script (signature du site) */
.oc-duo { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 0 24px; color: var(--oc-red); }
.oc-duo__main {
	font-family: var(--oc-font-title);
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.2;
	letter-spacing: .02em;
}
.oc-duo__script {
	font-family: var(--oc-font-script);
	font-weight: 400;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.2;
}
h1.oc-duo .oc-duo__main { font-size: clamp(34px, 4.6vw, 50px); }

/* Séparateur à étoiles */
.oc-stars {
	display: flex; align-items: center; gap: 18px;
	max-width: var(--oc-container); margin: 0 auto; padding: 0 var(--oc-gutter);
	color: var(--oc-red);
}
.oc-stars span { flex: 1; height: 1px; background: currentColor; opacity: .8; }
.oc-stars svg { width: 26px; height: 26px; flex: none; }

/* ==========================================================================
   4. En-tête (menu gauche · logo centré · menu droite)
   ========================================================================== */
.oc-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--oc-cream) 94%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: box-shadow .3s var(--oc-ease);
}
.admin-bar .oc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .oc-header { top: 0; } }
.oc-header.is-scrolled { box-shadow: 0 1px 0 var(--oc-sand); }

.oc-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: calc(var(--oc-container) + var(--oc-gutter) * 2);
	min-height: var(--oc-header-h);
	margin: 0 auto;
	padding: 12px var(--oc-gutter);
}
.oc-header__brand { display: flex; justify-content: center; }
.oc-logo, .custom-logo-link { display: block; color: var(--oc-red); }
.oc-logo__svg { width: 61px; height: 60px; }
.custom-logo { max-height: 64px; width: auto; }

.oc-nav__list { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; }
.oc-nav--right .oc-nav__list { justify-content: flex-end; }
.oc-nav__link,
.oc-nav .menu-item > a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-family: var(--oc-font-body);
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--oc-red);
}
.oc-nav__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--oc-ease);
}
.oc-nav__link:hover::after,
.current-menu-item > .oc-nav__link::after,
.current_page_item > .oc-nav__link::after,
.current-menu-ancestor > .oc-nav__link::after { transform: scaleX(1); }

/* sous-menus */
.oc-nav .menu-item { position: relative; }
.oc-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px;
	margin: 0; padding: 10px 16px; list-style: none;
	background: var(--oc-cream); border: 1px solid var(--oc-sand); border-radius: var(--oc-radius);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s var(--oc-ease);
}
.oc-nav .menu-item:hover > .sub-menu,
.oc-nav .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.oc-nav .sub-menu a { text-transform: none; font-size: 15px; }

.oc-burger {
	display: none;
	width: 44px; height: 44px; padding: 10px;
	border: 0; background: none; color: var(--oc-red); cursor: pointer;
	justify-self: end;
}
.oc-burger svg { width: 24px; height: 24px; }
.oc-burger__close { display: none; }
.oc-burger[aria-expanded="true"] .oc-burger__open { display: none; }
.oc-burger[aria-expanded="true"] .oc-burger__close { display: block; }

.oc-drawer {
	position: fixed; inset: var(--oc-header-h) 0 0 0; z-index: 99;
	padding: 32px var(--oc-gutter);
	background: var(--oc-cream);
	overflow-y: auto;
}
.oc-drawer .oc-nav__list { flex-direction: column; gap: 0; }
.oc-drawer .oc-nav__link { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--oc-sand); }
.oc-drawer .oc-nav__link::after { display: none; }
.oc-drawer .oc-btn { margin-top: 32px; width: 100%; }
.oc-drawer .sub-menu { list-style: none; padding-left: 16px; }

@media (max-width: 960px) {
	:root { --oc-header-h: 76px; }
	.oc-header__inner { grid-template-columns: 44px 1fr 44px; }
	.oc-header__inner > .oc-nav { display: none; }
	.oc-header__brand { grid-column: 2; }
	.oc-burger { display: block; grid-column: 3; }
	.oc-logo__svg { width: 52px; height: 51px; }
}
body.oc-drawer-open { overflow: hidden; }

/* ==========================================================================
   5. Bannière du blog
   ========================================================================== */
.oc-hero {
	position: relative;
	display: grid; place-items: center;
	min-height: clamp(420px, 68vh, 680px);
	padding: clamp(48px, 8vw, 80px) var(--oc-gutter);
	overflow: hidden;
	text-align: center;
	isolation: isolate;
}
.oc-hero__bg {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
}
.oc-hero--image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse at center, rgba(254, 249, 236, .82) 0%, rgba(254, 249, 236, .55) 45%, rgba(254, 249, 236, 0) 80%);
}
.oc-hero__compass {
	position: absolute; z-index: -1;
	width: min(620px, 90vw); height: auto;
	color: var(--oc-red); opacity: .07;
	left: 50%; top: 50%; transform: translate(-50%, -50%);
	animation: oc-spin 120s linear infinite;
}
@keyframes oc-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.oc-hero__content { max-width: 820px; }
.oc-hero__kicker {
	max-width: 420px; margin: 0 auto 18px;
	font-family: var(--oc-font-script);
	font-size: 20px; line-height: 1.3;
	color: var(--oc-red);
}
.oc-hero__title { display: flex; flex-direction: column; margin: 0 0 24px; color: var(--oc-red); }
.oc-hero__title .oc-duo__script { font-size: clamp(36px, 5vw, 56px); }
.oc-hero__title .oc-duo__main {
	font-family: var(--oc-font-title); font-weight: 800;
	font-size: clamp(38px, 6vw, 64px);
	text-transform: uppercase; letter-spacing: .06em;
}
.oc-hero__text { max-width: 620px; margin: 0 auto 32px; font-size: 18px; color: var(--oc-ink-soft); }

/* ==========================================================================
   6. En-têtes de page & sections
   ========================================================================== */
.oc-page-head { padding: 56px var(--oc-gutter) 24px; text-align: center; }
.oc-page-head__desc { max-width: 680px; margin: 0 auto; color: var(--oc-ink-soft); }
.oc-page-head__search { max-width: 520px; margin: 24px auto 0; }

.oc-section { padding: clamp(48px, 7vw, 96px) 0; }
.oc-section__head { margin-bottom: 32px; }

.oc-breadcrumbs { margin-bottom: 24px; font-size: 13px; color: var(--oc-muted); }
.oc-breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.oc-breadcrumbs li:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--oc-red); }
.oc-breadcrumbs a { color: var(--oc-muted); }
.oc-breadcrumbs a:hover { color: var(--oc-red); }
.oc-breadcrumbs [aria-current] { color: var(--oc-ink); }

/* Pastilles catégories */
.oc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 48px; }
.oc-chip {
	padding: 8px 16px;
	border: 1px solid var(--oc-red); border-radius: var(--oc-radius);
	font-size: 14px; text-transform: uppercase; color: var(--oc-red);
	transition: all .2s var(--oc-ease);
}
.oc-chip:hover, .oc-chip.is-active { background: var(--oc-red); color: var(--oc-cream); }

/* ==========================================================================
   7. Grille & cartes
   ========================================================================== */
.oc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 32px;
}
@media (max-width: 1024px) { .oc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .oc-grid { grid-template-columns: 1fr; gap: 40px; } }

.oc-card { display: flex; flex-direction: column; }
.oc-card__media {
	position: relative; display: block;
	aspect-ratio: 3 / 2; overflow: hidden;
	border-radius: var(--oc-radius);
	background: var(--oc-cream-2);
}
.oc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--oc-ease); }
.oc-card:hover .oc-card__media img { transform: scale(1.05); }
.oc-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--oc-red); }
.oc-card__placeholder svg { width: 72px; opacity: .5; }
.oc-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.oc-card__title { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
.oc-card__title a { color: var(--oc-ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--oc-ease), color .2s; }
.oc-card__title a:hover { color: var(--oc-red); background-size: 100% 1px; }
.oc-card__excerpt { color: var(--oc-ink-soft); font-size: 16px; }
.oc-card__excerpt p { margin: 0 0 16px; }
.oc-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--oc-sand); }

.oc-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--oc-muted); }
.oc-meta svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.oc-meta__read { display: inline-flex; align-items: center; }

/* carte à la une */
.oc-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.oc-card--featured .oc-card__media { aspect-ratio: 4 / 3; }
.oc-card--featured .oc-card__body { padding-top: 0; }
.oc-card--featured .oc-card__title { font-size: clamp(26px, 3vw, 36px); }
.oc-card--featured .oc-card__excerpt { font-size: 17px; }
@media (max-width: 860px) { .oc-card--featured { grid-template-columns: 1fr; gap: 20px; } }

/* pagination */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--oc-red); border-radius: var(--oc-radius);
	font-family: var(--oc-font-title); font-weight: 700; color: var(--oc-red);
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--oc-red); color: var(--oc-cream); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   8. Article
   ========================================================================== */
.oc-article__head { max-width: 880px; margin: 0 auto; padding: 56px var(--oc-gutter) 32px; text-align: center; }
.oc-article__title {
	font-size: clamp(32px, 4.6vw, 50px);
	line-height: 1.15;
	letter-spacing: .01em;
	color: var(--oc-red);
	margin-bottom: 20px;
}
.oc-article__lead { max-width: 680px; margin: 0 auto 24px; font-family: var(--oc-font-title); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--oc-ink-soft); }
.oc-article__byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--oc-muted); }
.oc-article__author { font-weight: 500; color: var(--oc-ink); }

.oc-article__cover { max-width: calc(1100px + var(--oc-gutter) * 2); margin: 0 auto 56px; padding: 0 var(--oc-gutter); }
.oc-article__cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--oc-radius); }
.oc-article__cover figcaption { margin-top: 10px; font-size: 13px; font-style: italic; text-align: center; color: var(--oc-muted); }

.oc-article__content,
.oc-article__foot { max-width: calc(var(--oc-content) + var(--oc-gutter) * 2); margin: 0 auto; padding: 0 var(--oc-gutter); }

/* ---- Typographie du contenu ---- */
.entry-content { font-size: 17px; line-height: 1.75; color: var(--oc-ink-soft); }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 {
	margin-top: 2.2em; margin-bottom: .7em;
	font-size: clamp(26px, 3vw, 32px);
	line-height: 1.2;
	letter-spacing: .08em;
	color: var(--oc-red);
}
.entry-content h3 { margin-top: 1.8em; margin-bottom: .6em; font-size: clamp(20px, 2.2vw, 24px); color: var(--oc-ink); }
.entry-content h4 { margin-top: 1.6em; font-size: 19px; }
.entry-content h5, .entry-content h6 { font-family: var(--oc-font-title); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oc-red); }
.entry-content h2.is-style-oc-script,
.entry-content h3.is-style-oc-script,
.is-style-oc-script { font-family: var(--oc-font-script); font-weight: 400; letter-spacing: 0; color: var(--oc-red); }

.entry-content a:not(.wp-block-button__link) {
	color: var(--oc-red);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.entry-content a:not(.wp-block-button__link):hover { color: var(--oc-red-hover); }
.entry-content strong { color: var(--oc-ink); font-weight: 700; }

.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content ul li::marker { color: var(--oc-red); }
.entry-content ol li::marker { color: var(--oc-red); font-family: var(--oc-font-title); font-weight: 700; }

/* listes à coches / croix (comme les formules) */
.is-style-oc-check, .is-style-oc-cross { list-style: none; padding-left: 0 !important; }
.is-style-oc-check li, .is-style-oc-cross li { position: relative; padding-left: 34px; }
.is-style-oc-check li::before,
.is-style-oc-cross li::before {
	content: ""; position: absolute; left: 0; top: .2em;
	width: 20px; height: 20px;
	background: var(--oc-red);
	-webkit-mask: var(--oc-mask) center / contain no-repeat;
	mask: var(--oc-mask) center / contain no-repeat;
}
.is-style-oc-check li::before { --oc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12.5c1.6-.4 3.4 1.6 5.6 5.4C10.8 10.5 15.8 4.6 22 2c-4.6 4.2-9 10.8-12.6 20-1 .1-1.6 0-2.4-.4C5.8 17.6 4.2 14.4 2 12.5z'/%3E%3C/svg%3E"); }
.is-style-oc-cross li::before { --oc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l16 16M20 4 4 20' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); background: var(--oc-sand); }

/* citations : guillemets façon avis clients */
.entry-content blockquote,
.wp-block-quote {
	position: relative;
	margin: 2.2em 0;
	padding: 8px 0 8px 64px;
	border: 0;
	font-family: var(--oc-font-title);
	font-style: italic;
	font-size: 21px;
	line-height: 1.55;
	color: var(--oc-ink);
}
.entry-content blockquote::before,
.wp-block-quote::before {
	content: ""; position: absolute; left: 0; top: 10px;
	width: 40px; height: 28px; background: var(--oc-red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M0 28V16C0 6.6 4.7 1.3 14 0l1.4 3.4C10.6 5 8.2 8 8 12h7v16H0zm22 0V16C22 6.6 26.7 1.3 36 0l1.4 3.4C32.6 5 30.2 8 30 12h7v16H22z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M0 28V16C0 6.6 4.7 1.3 14 0l1.4 3.4C10.6 5 8.2 8 8 12h7v16H0zm22 0V16C22 6.6 26.7 1.3 36 0l1.4 3.4C32.6 5 30.2 8 30 12h7v16H22z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry-content blockquote p:last-of-type { margin-bottom: 0; }
.entry-content blockquote cite,
.wp-block-quote cite { display: block; margin-top: 12px; font-family: var(--oc-font-body); font-style: normal; font-size: 14px; font-weight: 500; color: var(--oc-red); }

.wp-block-pullquote { border-top: 1px solid var(--oc-red); border-bottom: 1px solid var(--oc-red); padding: 32px 0; text-align: center; }
.wp-block-pullquote blockquote { padding: 0; }
.wp-block-pullquote blockquote::before { display: none; }
.wp-block-pullquote p { font-family: var(--oc-font-script); font-style: normal; font-size: clamp(24px, 3vw, 32px); color: var(--oc-red); }

.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: var(--oc-radius); }
.entry-content figcaption,
.wp-element-caption { margin-top: 8px; font-size: 13px; font-style: italic; text-align: center; color: var(--oc-muted); }

.entry-content hr,
.wp-block-separator { border: 0; border-top: 1px solid var(--oc-red); margin: 3em auto; opacity: .8; }
.wp-block-separator.is-style-oc-stars {
	position: relative; overflow: visible; max-width: 100%;
	border: 0; height: 26px; opacity: 1;
	background: linear-gradient(var(--oc-red), var(--oc-red)) 0 50% / calc(50% - 26px) 1px no-repeat,
		linear-gradient(var(--oc-red), var(--oc-red)) 100% 50% / calc(50% - 26px) 1px no-repeat;
}
.wp-block-separator.is-style-oc-stars::before {
	content: ""; position: absolute; left: 50%; top: 0; width: 26px; height: 26px; transform: translateX(-50%);
	background: var(--oc-red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l1.7 10.3L24 12l-10.3 1.7L12 24l-1.7-10.3L0 12l10.3-1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l1.7 10.3L24 12l-10.3 1.7L12 24l-1.7-10.3L0 12l10.3-1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.entry-content table,
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--oc-sand); text-align: left; }
.entry-content th,
.entry-content thead td { font-family: var(--oc-font-title); font-weight: 700; color: var(--oc-red); border-bottom: 1px solid var(--oc-red); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--oc-cream-2); }
.wp-block-table.is-style-stripes { border: 0; }

.entry-content code, .entry-content kbd { padding: 2px 6px; background: var(--oc-cream-2); border-radius: var(--oc-radius); font-size: .9em; }
.entry-content pre { padding: 20px; overflow-x: auto; background: var(--oc-ink-soft); color: var(--oc-cream); border-radius: var(--oc-radius); }

.entry-content details,
.wp-block-details {
	margin-bottom: 12px; padding: 20px 24px;
	border: 1px solid var(--oc-sand); border-radius: var(--oc-radius); background: #fff8;
}
.wp-block-details summary {
	cursor: pointer; list-style: none; position: relative; padding-right: 32px;
	font-family: var(--oc-font-title); font-weight: 800; font-size: 18px; color: var(--oc-ink);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
	border-right: 2px solid var(--oc-ink); border-bottom: 2px solid var(--oc-ink);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details[open] summary { margin-bottom: 12px; }

.entry-content .alignwide { max-width: 1100px; margin-left: calc(50% - min(550px, 50vw - var(--oc-gutter))); margin-right: calc(50% - min(550px, 50vw - var(--oc-gutter))); width: auto; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .alignleft, .alignright { float: none; margin: 0 0 1.4em; } }

.wp-block-cover { border-radius: var(--oc-radius); }
.wp-block-image.is-style-rounded img { border-radius: 999px; }

/* Encart CTA (motif) */
.oc-cta-box {
	margin: 3em 0; padding: 40px 32px;
	background: var(--oc-cream-2); border: 1px solid var(--oc-red); border-radius: var(--oc-radius);
	text-align: center;
}
.oc-cta-box h2 { margin-top: 0; letter-spacing: 0; }

.oc-page-links { margin: 2em 0; display: flex; gap: 8px; align-items: center; }

/* Pied d'article */
.oc-article__foot { padding-top: 24px; padding-bottom: 32px; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.oc-tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--oc-sand); border-radius: var(--oc-radius); font-size: 13px; color: var(--oc-ink-soft); }
.oc-tags a::before { content: "#"; color: var(--oc-red); }
.oc-tags a:hover { border-color: var(--oc-red); color: var(--oc-red); }

.oc-author {
	display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: start;
	padding: 32px; border-top: 1px solid var(--oc-red); border-bottom: 1px solid var(--oc-red);
}
.oc-author__photo img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.oc-author__mark { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 1px solid var(--oc-red); color: var(--oc-red); }
.oc-author__mark svg { width: 56px; }
.oc-author__script { margin: 0; font-family: var(--oc-font-script); font-size: 22px; color: var(--oc-red); }
.oc-author__name { margin: 0 0 8px; font-family: var(--oc-font-title); font-weight: 800; font-size: 24px; }
.oc-author__body p:not([class]) { margin: 0 0 12px; color: var(--oc-ink-soft); }
@media (max-width: 560px) { .oc-author { grid-template-columns: 1fr; text-align: center; padding: 28px 0; } .oc-author__photo { justify-self: center; } }

.oc-after-post { margin-top: 40px; }
.widget-title { font-size: 22px; color: var(--oc-red); }

.oc-related { background: var(--oc-cream-2); }

/* ==========================================================================
   9. Commentaires & formulaires
   ========================================================================== */
.oc-comments { max-width: calc(var(--oc-content) + var(--oc-gutter) * 2); margin: 0 auto; padding: 64px var(--oc-gutter); }
.oc-comments__title { font-size: 26px; color: var(--oc-red); }
.oc-comments__list, .oc-comments__list .children { list-style: none; padding: 0; margin: 0; }
.oc-comments__list .children { padding-left: 32px; }
.oc-comments__list .comment-body { padding: 24px 0; border-bottom: 1px solid var(--oc-sand); }
.comment-author { display: flex; align-items: center; gap: 12px; font-family: var(--oc-font-title); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--oc-muted); }
.reply a { font-size: 14px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea, select {
	width: 100%; padding: 12px 16px;
	border: 1px solid var(--oc-sand); border-radius: var(--oc-radius);
	background: #fff; color: var(--oc-ink);
	font: inherit; font-size: 16px;
	transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--oc-red); box-shadow: 0 0 0 3px rgba(255, 29, 29, .15); }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.comment-form p { margin: 0 0 18px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

.oc-search { position: relative; display: flex; }
.oc-search__field { padding-right: 56px; }
.oc-search__submit {
	position: absolute; right: 0; top: 0; bottom: 0; width: 52px;
	display: grid; place-items: center;
	border: 0; background: none; color: var(--oc-red); cursor: pointer;
}
.oc-search__submit svg { width: 22px; height: 22px; }

.oc-empty { max-width: 560px; margin: 0 auto; text-align: center; }

/* ==========================================================================
   10. 404
   ========================================================================== */
.oc-404 { max-width: 640px; margin: 0 auto; padding: 96px var(--oc-gutter); text-align: center; }
.oc-404__compass { width: 96px; margin: 0 auto 24px; color: var(--oc-red); animation: oc-wobble 6s ease-in-out infinite; }
@keyframes oc-wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }
.oc-404 .oc-search { margin: 24px 0 32px; }

/* ==========================================================================
   11. Bandeau contact
   ========================================================================== */
.oc-cta { padding: 72px 0 96px; }
.oc-cta__inner { max-width: 720px; margin: 64px auto 0; padding: 0 var(--oc-gutter); text-align: center; }
.oc-cta__inner p { margin: 0 auto 32px; max-width: 600px; color: var(--oc-ink-soft); }

/* ==========================================================================
   12. Pied de page (bordeaux #8E0707)
   ========================================================================== */
.oc-footer { background: var(--oc-burgundy); color: var(--oc-cream); font-size: 14px; }
.oc-footer a { color: var(--oc-cream); }
.oc-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.oc-footer__inner {
	display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 48px;
	max-width: calc(var(--oc-container) + var(--oc-gutter) * 2);
	margin: 0 auto; padding: 56px var(--oc-gutter) 40px;
}
.oc-footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--oc-font-title); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.oc-footer__brand:hover { text-decoration: none !important; }
.oc-footer__mark { width: 36px; height: 36px; color: var(--oc-cream); }
.oc-footer__about p { max-width: 420px; margin: 0; line-height: 1.6; }
.oc-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.oc-footer__list a { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.oc-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.oc-social { display: flex; gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.oc-social a { display: grid; place-items: center; width: 34px; height: 34px; }
.oc-social svg { width: 26px; height: 26px; }
.oc-social a:hover { opacity: .75; }
.oc-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px;
	max-width: calc(var(--oc-container) + var(--oc-gutter) * 2);
	margin: 0 auto; padding: 20px var(--oc-gutter) 28px;
	border-top: 1px solid rgba(254, 249, 236, .25);
	font-size: 13px;
}
.oc-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.oc-footer__legal { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.oc-footer__legal li + li::before { content: "—"; margin-right: 12px; }
@media (max-width: 860px) {
	.oc-footer__inner { grid-template-columns: 1fr 1fr; }
	.oc-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.oc-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   13. Apparition au défilement
   ========================================================================== */
.oc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--oc-ease), transform .7s var(--oc-ease); }
.oc-reveal.is-visible { opacity: 1; transform: none; }

/* WordPress core */
.sticky .oc-card__title a::after { content: " ★"; color: var(--oc-red); }
.bypostauthor > .comment-body .fn::after { content: " · autrice"; font-weight: 400; font-size: 13px; color: var(--oc-red); }
.gallery-caption, .wp-caption-text { font-size: 13px; }
.wp-caption { max-width: 100%; }
