/*
Theme Name: Sunlight Wedding
Theme URI: https://sunlightwedding.com
Author: Sunlight Wedding
Description: Thème du blog « Le Journal » reproduisant fidèlement l'identité du site Sunlight Wedding (couleurs, polices, logo, navigation et pied de page) pour une transition invisible depuis le site principal. Interface en français.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
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: sunlight-wedding
Tags: blog, wedding, elegant, minimal, translation-ready
*/

/* =========================================================================
   Couleurs exactes prélevées sur le site (valeurs HSL, comme la source).
   ========================================================================= */
:root {
	--background:  40 20% 98%;   /* fond crème */
	--foreground:  0 0% 10%;     /* texte */
	--primary:     204 54% 50%;  /* bleu (onglet actif, bouton email) */
	--secondary:   172 18% 53%;  /* vert sauge (bouton WhatsApp) */
	--accent:      35 56% 65%;   /* doré (intitulés du pied de page) */
	--muted:       24 24% 54%;   /* brun doux */
	--border:      40 15% 90%;   /* filets / séparateurs */

	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--container: 1200px;
	--header-h: 88px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: hsl(var(--primary)); text-decoration: none; transition: color .3s ease; }
a:hover { color: hsl(var(--foreground)); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.2;
	color: hsl(var(--foreground));
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.25em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: hsl(var(--foreground)); color: #fff;
	padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =========================================================================
   En-tête  (robuste : ne casse jamais, logo ou titre long)
   ========================================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: hsla(var(--background), .92);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid hsl(var(--border));
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	min-height: var(--header-h);
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Marque : logo image OU titre texte, largeur bornée, passe à la ligne */
.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;                 /* autorise le rétrécissement */
	max-width: 100%;
	flex: 0 1 auto;
}
.site-branding a { display: inline-flex; align-items: center; max-width: 100%; }
.site-logo img {
	height: 52px;
	width: auto;
	max-width: 320px;
	object-fit: contain;
}
.site-title-text {
	font-family: var(--font-heading);
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	font-weight: 500;
	letter-spacing: .01em;
	color: hsl(var(--foreground));
	margin: 0;
	max-width: 60vw;              /* borne la largeur du titre */
	overflow-wrap: anywhere;      /* un titre long passe à la ligne */
	line-height: 1.15;
}

/* Navigation */
.main-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 28px;
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
}
.main-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 10px 28px;
}
.main-nav a {
	position: relative;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: .82rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: hsla(var(--foreground), .8);
	padding: 6px 0;
	white-space: nowrap;
}
.main-nav a:hover { color: hsl(var(--primary)); }

/* Onglet actif (l'onglet du blog) — souligné, comme sur le site */
.main-nav .is-active a,
.main-nav a[aria-current="page"] {
	color: hsl(var(--primary));
}
.main-nav .is-active a::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 100%; height: 1px;
	background: hsl(var(--primary));
}

/* Item « side » (Admin Login) : légèrement doré comme sur le site */
.main-nav .nav-side a { color: hsla(var(--muted), .95); }
.main-nav .nav-side a:hover { color: hsl(var(--primary)); }

/* =========================================================================
   Contenu
   ========================================================================= */
.site-main { padding: 56px 0 72px; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	align-items: start;
}
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }

.page-heading { text-align: center; margin-bottom: 48px; }
.page-heading .eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
	color: hsl(var(--accent)); margin-bottom: 12px;
}
.page-heading h1 { margin: 0; }

/* Cartes d'articles */
.post-list { display: grid; gap: 48px; }
.post-card {
	border-bottom: 1px solid hsl(var(--border));
	padding-bottom: 40px;
}
.post-card:last-child { border-bottom: 0; }
.post-thumb { margin-bottom: 22px; overflow: hidden; border-radius: 2px; }
.post-thumb img { width: 100%; transition: transform .6s ease; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 .35em; }
.post-title a { color: hsl(var(--foreground)); }
.post-title a:hover { color: hsl(var(--primary)); }
.post-meta {
	font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
	color: hsla(var(--muted), .95);
	margin-bottom: 16px;
}
.post-meta a { color: inherit; }
.read-more {
	display: inline-block; margin-top: 10px;
	font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
	color: hsl(var(--primary));
	border-bottom: 1px solid transparent;
}
.read-more:hover { border-color: hsl(var(--primary)); }

/* Article seul / page */
.entry-header { margin-bottom: 32px; text-align: center; }
.entry-header .post-meta { margin-bottom: 10px; }
.entry-featured { margin: 0 0 40px; border-radius: 2px; overflow: hidden; }
.entry-content { font-size: 1.06rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { margin: 1.5em auto; border-radius: 2px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px;
	border-left: 2px solid hsl(var(--accent));
	font-family: var(--font-heading); font-size: 1.4rem; font-style: italic;
	color: hsla(var(--foreground), .85);
}
.entry-content a { border-bottom: 1px solid hsla(var(--primary), .4); }
.entry-content a:hover { border-color: hsl(var(--primary)); }

.entry-footer {
	margin-top: 40px; padding-top: 22px;
	border-top: 1px solid hsl(var(--border));
	font-size: .8rem; letter-spacing: .04em;
	color: hsla(var(--muted), .95);
}
.entry-footer a { color: hsl(var(--primary)); }

/* Pagination */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground)); font-size: .85rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary));
}

/* =========================================================================
   Barre latérale & widgets
   ========================================================================= */
.sidebar .widget { margin-bottom: 40px; }
.widget-title {
	font-family: var(--font-body);
	font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
	color: hsl(var(--accent));
	margin-bottom: 16px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid hsl(var(--border)); }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: hsla(var(--foreground), .85); }
.widget a:hover { color: hsl(var(--primary)); }

/* Formulaire de recherche */
.search-form { display: flex; gap: 8px; }
.search-form .search-field {
	flex: 1 1 auto; min-width: 0;
	padding: 11px 14px;
	border: 1px solid hsl(var(--border));
	background: #fff; color: hsl(var(--foreground));
	font-family: var(--font-body); font-size: .9rem;
}
.search-form .search-field:focus { outline: none; border-color: hsl(var(--primary)); }
.search-form .search-submit {
	padding: 11px 18px; border: 0; cursor: pointer;
	background: hsl(var(--primary)); color: #fff;
	font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.search-form .search-submit:hover { background: hsl(var(--foreground)); }

/* =========================================================================
   Commentaires
   ========================================================================= */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid hsl(var(--border)); }
.comments-title, .comment-reply-title { font-size: 1.6rem; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list ul.children { list-style: none; margin: 0 0 0 28px; padding: 0; }
.comment-body {
	padding: 20px 0; border-bottom: 1px solid hsl(var(--border));
}
.comment-author { font-weight: 500; }
.comment-author .says { display: none; }
.comment-meta { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: hsla(var(--muted), .95); margin-bottom: 8px; }
.comment-meta a { color: inherit; }
.comment-respond { margin-top: 32px; }
.comment-form label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; color: hsla(var(--foreground), .8); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 11px 14px; margin-bottom: 18px;
	border: 1px solid hsl(var(--border)); background: #fff;
	font-family: var(--font-body); font-size: .95rem; color: hsl(var(--foreground));
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: hsl(var(--primary)); }
.form-submit .submit,
.wp-block-button__link,
button, input[type="submit"] {
	padding: 12px 26px; border: 0; cursor: pointer;
	background: hsl(var(--primary)); color: #fff;
	font-family: var(--font-body); font-size: .76rem;
	letter-spacing: .16em; text-transform: uppercase;
}
.form-submit .submit:hover, button:hover, input[type="submit"]:hover { background: hsl(var(--foreground)); }

/* =========================================================================
   404 / recherche vide
   ========================================================================= */
.notice-block { text-align: center; max-width: 640px; margin: 0 auto; padding: 40px 0 20px; }
.notice-block .big { font-size: clamp(3rem, 10vw, 6rem); color: hsla(var(--muted), .5); font-family: var(--font-heading); }
.notice-block .search-form { max-width: 420px; margin: 28px auto 0; }

/* =========================================================================
   Pied de page (mêmes informations que le site)
   ========================================================================= */
.site-footer {
	background: hsl(var(--background));
	border-top: 1px solid hsl(var(--border));
	padding: 72px 0 36px;
	margin-top: 40px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
}
.footer-brand h2 { font-size: 2rem; margin: 0 0 18px; }
.footer-brand p { color: hsla(var(--foreground), .75); max-width: 34ch; }
.footer-logo { margin-top: 26px; }
.footer-logo img { height: 70px; width: auto; max-width: 260px; opacity: .9; }

.footer-col h3 {
	font-family: var(--font-body);
	font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
	color: hsl(var(--accent));
	margin: 0 0 20px;
}
.footer-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 22px; min-width: 210px;
	font-size: .82rem; letter-spacing: .04em; color: #fff;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-email    { background: hsl(var(--primary)); }
.btn-email:hover { background: hsl(var(--foreground)); color: #fff; }
.btn-whatsapp { background: hsl(var(--secondary)); }
.btn-whatsapp:hover { background: hsl(var(--foreground)); color: #fff; }
.footer-insta { display: inline-block; margin-top: 16px; color: hsla(var(--foreground), .85); }

.footer-zones ul { list-style: none; margin: 0; padding: 0; }
.footer-zones li { padding: 6px 0; color: hsla(var(--foreground), .8); }

.footer-bottom {
	margin-top: 56px; padding-top: 26px;
	border-top: 1px solid hsl(var(--border));
	display: flex; flex-wrap: wrap; gap: 12px 24px;
	justify-content: space-between; align-items: center;
	font-size: .82rem; color: hsla(var(--muted), .95);
}
.footer-bottom a { color: hsla(var(--muted), .95); }
.footer-bottom a:hover { color: hsl(var(--primary)); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
	.layout { grid-template-columns: 1fr; gap: 48px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.header-inner { justify-content: center; }
	.main-nav, .main-nav ul { justify-content: center; }
	.site-title-text { max-width: 100%; text-align: center; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { justify-content: center; text-align: center; }
	.entry-header, .page-heading { text-align: center; }
}
