/*
Theme Name: leCabinet.design
Theme URI: https://lecabinet.design
Author: leCabinet.design
Description: Site leCabinet.design, à la charte du site en ligne (noir et blanc, Poppins, vague bleue). Thème bloc léger, sans constructeur de pages. À l'activation, crée les pages du site, le menu et la page d'accueil.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: lecabinet-design
License: GPL-2.0-or-later
*/

/* ==========================================================================
   Tokens de la charte (design system leCabinet.design)
   Noir par défaut ; Blanc sur une seule bande par page.
   ========================================================================== */
:root {
	--surface: #000;
	--ink: #fff;
	--ink-body: rgba(255, 255, 255, .9);
	--ink-soft: rgba(255, 255, 255, .7);
	--ink-muted: rgba(255, 255, 255, .6);
	--ink-hover: #ccc;
	--on-ink: #000;
	--line-subtle: rgba(255, 255, 255, .1);
	--line-field: rgba(255, 255, 255, .25);
	--line-strong: rgba(255, 255, 255, .5);
	--line-focus: rgba(255, 255, 255, .6);
	--field: rgba(255, 255, 255, .08);
	--header-glass: rgba(0, 0, 0, .7);
	--content-max: 1000px;
	--header-height: 72px;
	--fast: .3s;
}
.lcd-blanc, .lcd-sand:not(.lcd-sand ~ .lcd-sand), [data-theme="blanc"] {
	--surface: #fff;
	--ink: #000;
	--ink-body: #000;
	--ink-soft: rgba(0, 0, 0, .7);
	--ink-muted: rgba(0, 0, 0, .6);
	--ink-hover: #333;
	--on-ink: #fff;
	--line-subtle: rgba(0, 0, 0, .1);
	--line-field: rgba(0, 0, 0, .25);
	--line-strong: rgba(0, 0, 0, .5);
	--line-focus: rgba(0, 0, 0, .6);
	--field: rgba(0, 0, 0, .04);
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; background: var(--surface); color: var(--ink); }
::selection { background: var(--ink); color: var(--on-ink); }
:where(.wp-site-blocks) > main, :where(.wp-site-blocks) > footer { margin-block-start: 0; }
.wp-site-blocks > main { min-height: 60vh; }
p, li { color: var(--ink-body); }
strong, b { color: var(--ink); font-weight: 600; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h2.wp-block-heading { margin-bottom: 30px; }
h3.wp-block-heading { margin-bottom: 12px; }
a { color: var(--ink); transition: color var(--fast), opacity var(--fast); }
a:hover { color: var(--ink-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lcd-card, .lcd-note, .lcd-case, .lcd-diag__result { box-sizing: border-box; }

/* ---------- Boutons : contour, inversion au survol ---------- */
.wp-element-button, .wp-block-button__link {
	background: transparent !important;
	color: var(--ink) !important;
	border: 1px solid var(--ink) !important;
	border-radius: 8px !important;
	font-weight: 600; letter-spacing: .03em;
	transition: all var(--fast);
}
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--ink) !important; color: var(--on-ink) !important; }

/* ---------- En-tête fixe translucide ---------- */
.lcd-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--header-glass);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	min-height: var(--header-height);
}
.admin-bar .lcd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lcd-header { top: 46px; } }
.lcd-logo { margin: 0; line-height: 0; }
.lcd-logo a { display: inline-block; }
.lcd-logo img { height: 36px; width: auto; display: block; }
.lcd-footer .lcd-logo img { height: 30px; }
.lcd-header .wp-block-navigation { font-size: .95rem; letter-spacing: .02em; gap: 24px; }
.lcd-header .wp-block-navigation a { color: #fff; }
.lcd-header .wp-block-navigation a:hover { opacity: .7; color: #fff; }
.lcd-header .wp-block-navigation__submenu-container {
	background: rgba(0, 0, 0, .96) !important; color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 0;
	padding: 8px 0 !important; min-width: 300px !important;
}
.lcd-header .wp-block-navigation__submenu-container a { padding: 8px 18px !important; }
.lcd-header .wp-block-navigation .lcd-nav-cta > a {
	border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px;
	padding: 4px 12px; font-weight: 600; letter-spacing: .05em; font-size: .85rem;
}
.lcd-header .wp-block-navigation .lcd-nav-cta > a:hover { background: #fff; color: #000; opacity: 1; }
.wp-block-navigation__responsive-container.is-menu-open { background: rgba(0, 0, 0, .96) !important; color: #fff !important; }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { fill: #fff; }

/* ---------- Bandes ---------- */
.lcd-section { padding-top: 60px; padding-bottom: 60px; background: var(--surface); color: var(--ink); }
.lcd-section--tight { padding-top: 40px; padding-bottom: 40px; }
.lcd-sand, .lcd-dark { background: var(--surface); color: var(--ink); }
.lcd-dark, .lcd-sand ~ .lcd-sand { border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 880px) { .lcd-section { padding-top: 40px; padding-bottom: 40px; } }

/* Ouverture : centrée, comme le hero du site */
.lcd-hero { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); text-align: center; }
.lcd-hero > * { margin-left: auto !important; margin-right: auto !important; max-width: 800px; }
.lcd-hero .wp-block-buttons { justify-content: center; }
.lcd-hero h1 { margin-top: 12px; margin-bottom: 20px; }

/* Ouverture de l'accueil : la vague bleue en boucle */
.lcd-hero--vague { position: relative; overflow: hidden; min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.lcd-hero--vague > .lcd-vague { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; margin: 0 !important; object-fit: cover; z-index: 0; }
.lcd-hero--vague::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 3, 49, .35), rgba(0, 0, 0, .55)); z-index: 1; }
.lcd-hero--vague > *:not(.lcd-vague) { position: relative; z-index: 2; }
.lcd-hero--vague p, .lcd-hero--vague .lcd-kicker, .lcd-hero--vague .lcd-lead { color: #fff; }
.lcd-hero--vague .lcd-lead { opacity: .9; }

.lcd-kicker { font-size: .9rem; color: var(--ink-muted); margin-bottom: 0; letter-spacing: .02em; }
.lcd-lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-body); }
.lcd-muted { color: var(--ink-muted); font-size: .9rem; }
.lcd-muted, .lcd-muted * { color: var(--ink-muted); }

/* ---------- Chiffre clé ---------- */
.lcd-stat { font-weight: 600; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; color: var(--ink); margin: 0; }
.lcd-source, .lcd-source a { font-size: .85rem; color: var(--ink-muted); }
.lcd-source a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blocs : pas de cartes, du texte posé sur la bande ---------- */
.lcd-cards { gap: 0 40px !important; flex-wrap: wrap !important; }
.lcd-cards > .wp-block-column { flex-basis: calc(33.333% - 27px) !important; flex-grow: 1; }
.lcd-cards--2 > .wp-block-column { flex-basis: calc(50% - 20px) !important; }
.lcd-card {
	background: transparent; border: 0; border-top: 1px solid var(--line-subtle); border-radius: 0;
	padding: 24px 0 30px; position: relative; margin: 0;
}
.lcd-card h3 { margin-top: 4px; }
.lcd-card .lcd-num { font-size: .9rem; color: var(--ink-muted); margin: 0; }
.lcd-card .lcd-more { margin-top: 16px; }
.lcd-card .lcd-more a { font-weight: 600; }
.lcd-card .lcd-more a::after { content: " →"; }
.lcd-card .lcd-more a::before { content: ""; position: absolute; inset: 0; }
.lcd-card:has(.lcd-more a:hover) h3 { color: var(--ink-hover); }

/* ---------- Échelle d'offres ---------- */
.lcd-steps { gap: 0 !important; border-top: 1px solid var(--line-subtle); }
.lcd-steps > .wp-block-column { padding: 24px 20px 24px 0; border-right: 1px solid var(--line-subtle); }
.lcd-steps > .wp-block-column + .wp-block-column { padding-left: 20px; }
.lcd-steps > .wp-block-column:last-child { border-right: 0; }
.lcd-steps .lcd-step-n { font-weight: 600; font-size: 2rem; color: var(--ink-muted); line-height: 1; margin: 0; }
@media (max-width: 781px) {
	.lcd-steps > .wp-block-column { border-right: 0; border-bottom: 1px solid var(--line-subtle); padding-left: 0 !important; }
	.lcd-cards > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- Mur de références : capitales séparées par « · » ---------- */
.lcd-logos { display: block; padding: 20px 0 0; margin: 0; list-style: none; font-size: .75rem; line-height: 1.8; text-transform: uppercase; letter-spacing: .06em; }
.lcd-logos li { display: inline; margin: 0; color: var(--ink-soft); }
.lcd-logos li:not(:last-child)::after { content: " · "; white-space: pre; }

/* ---------- Liste à tirets ---------- */
.lcd-checks, .wp-block-list { list-style: none; padding-left: 0; }
.lcd-checks li, .wp-block-list:not(.lcd-logos) > li { padding: 6px 0 6px 16px; position: relative; }
.lcd-checks li::before, .wp-block-list:not(.lcd-logos) > li::before { content: "–"; position: absolute; left: 0; opacity: .5; }
ol.wp-block-list { list-style: decimal; padding-left: 1.4em; }
ol.wp-block-list > li { padding-left: 4px; }
ol.wp-block-list > li::before { content: none; }

/* ---------- Tableaux ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wp-block-table th { text-align: left; font-weight: 600; color: var(--ink); border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 8px; }
.wp-block-table td { border: 0; border-bottom: 1px solid var(--line-subtle); padding: 12px 8px; vertical-align: top; color: var(--ink-body); }

/* ---------- Questions fréquentes ---------- */
.wp-block-details { border-bottom: 1px solid var(--line-subtle); padding: 16px 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.wp-block-details[open] summary { margin-bottom: 8px; }

/* ---------- Preuve et notes ---------- */
.lcd-case { border-left: 1px solid var(--line-strong); padding-left: 24px; margin-bottom: 20px; }
.lcd-note { border: 1px dashed var(--line-field); border-radius: 8px; padding: 14px 18px; font-size: .9rem; color: var(--ink-muted); background: var(--field); }

/* ---------- Médias ---------- */
.wp-block-video video, .wp-block-image img { border-radius: 12px; }

/* ---------- Pied de page ---------- */
.lcd-footer { background: #000; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.lcd-footer p, .lcd-footer li, .lcd-footer a { color: rgba(255, 255, 255, .6); }
.lcd-footer a:hover { color: #fff; }
.lcd-footer ul { list-style: none; padding: 0; margin: 0; }
.lcd-footer .wp-block-list > li { padding: 3px 0; }
.lcd-footer .wp-block-list > li::before { content: none; }
.lcd-footer h4 { font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.lcd-footer .lcd-legal { text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; margin-top: 30px; }

/* ---------- Apparition au défilement ---------- */
.lcd-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.lcd-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	.lcd-reveal { opacity: 1; transform: none; }
	.lcd-hero--vague > .lcd-vague { display: none; }
	.lcd-hero--vague { background: #000331 url(assets/img/vague.jpg) center / cover; }
}
@media (max-width: 600px) { .lcd-logo img { height: 28px; } }
