/* Polices hébergées sur le site (RGPD : aucune requête vers Google) */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bonheur Planner Studio — maquette v3 (épurée) */

:root {
    --white: #ffffff;
    --soft: #faf7f3;
    --ink: #2a1a21;
    --muted: #8a7a80;
    --logo: #35527c; /* bleu mesuré sur le logo */
    --line: rgba(42, 26, 33, .12);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Manrope", system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 15px/1.75 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 110px; } /* hauteur du header compact */

/* Curseur : le pinceau aquarelle à la lavande (32 px), partout ; point actif = pointe des poils */
html, html *, html *::before, html *::after {
    cursor: url("../img/curseur-pinceau.png") 0 31, auto !important;
    cursor: -webkit-image-set(url("../img/curseur-pinceau.png") 1x, url("../img/curseur-pinceau@2x.png") 2x) 0 31, auto !important;
    cursor: image-set(url("../img/curseur-pinceau.png") 1x, url("../img/curseur-pinceau@2x.png") 2x) 0 31, auto !important;
}

.btn {
    display: inline-block;
    padding: .9em 2em;
    border: 1px solid var(--ink);
    background: none;
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    transition: background .4s, color .4s, border-color .4s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.link { padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: .8rem; letter-spacing: .06em; }
.link:hover { color: var(--logo); }

/* ---------- Header ---------- */

/* Header fixe : la place est réservée en haut de page (--header-h, mesuré en JS),
   il se compacte au scroll sans faire sauter le contenu */
body { padding-top: var(--header-h, 190px); }
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px var(--gutter) 26px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: padding .5s var(--ease), gap .5s var(--ease), box-shadow .5s;
}
.brand img { width: clamp(250px, 24vw, 480px); transition: width .5s var(--ease); }
.site-header.no-anim, .site-header.no-anim * { transition: none !important; }
.site-header.is-compact { gap: 4px; padding: 8px var(--gutter) 10px; box-shadow: 0 1px 0 var(--line); }
.site-header.is-compact .brand img { width: clamp(150px, 12vw, 200px); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.8rem; }
.nav a { font-size: .8rem; letter-spacing: .04em; transition: color .3s; }
.nav a:hover { color: var(--logo); }

/* ---------- Hero ---------- */

.hero-photo { position: relative; height: clamp(300px, 62vh, 640px); overflow: hidden; background: var(--soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { text-align: center; padding: clamp(36px, 5vw, 60px) var(--gutter) clamp(56px, 7vw, 90px); }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.hero-text p { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- Blocs ---------- */

.block { padding: clamp(64px, 8vw, 110px) var(--gutter); }
.block-soft { background: var(--soft); }
/* Titre accompagné d'une illustration à gauche (coccinelle de « Sur mesure ») */
.title-deco { display: flex; align-items: center; justify-content: center; gap: .9rem; }
.title-deco img { width: clamp(48px, 5vw, 68px); transform: rotate(-12deg); }
.intro {max-width: 34em; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; color: var(--muted); }


.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 48px); max-width: 1040px; margin: 0 auto; text-align: center; }
.arch { overflow: hidden; aspect-ratio: 2 / 3; border-radius: 999px 999px 8px 8px; margin-bottom: 1.2rem; background: var(--soft); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.category:hover .arch img { transform: scale(1.04); }
.categories h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.categories p { font-size: .85rem; color: var(--muted); max-width: 24em; margin: 0 auto; }

.magic { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 520px); justify-content: center; align-items: start; gap: clamp(32px, 6vw, 80px); }
/* le portrait reste visible pendant la lecture du texte */
.portrait { position: sticky; top: 30px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.magic-kicker { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: .6rem; }
.magic blockquote {margin: 0 0 1.4rem; font: italic 300 1.35rem/1.45 var(--serif); }
.magic-text p { color: #54434a; }
.signature { font: italic 300 1.6rem var(--serif); color: var(--ink) !important; }

/* Moodboard : filtres + grille masonry (hauteur de chaque carte calculée en JS) */
.mb-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0 auto clamp(28px, 4vw, 44px); }
.mb-filters button {
    padding: .6em 1.2em;
    border: 1px solid var(--line);
    background: none;
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--muted);
    transition: color .3s, border-color .3s, background .3s;
}
.mb-filters sup { font-size: .6rem; margin-left: .15em; color: var(--logo); }
.mb-filters button:hover { color: var(--ink); border-color: var(--ink); }
.mb-filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.mb-filters button.is-active sup { color: var(--white); }

.mb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 4px;
    column-gap: clamp(16px, 2vw, 28px);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.mb-item { padding-bottom: clamp(22px, 2.6vw, 36px); }
.mb-item.is-hidden { display: none; }
.project { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.project-img { display: block; overflow: hidden; background: var(--soft); }
.project-img img { width: 100%; transition: transform 1.2s var(--ease); }
.project:hover .project-img img { transform: scale(1.03); }
.project-title { display: block; margin-top: .8rem; font: 300 1.1rem/1.25 var(--serif); transition: color .3s; }
.project:hover .project-title { color: var(--logo); }
.project-info { display: block; margin-top: .2rem; font-size: .74rem; color: var(--muted); }

/* Dear Diary : cartes d'articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); max-width: 1100px; margin: 0 auto; }
.articles-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; }
.article-card-img { display: block; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 1rem; background: var(--white); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-kicker { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.article-card-title { font: italic 300 1.3rem/1.25 var(--serif); margin-bottom: .5rem; transition: color .3s; }
.article-card:hover .article-card-title { color: var(--logo); }
.article-card-excerpt { font-size: .86rem; color: #54434a; margin-bottom: 1rem; }
.article-card:hover .link { color: var(--logo); }

/* Page article */
.article { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 110px); }
.article-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.article-back { display: inline-block; margin-bottom: 1.6rem; font-size: .78rem; letter-spacing: .06em; color: var(--muted); transition: color .3s; }
.article-back:hover { color: var(--logo); }
.article-head .article-kicker { margin-bottom: .6rem; }
.article-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-style: italic; }
.article-cover { width: 100%; max-width: 1100px; aspect-ratio: 16 / 8; object-fit: cover; margin: 0 auto clamp(36px, 5vw, 64px); }
.article-body { max-width: 640px; margin: 0 auto; color: #3f2f36; }
.article-body p { margin-bottom: 1.3em; }
.article-intro { font: italic 300 1.25rem/1.55 var(--serif); color: var(--ink); }
.article-body blockquote { margin: 2.2rem 0; padding: 0 1rem; text-align: center; font: italic 300 1.5rem/1.4 var(--serif); color: var(--logo); }

/* ---------- Footer / contact ---------- */

.site-footer { padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; text-align: center; border-top: 1px solid var(--line); }
.site-footer h2 { margin-bottom: .8rem; }
.site-footer > p { color: var(--muted); }
.contact-lines { margin: 2rem 0 1.2rem; font-size: .85rem; }
.contact-lines span { margin: 0 .6rem; color: var(--muted); }
.contact-lines a:hover, .footer-nav a:hover, .legal a:hover { color: var(--logo); }
.social { display: flex; justify-content: center; gap: .4rem; margin-bottom: 2.4rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .4s; }
.social svg { width: 26px; height: 26px; fill: none; stroke: var(--logo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.social a:hover { background: var(--logo); }
.social a:hover svg { stroke: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .78rem; }
.credit { margin: .6rem 0 0; font-size: .68rem; letter-spacing: .04em; }
.credit a { color: var(--muted); transition: color .3s; }
.credit span { color: var(--logo); }
.credit a:hover { color: var(--logo); }
.legal {margin: 1rem 0 0; font-size: .72rem; color: var(--muted); }

/* ---------- Modal & galerie ---------- */

.modal, .lightbox { position: fixed; inset: 0; z-index: 90; opacity: 0; transition: opacity .4s ease; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal.is-open, .lightbox.is-open { opacity: 1; }
.modal { display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 26, 33, .4); }
.modal-panel {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100svh - 40px);
    overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    background: var(--white);
}
.modal-panel h2 { margin-bottom: 1.6rem; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; background: none; }
.close span { position: absolute; left: 11px; right: 11px; top: 19px; height: 1px; background: var(--ink); }
.close span:first-child { transform: rotate(45deg); }
.close span:last-child { transform: rotate(-45deg); }
.close:hover span { background: var(--logo); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .45rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font: 400 .92rem var(--sans);
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field small { color: var(--logo); font-size: .75rem; }
.has-error input, .has-error select { border-color: var(--logo); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; font-size: .85rem; }
.checks label { display: flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: .85rem; }
.checks input { width: auto; accent-color: var(--logo); }
.form-thanks { text-align: center; padding: 1rem 0; }
.form-thanks img { width: 70px; margin: 0 auto 1rem; }
.form-thanks h2 { margin-bottom: .6rem; }
.form-thanks p { color: var(--muted); margin-bottom: 1.6rem; }

.lightbox { background: var(--white); display: grid; place-items: center; padding: 60px 70px; }
.lb-img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; }
.lb-title { position: absolute; top: 18px; left: 0; right: 0; margin: 0; text-align: center; font: italic 300 1.1rem var(--serif); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-size: .75rem; letter-spacing: .1em; color: var(--muted); }
.lb-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; background: none; font-size: 1.1rem; transition: color .3s; }
.lb-nav:hover { color: var(--logo); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* ---------- Apparition discrète ---------- */

.js .reveal { opacity: 0; transition: opacity 1.2s ease; }
.js .reveal.is-in { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .categories { grid-template-columns: minmax(0, 320px); justify-content: center; gap: 2.4rem; }
    .magic { grid-template-columns: minmax(0, 480px); }
    .articles { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 2.6rem; }
    .portrait { position: static; }
    .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
    .mb-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .mb-filters button { flex: none; }
}

@media (max-width: 560px) {
    .form, .checks { grid-template-columns: 1fr; }
    .article-cover { aspect-ratio: 4 / 3; }
    .lightbox { padding: 60px 16px; }
    .lb-nav { top: auto; bottom: 6px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* Formulaire : champ piège anti-robots (hors écran) et message d'erreur général */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 .4rem; padding: .7rem 1rem; background: #f6e9ec; color: #8a2d3b; font-size: .85rem; }
/* Pages légales */
.legal-page { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 110px); color: #3f2f36; }
.legal-page h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: .6rem 0 .4rem; }
.legal-page h2 { text-align: left; font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal-page a { color: var(--logo); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .article-back { text-decoration: none; }
.legal-page ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-page li { margin-bottom: .4rem; }
.legal-updated { font-size: .78rem; color: var(--muted); }
.form-privacy { margin: .8rem 0 0; font-size: .72rem; color: var(--muted); }
.form-privacy a { color: var(--logo); text-decoration: underline; }
/* ---------- Spécifique WordPress ---------- */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.article-body > * { margin-top: 0; }
.article-body blockquote, .article-body .wp-block-quote { margin: 2.2rem 0; padding: 0 1rem; border: 0; text-align: center; font: italic 300 1.5rem/1.4 var(--serif); color: var(--logo); }
.article-body blockquote p { margin: 0; }
.article-body blockquote cite { display: block; margin-top: .5rem; font: normal .8rem var(--sans); color: var(--muted); }
.article-body img, .legal-page img { max-width: 100%; height: auto; }
.article-body .wp-block-image, .article-body figure { margin: 2rem 0; }
.article-body figcaption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .4rem; }
.article-body h2, .article-body h3 { text-align: left; margin: 2rem 0 .8rem; }
.article-body a { color: var(--logo); text-decoration: underline; text-underline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.aligncenter { margin-left: auto; margin-right: auto; }
.blog-list { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 110px); }
.blog-list h1 { text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: clamp(28px, 4vw, 48px); }
.pagination { display: flex; justify-content: center; gap: .8rem; margin-top: 3rem; font-size: .85rem; }
.pagination a { color: var(--logo); }