/*
Theme Name: Occitanie Média
Theme URI: https://occitaniemedia.com
Author: Occitanie Média
Description: Thème vitrine clair et aéré pour Occitanie Média : vidéo, photo et stratégie de contenu à Perpignan et dans les Pyrénées-Orientales. Sans plugin, sans service externe.
Version: 1.3.0
Requires at least: 6.3
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: occitanie-media
*/

:root {
	--bg: #ffffff;
	--bg-2: #f5f7fb;
	--text: #1b2230;
	--muted: #596273;
	--line: #e4e8ef;
	--accent: #1b2a4e;
	--accent-dark: #0f1a35;
	--accent-soft: #e9edf6;
	--accent-mid: #2d4a8a;
	--sun: #f1c58b;
	--radius: 20px;
	--maxw: 1120px;
	--shadow: 0 12px 40px rgba(20, 33, 61, .08);
	--serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h1 em { color: var(--accent-mid); font-style: italic; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-2); }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: 48px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.4rem; }
.brand b { color: var(--accent); font-weight: 400; font-style: italic; }
.custom-logo-link img { max-height: 44px; width: auto; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 10px; font: inherit; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav a.btn { color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.btn--small { padding: 9px 20px; font-size: .9rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Hero */
.hero { padding: clamp(44px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); background: #ffffff; }
.hero__grid { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
.hero .lead { font-size: 1.2rem; margin-top: 18px; }
.hero__proof { display: flex; gap: 8px 26px; flex-wrap: wrap; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero__proof li::before { content: "\2605"; color: #c58a3d; margin-right: 8px; }
.hero__media { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--bg-2); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--empty {
	background:
		radial-gradient(circle at 70% 30%, #fff6e4 0 8%, #f6d9aa 9% 15%, rgba(246, 217, 170, 0) 16%),
		linear-gradient(180deg, #d5def0 0%, #eef1f8 58%, #f6ecdc 100%);
}
.hero__media--empty::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; background: linear-gradient(180deg, #cbd8ef, #aebfe0); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* Gallery */
.gallery { padding: 0 0 clamp(56px, 8vw, 100px); }
.gallery__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery__item { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p { margin-top: 12px; }
.card__tag { display: inline-block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card__badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: .06em; }
.price { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 10px 0 4px; color: var(--text); }
.price small { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.price-card li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); border-bottom: 1px solid var(--line); }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.note { color: var(--muted); font-size: .92rem; margin-top: 24px; }

/* Portfolio */
.work { display: block; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.work__img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9edf6, #f1eadc); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover .work__img img { transform: scale(1.04); }
.work__body { padding: 18px 24px 24px; }
.work__body h3 { margin: 0; font-size: 1.1rem; }
.work__body span { color: var(--muted); font-size: .85rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 60px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; }
.step p { color: var(--muted); }

/* About */
.about { display: grid; gap: 44px; grid-template-columns: 1fr; }
.about__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 22px; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { padding: 18px 24px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.facts span { color: var(--muted); font-size: .92rem; }

/* FAQ and chips */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; }
.faq p { color: var(--muted); margin: 12px 0 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; color: var(--muted); font-size: .92rem; }

/* Form */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
	width: 100%; padding: 13px 16px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.form textarea { min-height: 150px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .88rem; }
.form .consent input { margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; max-width: 640px; border: 1px solid; }
.alert--ok { border-color: #9db0d6; background: #eef2fa; }
.alert--err { border-color: #e0a58f; background: #fbf0ea; }
.contact-info { margin-top: 26px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: .92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }

/* Pages and posts */
.entry { padding: clamp(50px, 8vw, 100px) 0; }
.entry__content { max-width: 70ch; }
.entry__content h2, .entry__content h3 { margin-top: 1.6em; }
.entry__content img, .entry__content iframe { border-radius: 14px; }

/* Responsive */
@media (min-width: 900px) {
	.hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
	.hero__media { aspect-ratio: 4 / 5; max-width: 480px; margin-left: auto; width: 100%; border-radius: 240px 240px 28px 28px; }
	.about { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
@media (max-width: 899px) {
	.nav-toggle { display: inline-block; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #fff; border-bottom: 1px solid var(--line); padding: 20px; gap: 18px; }
	.nav.is-open { display: flex; }
	.nav ul { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Blog, articles et en-têtes de page */
.page-header { padding: clamp(48px, 7vw, 90px) 0 clamp(32px, 5vw, 56px); background: #ffffff; }
.page-header h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.page-header .lead { margin-top: 16px; }
.work__body h3 { margin-top: 4px; }
.work__body p { color: var(--muted); font-size: .95rem; margin: .6em 0 0; }
.chips--links a { color: var(--muted); text-decoration: none; }
.chips--links li:hover { border-color: var(--accent); }
.chips--links li:hover a { color: var(--accent); }
.post__wrap { padding-top: 8px; padding-bottom: clamp(56px, 8vw, 100px); }
.post__image { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.post .entry__content { font-size: 1.08rem; max-width: 68ch; }
.entry__content p, .entry__content li { color: #33434d; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry__content li { margin-bottom: .4em; }
.entry__content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--muted); font-family: var(--serif); font-size: 1.2rem; }
.cta-box { margin: 48px 0 32px; padding: clamp(26px, 4vw, 40px); background: var(--bg-2); border-radius: var(--radius); max-width: 68ch; }
.cta-box h2 { font-size: 1.6rem; }
.cta-box p { color: var(--muted); }
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-numbers { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: #fff; }
.page-numbers.current, .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.entry__content h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.page-header + .section { padding-top: clamp(32px, 4vw, 56px); }

/* Portrait détouré sur fond blanc (bandeau d'accueil) */
.hero__media--portrait { background: none; box-shadow: none; border-radius: 0; aspect-ratio: auto; overflow: visible; max-width: 500px; margin-inline: auto; }
.hero__media--portrait .hero__img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
@media (min-width: 900px) {
	.hero__media--portrait { aspect-ratio: auto; max-width: 500px; margin-left: auto; border-radius: 0; }
}

.about__photo--portrait { background: none; box-shadow: none; border-radius: 0; aspect-ratio: auto; max-width: 380px; margin-inline: auto; }
.about__photo--portrait img { height: auto; object-fit: contain; mix-blend-mode: multiply; }

.hero__media--square { aspect-ratio: 1 / 1; border-radius: 20px; max-width: 520px; margin-left: auto; width: 100%; }
@media (max-width: 860px) { .hero__media--square { margin-inline: auto; border-radius: 20px; aspect-ratio: 1 / 1; } }
