/*
Theme Name: Clearfield Brands
Description: Site vitrine de Clearfield Brands LLC (entreprise propriétaire des marques). Source : entreprise/site/ sur le PC.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: clearfield
*/

@font-face {
	font-family: "Inter";
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #14211C;        /* titres, pied de page */
	--text: #2B3732;       /* texte courant */
	--muted: #56635D;      /* texte secondaire (contraste ≥ 4,5 sur blanc et sur --mist) */
	--line: #DCE3DD;       /* bordures */
	--paper: #FFFFFF;      /* fond */
	--mist: #F2F5F0;       /* sections */
	--field: #2F6B4F;      /* boutons, liens */
	--field-dark: #24563F; /* survol */
	--sun: #E9C46A;        /* accent du logo */
	--clay: #B5643E;       /* esperluette des marques */
	--radius: 16px;
	--space: clamp(48px, 7vw, 88px);
	--wrap: 1120px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 17px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--field); text-underline-offset: 3px; }
a:hover { color: var(--field-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.cf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.cf-skip { position: absolute; left: -9999px; }
.cf-skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 14px; }

/* ---------- En-tête ---------- */
.cf-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.cf-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.cf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.cf-logo b { font-weight: 800; }
.cf-logo:hover { color: var(--ink); }
.cf-mark { width: 32px; height: 32px; flex: none; }
.cf-nav { display: flex; gap: 4px; }
.cf-nav a { text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 550; padding: 10px 12px; border-radius: 999px; }
.cf-nav a:hover, .cf-nav a[aria-current="page"] { background: var(--mist); color: var(--ink); }

/* ---------- Boutons ---------- */
.cf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--field); color: #fff; text-decoration: none; font-weight: 650; font-size: 1rem; border: 2px solid var(--field); }
.cf-btn:hover { background: var(--field-dark); border-color: var(--field-dark); color: #fff; }
.cf-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cf-btn-ghost:hover { background: var(--mist); border-color: var(--line); color: var(--ink); }

/* ---------- Accueil : grand titre ---------- */
.cf-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F6F8F3 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); }
.cf-hero::after { /* « champ » : lignes horizontales discrètes en bas */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
	background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(47,107,79,.08) 22px 24px);
	mask-image: linear-gradient(180deg, transparent, #000);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000);
}
.cf-hero-in { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 112px) clamp(64px, 10vw, 128px); max-width: 860px; }
.cf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--field); margin-bottom: 18px; }
.cf-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(233,196,106,.25); }
.cf-hero h1 { margin-bottom: 20px; }
.cf-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; margin-bottom: 28px; }

/* ---------- Sections ---------- */
.cf-section { padding-block: var(--space); }
.cf-section + .cf-section { padding-top: 0; }
.cf-section.cf-tint { background: var(--mist); border-block: 1px solid var(--line); padding-top: var(--space); }
.cf-section.cf-tint + .cf-section { padding-top: var(--space); }
.cf-section-head { max-width: 720px; margin-bottom: 36px; }
.cf-section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Cartes des marques ---------- */
.cf-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cf-brand { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cf-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cf-brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 600; color: #2F2622; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
.cf-brand-name em { color: var(--clay); font-weight: 400; }
.cf-pill { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px; background: #FBF3DE; color: #6B5413; white-space: nowrap; }
.cf-pill-grey { background: var(--mist); color: var(--muted); }
.cf-brand-niche { font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.cf-brand p { color: var(--muted); }
.cf-brand dl { margin: 6px 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.cf-brand dt { color: var(--muted); }
.cf-brand dd { margin: 0; color: var(--text); font-weight: 550; }
.cf-brand .cf-btn { margin-top: auto; align-self: flex-start; }
.cf-brand-next { background: transparent; border-style: dashed; }
.cf-brand-next .cf-brand-name { color: var(--muted); }

/* ---------- Principes ---------- */
.cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cf-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cf-card p { color: var(--muted); margin: 0; }
.cf-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #E6EFE8; color: var(--field); font-weight: 750; font-size: .95rem; margin-bottom: 14px; }

/* ---------- Fiche d'identité ---------- */
.cf-facts { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin: 0; }
.cf-facts dt, .cf-facts dd { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cf-facts dt { color: var(--muted); font-weight: 550; background: #FAFBF9; }
.cf-facts dd { color: var(--ink); font-weight: 550; }
.cf-facts dt:last-of-type, .cf-facts dd:last-of-type { border-bottom: 0; }

/* ---------- Bande d'appel ---------- */
.cf-cta { background: var(--ink); color: #DCE5DF; border-radius: calc(var(--radius) + 4px); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cf-cta h2 { color: #fff; margin-bottom: 8px; }
.cf-cta p { margin: 0; max-width: 560px; }
.cf-cta .cf-btn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.cf-cta .cf-btn:hover { background: #F0D38E; border-color: #F0D38E; }

/* ---------- Pages intérieures ---------- */
.cf-page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(44px, 7vw, 80px) clamp(36px, 6vw, 64px); }
.cf-page-head h1 { max-width: 820px; }
.cf-page-head .cf-lead { margin-bottom: 0; }
.cf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.cf-split + .cf-split { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.cf-split h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.cf-list { margin: 0; padding-left: 1.2em; }
.cf-list li { margin-bottom: .45em; }
.cf-note { background: #FBF7EC; border: 1px solid #EFE3C2; border-radius: 12px; padding: 16px 20px; color: #4A3F25; font-size: .97rem; }
.cf-note p:last-child { margin: 0; }

/* Pages de contact */
.cf-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cf-contact .cf-card a.cf-big { display: inline-block; font-size: 1.15rem; font-weight: 650; margin: 2px 0 10px; text-decoration: none; }

/* Pages légales : colonne de lecture */
.cf-wrap.cf-prose > * { max-width: 760px; } /* colonne de lecture alignée sur le titre de la page */
.cf-prose h2 { font-size: 1.35rem; margin-top: 2em; }
.cf-prose h2:first-child { margin-top: 0; }
.cf-prose ul { padding-left: 1.2em; }
.cf-prose li { margin-bottom: .4em; }
.cf-updated { color: var(--muted); font-size: .95rem; }

/* ---------- Pied de page ---------- */
.cf-footer { background: var(--ink); color: #C3CEC7; margin-top: 0; padding-top: 56px; font-size: .95rem; }
.cf-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
.cf-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.cf-footer a { color: #E4ECE6; text-decoration: none; }
.cf-footer a:hover { color: #fff; text-decoration: underline; }
.cf-footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cf-footer-col p { margin: 0; }
.cf-footer-about p { margin: 14px 0 0; max-width: 340px; }
.cf-logo-light, .cf-logo-light:hover { color: #fff; }
.cf-legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px 28px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: .85rem; color: #A9B6AE; }
.cf-legal p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.cf-footer-grid { grid-template-columns: 1fr 1fr; }
	.cf-footer-about { grid-column: 1 / -1; }
	.cf-split { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.cf-wrap { padding-inline: 16px; }
	.cf-header { position: static; }
	.cf-header-in { flex-wrap: wrap; gap: 2px 8px; min-height: 0; padding-top: 12px; }
	.cf-logo { font-size: 1.05rem; gap: 8px; }
	.cf-mark { width: 28px; height: 28px; }
	.cf-nav { width: calc(100% + 16px); margin: 0 -8px; padding-bottom: 6px; }
	.cf-nav a { padding: 10px 8px; font-size: .95rem; }
	.cf-brands, .cf-grid, .cf-contact { grid-template-columns: 1fr; }
	.cf-brand, .cf-card { padding: 22px; }
	.cf-facts { grid-template-columns: 1fr; }
	.cf-facts dt { border-bottom: 0; padding-bottom: 2px; background: #fff; font-size: .85rem; }
	.cf-facts dd { padding-top: 0; }
	.cf-actions .cf-btn { flex: 1 1 100%; }
	.cf-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Titres de cartes (niveau h2 pour la structure, taille h3) et note sous une fiche d'identité */
.cf-card h2.h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
.cf-facts + .cf-note { margin-top: 20px; }

/* Grille de 4 cartes : 2 par ligne (évite une carte seule sur la dernière ligne) */
@media (min-width: 601px) { .cf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Marque mise en avant (police Fraunces = logo de Lark & Nest) ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.cf-brand-name { font-family: "Fraunces", Georgia, serif; }
.cf-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.cf-feature-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.cf-feature-body .cf-brand-name { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cf-feature-body > p { color: var(--muted); }
.cf-feature-body dl { margin: 8px 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .95rem; }
.cf-feature-body dt { color: var(--muted); }
.cf-feature-body dd { margin: 0; font-weight: 550; color: var(--text); }
.cf-feature-body .cf-btn { align-self: flex-start; margin-top: auto; }
.cf-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.cf-feature-visual { background: #F7F3EC; border-left: 1px solid #EADFD2; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; position: relative; }
.cf-feature-visual::before { content: ""; position: absolute; inset: 18px; border: 1px solid #EADFD2; border-radius: 14px; pointer-events: none; }
.cf-feature-logo { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); color: #2F2622; letter-spacing: -0.02em; line-height: 1; }
.cf-feature-logo em { color: #C27A55; font-style: italic; font-weight: 400; }
.cf-feature-tag { color: #6B5D55; max-width: 300px; font-size: 1rem; }
.cf-chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; }
.cf-chips li { background: #fff; border: 1px solid #EADFD2; color: #3B2F2A; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 550; }

/* ---------- Étapes ---------- */
.cf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.cf-steps li { counter-increment: step; border-top: 3px solid var(--field); padding-top: 18px; }
.cf-steps li::before { content: "Step " counter(step); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--field); margin-bottom: 8px; }
.cf-steps p { color: var(--muted); margin: 0; }
.cf-num { min-width: 36px; width: auto; padding: 0 8px; }

@media (max-width: 900px) {
	.cf-feature { grid-template-columns: 1fr; }
	.cf-feature-visual { border-left: 0; border-top: 1px solid #EADFD2; order: -1; }
	.cf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.cf-steps { grid-template-columns: 1fr; }
	.cf-feature-body dl { grid-template-columns: 1fr; gap: 0; }
	.cf-feature-body dt { font-size: .85rem; margin-top: 8px; }
}
/* Nom de la marque déjà affiché en grand dans le visuel : gardé pour les lecteurs d'écran et Google */
.cf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cf-feature-body > p.cf-kicker { color: var(--clay); }

/* ---------- Accueil : texte + mosaïque de photos de la marque (2026-10-17) ---------- */
.cf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.cf-hero-grid .cf-hero-in { max-width: none; padding-inline: 0; }
.cf-hero-media { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1; margin-block: clamp(40px, 6vw, 72px); }
.cf-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(20, 33, 28, .45); display: block; }
.cf-m1 { grid-row: 1 / 3; }
.cf-hero-badge { position: absolute; left: -18px; bottom: 28px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; display: flex; flex-direction: column; box-shadow: 0 14px 30px -18px rgba(20, 33, 28, .5); }
.cf-hero-badge .cf-brand-name { font-size: 1.35rem; font-weight: 600; color: #2F2622; line-height: 1.1; }
.cf-hero-badge .cf-brand-name em { color: #C27A55; font-style: italic; font-weight: 400; }
.cf-hero-badge span + span { font-size: .8rem; color: var(--muted); font-weight: 550; }

/* Bloc de la marque : grille de 4 photos + plaque du logo */
.cf-feature-visual { padding: 0; background: #F7F3EC; display: block; }
.cf-feature-visual::before { display: none; }
.cf-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 100%; }
.cf-photo-grid img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.cf-feature-plate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255, 253, 249, .96); border-radius: 999px; padding: 12px 26px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #2F2622; white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(47, 38, 34, .45); }
.cf-feature-plate em { color: #C27A55; font-weight: 400; }

/* En-tête : « Contact » en bouton */
.cf-nav a.cf-nav-cta { background: var(--field); color: #fff; padding-inline: 18px; margin-left: 6px; }
.cf-nav a.cf-nav-cta:hover, .cf-nav a.cf-nav-cta[aria-current="page"] { background: var(--field-dark); color: #fff; }

@media (max-width: 900px) {
	.cf-hero-grid { grid-template-columns: 1fr; gap: 0; }
	.cf-hero-grid .cf-hero-in { padding-bottom: 8px; }
	.cf-hero-media { aspect-ratio: 4 / 3; max-width: 560px; width: 100%; margin-top: 16px; margin-bottom: 56px; }
	.cf-hero-badge { left: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
	.cf-hero-media { gap: 8px; }
	.cf-hero-media img { border-radius: 12px; }
	.cf-nav a.cf-nav-cta { margin-left: auto; }
	.cf-nav { justify-content: flex-start; }
}
