/* ==========================================================================
   SOMOUD — mobile d'abord, éditorial, sobre.
   ========================================================================== */
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Anonymous Pro"; src: url("../fonts/anonymouspro.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
	--blanc: #FFFFFF; --voile: #F3F2F0; --pierre: #A6A3A1; --taupe: #7F786F; --ecorce: #595048; --brun: #302922; --encre: #26211E;
	--filet: rgba(38, 33, 30, .13);
	--sans: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mono: "Anonymous Pro", ui-monospace, Menlo, monospace;
	--g: clamp(20px, 5.5vw, 56px);
	--wide: 1100px;
	--side: max(var(--g), calc((100vw - var(--wide)) / 2));
	--head: 60px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --head: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--blanc); color: var(--encre); font-family: var(--sans); font-size: 15px; font-weight: 350; line-height: 1.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
:where(img, video, svg) { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; text-decoration: none; }
:where(h1, h2, h3, h4, p, figure, ul, ol) { margin: 0; }
::selection { background: var(--encre); color: var(--blanc); }
:focus-visible { outline: 1px solid var(--encre); outline-offset: 3px; }
.sr, .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 { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; padding: 10px 16px; background: var(--encre); color: var(--blanc); }
.menu-open { overflow: hidden; }

/* Capitales espacées (rappel du logo) */
.caps, .manifeste__label, .nl__title, .journal__title, .menu__item, .slide__more, .more__btn, .btn, .bientot__title {
	text-transform: uppercase; letter-spacing: .32em; font-weight: 300;
}

/* ---------- En-tête ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hd { top: 0; } }
.hd.is-scrolled, .menu-open .hd { border-bottom-color: var(--filet); }
.hd__inner { height: var(--head); padding: 0 var(--side); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.hd__logo { justify-self: center; display: block; }
.hd__logo .logo, .hd__logo img { height: 15px; width: auto; }
@media (min-width: 900px) { .hd__logo .logo, .hd__logo img { height: 19px; } }
.burger { width: 44px; height: 44px; margin-right: -10px; justify-self: end; padding: 0; border: 0; background: none; cursor: pointer; color: var(--encre); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; }
.burger span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: var(--head) 0 0 0; z-index: 35; background: rgba(255, 255, 255, .98); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; padding: 0 var(--g) 12vh; opacity: 0; transition: opacity .35s var(--ease); }
.admin-bar .menu { top: calc(var(--head) + 32px); }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__list { list-style: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.menu__item { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 400; padding: 6px 0; margin-right: -.32em; }
a.menu__item > span { border-bottom: 1px solid transparent; transition: border-color .3s; }
a.menu__item:hover > span { border-bottom-color: currentColor; }
.menu__item.is-disabled { color: var(--pierre); cursor: default; user-select: none; }
.menu__badge { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; text-transform: lowercase; color: var(--taupe); margin-right: .32em; }

.langs { list-style: none; padding: 0; display: flex; gap: 18px; font-family: var(--mono); font-size: 12.5px; }
.langs a { color: var(--pierre); padding: 6px 2px; }
.langs a.is-current, .langs a:hover { color: var(--encre); }

/* ---------- Texte éditorial ---------- */
.prose p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; color: var(--ecorce); }
.prose > * + *, .more__inner { margin-top: 1em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--pierre); }
.prose .lead, .prose h3.lead { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--encre); margin: 0; }
.prose .lead + p { margin-top: 0; }
.prose h2 { font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-top: 2.6em; color: var(--encre); }
.prose h2 + * { margin-top: .9em; }
.prose h3 { font-size: 15px; font-weight: 500; margin-top: 2em; }
.prose .conclusion { text-align: left; font-size: 16px; font-style: italic; color: var(--encre); margin-top: 1.8em; hyphens: manual; }
.prose .devise { text-align: left; font-size: 9.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--pierre); margin-top: 2em; }
.prose figure, .prose .wp-block-image { margin: 2.2em 0; }
.prose figcaption, .prose .wp-element-caption { font-family: var(--mono); font-size: 12.5px; color: var(--taupe); margin-top: .8em; text-align: left; }
.prose ul:not(.is-style-fiche), .prose ol { padding-left: 1.1em; color: var(--ecorce); }
.prose blockquote, .prose .wp-block-quote { border: 0; margin: 2.2em 0; padding: 0; }
.prose blockquote p { text-align: left; font-size: clamp(19px, 5vw, 24px); font-weight: 300; line-height: 1.4; color: var(--encre); hyphens: manual; }
.prose blockquote cite { display: block; margin-top: .8em; font-family: var(--mono); font-size: 12.5px; font-style: normal; color: var(--taupe); }
.prose .is-style-legende, .prose .signature { font-family: var(--mono); font-size: 12.5px; color: var(--taupe); text-align: left; }
.prose .signature { margin-top: 2.4em; }
.prose .is-style-etiquette { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); text-align: left; margin-top: 2.2em; }
.prose .wp-block-list.is-style-fiche { list-style: none; padding: 0; border-top: 1px solid var(--filet); font-size: 14px; }
.prose .is-style-fiche li { display: flex; justify-content: space-between; gap: 16px; padding: .8em 0; border-bottom: 1px solid var(--filet); text-align: right; color: var(--encre); }
.prose .is-style-fiche li strong { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); text-align: left; }
.prose .wp-block-image img:not([src]), .prose .wp-block-image img[src=""] { aspect-ratio: 4 / 5; width: 100%; background: var(--voile); content: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"); }
.prose .wp-block-columns { display: flex; gap: 8px; }
.prose .wp-block-column { flex: 1 1 0; min-width: 0; }

/* ---------- Accueil ---------- */
.hero { position: relative; margin: clamp(24px, 7vw, 48px) 0 0 var(--g); }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.hero__soon {
	position: absolute; right: clamp(16px, 5vw, 32px); bottom: clamp(18px, 6vw, 36px);
	color: #fff; font-family: var(--sans); font-size: clamp(14px, 4.4vw, 19px); font-weight: 300;
	letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; line-height: 1.6;
	max-width: 7.5em; text-align: right; text-shadow: 0 0 24px rgba(20, 17, 15, .25);
}
.manifeste { padding: clamp(40px, 11vw, 72px) var(--g) clamp(48px, 12vw, 88px); }
.manifeste__label { font-size: clamp(17px, 4.6vw, 22px); color: var(--encre); letter-spacing: .42em; margin-right: -.42em; }
.prose--manifeste { margin-top: 26px; }
.prose--manifeste p { font-size: 13.5px; line-height: 1.75; }
.more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease), opacity .6s var(--ease); }
.more > .more__inner { overflow: hidden; min-height: 0; }
.more.is-open { grid-template-rows: 1fr; opacity: 1; }
html:not(.js) .more { grid-template-rows: 1fr; opacity: 1; }
html:not(.js) .more__btn { display: none; }
.more__btn, .btn { display: inline-block; margin-top: 22px; padding: 10px 0 4px; border: 0; border-bottom: 1px solid var(--encre); background: none; color: var(--encre); font: inherit; font-size: 9.5px; font-weight: 500; letter-spacing: .3em; cursor: pointer; transition: opacity .3s; }
.more__btn:hover, .btn:hover { opacity: .55; }

@media (min-width: 900px) {
	.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: center; padding: 48px var(--side) 0; }
	.hero { margin: 0; justify-self: end; }
	.hero img { aspect-ratio: auto; width: auto; max-width: 100%; max-height: calc(100svh - var(--head) - 96px); }
	.manifeste { padding: 0; max-width: 440px; }
	.prose--manifeste p { font-size: 14px; }
}

/* ---------- Inscription ---------- */
.nl { border-top: 1px solid var(--filet); padding: clamp(48px, 12vw, 96px) var(--g) clamp(56px, 14vw, 112px); }
.nl__inner { max-width: 440px; }
.nl__title { font-size: clamp(15px, 4.2vw, 19px); color: var(--encre); line-height: 1.6; }
.nl__text { margin-top: 16px; font-size: 13.5px; text-align: justify; hyphens: auto; color: var(--ecorce); }
@media (min-width: 900px) {
	.nl { padding-left: var(--side); padding-right: var(--side); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); }
	.nl__inner { grid-column: 2; }
}
.snl-form { margin-top: 26px; position: relative; }
.snl-row { display: flex; flex-direction: column; gap: 12px; }
.snl-input { width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--encre); border-radius: 0; background: transparent; color: var(--encre); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.snl-input::placeholder { color: var(--taupe); opacity: 1; }
.snl-input:focus { outline: none; border-bottom-width: 2px; }
.snl-button { min-height: 52px; width: 100%; border: 1px solid var(--encre); border-radius: 0; background: var(--encre); color: var(--blanc); font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; -webkit-appearance: none; transition: background .3s, color .3s, opacity .3s; }
.snl-button:hover { background: transparent; color: var(--encre); }
.snl-button:disabled { opacity: .5; }
@media (min-width: 600px) {
	.snl-row { flex-direction: row; gap: 0; border-bottom: 1px solid var(--encre); }
	.snl-input { border-bottom: 0; flex: 1; }
	.snl-input:focus { border-bottom: 0; }
	.snl-button { width: auto; padding: 0 0 0 24px; border: 0; background: transparent; color: var(--encre); }
	.snl-button:hover { opacity: .55; }
}
.snl-consent { margin-top: 14px; font-size: 12px; line-height: 1.55; color: var(--taupe); }
.snl-consent a { text-decoration: underline; text-underline-offset: .2em; }
.snl-message { margin-top: 12px; min-height: 1.5em; font-family: var(--mono); font-size: 13px; }
.snl-form.is-done .snl-row { opacity: .4; }

/* ---------- Pied de page ---------- */
.ft { padding: 28px var(--side) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-family: var(--mono); font-size: 12px; color: var(--pierre); border-top: 1px solid var(--filet); }
.ft__links { display: flex; gap: 18px; }
.ft__links a { color: var(--ecorce); }

/* ---------- Journal : carrousel « suspendu » ---------- */
.journal { padding: clamp(36px, 10vw, 72px) 0 clamp(48px, 12vw, 88px); }
.journal__head { padding: 0 var(--side); text-align: center; }
.journal__title { font-size: clamp(17px, 4.6vw, 22px); letter-spacing: .42em; margin-right: -.42em; color: var(--encre); }
.journal__intro { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--taupe); }
.journal__empty { margin-top: 48px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--taupe); }

.carousel {
	--card: min(76vw, 380px);
	list-style: none; margin: clamp(32px, 8vw, 56px) 0 0; padding: 24px calc((100vw - var(--card)) / 2) 48px;
	display: grid; grid-auto-flow: column; grid-auto-columns: var(--card); gap: clamp(16px, 5vw, 48px);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 calc((100vw - var(--card)) / 2);
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: -4px; }
.slide { scroll-snap-align: center; min-width: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .slide { opacity: .35; transform: scale(.94); }
.js .slide.is-active { opacity: 1; transform: none; }
.slide__link { display: block; }
.slide__media { aspect-ratio: 4 / 5; background: var(--voile); overflow: hidden; box-shadow: 0 40px 60px -40px rgba(38, 33, 30, .45); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .slide__link:hover .slide__media img { transform: scale(1.03); } }
.slide__body { padding-top: 22px; }
.slide__meta { font-family: var(--mono); font-size: 12px; color: var(--taupe); }
.slide__title { margin-top: 8px; font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: -.005em; }
.slide__excerpt { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--ecorce); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__more { display: inline-block; margin-top: 14px; font-size: 9.5px; font-weight: 500; border-bottom: 1px solid var(--pierre); padding-bottom: 2px; }
.slide__link:hover .slide__more { border-bottom-color: var(--encre); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 4px; }
.carousel__count { font-family: var(--mono); font-size: 12.5px; color: var(--taupe); min-width: 64px; text-align: center; }
.carousel__current { color: var(--encre); }
.carousel__arrow { width: 44px; height: 44px; border: 1px solid var(--filet); border-radius: 50%; background: none; color: var(--encre); font: inherit; font-size: 15px; cursor: pointer; transition: border-color .3s, opacity .3s; }
.carousel__arrow:hover:not(:disabled) { border-color: var(--encre); }
.carousel__arrow:disabled { opacity: .3; cursor: default; }

/* ---------- Article ---------- */
.article__head { padding: clamp(32px, 9vw, 72px) var(--g) clamp(24px, 6vw, 40px); max-width: calc(620px + 2 * var(--g)); margin: 0 auto; }
.article__head > * + * { margin-top: 16px; }
.article__top { font-family: var(--mono); font-size: 12.5px; color: var(--taupe); display: flex; gap: 8px; flex-wrap: wrap; }
.article__top a:hover { color: var(--encre); }
.article__title { font-size: clamp(26px, 7vw, 40px); font-weight: 300; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.article__chapo { font-size: 15.5px; line-height: 1.65; color: var(--ecorce); }
.article__meta { font-family: var(--mono); font-size: 12px; color: var(--taupe); }
.article__cover { margin: 0 0 clamp(32px, 8vw, 56px) var(--g); }
.article__cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.article__cover figcaption { font-family: var(--mono); font-size: 12px; color: var(--taupe); margin-top: .8em; }
@media (min-width: 900px) { .article__cover { max-width: 900px; margin: 0 auto 64px; } .article__cover img { aspect-ratio: 16 / 10; } }
.prose--article { max-width: calc(620px + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.prose--article p { font-size: 14.5px; }
.prose--article > p:first-child { font-size: 15.5px; color: var(--encre); }
.article__foot { max-width: calc(620px + 2 * var(--g)); margin: clamp(48px, 12vw, 88px) auto clamp(40px, 10vw, 72px); padding: 0 var(--g); }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--filet); padding-top: 24px; }
.article__nav a { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; }
.article__nav small { font-family: var(--mono); font-size: 11.5px; color: var(--taupe); }
.article__nav .is-next { grid-column: 2; text-align: right; align-items: flex-end; }
.crumbs { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; color: var(--pierre); }
.crumbs a { color: var(--taupe); }
.page-simple .prose--article { padding-bottom: clamp(48px, 12vw, 96px); }
.page-404 { padding-bottom: 96px; }

/* ---------- Boutique fermée ---------- */
.bientot { padding: clamp(56px, 15vw, 120px) var(--g) clamp(40px, 10vw, 72px); max-width: calc(440px + 2 * var(--g)); margin: 0 auto; }
.bientot__title { font-size: clamp(15px, 4.2vw, 19px); }
.bientot__text { margin-top: 16px; font-size: 13.5px; color: var(--ecorce); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
