/*
Theme Name: La Coutellerie de Nathalie
Theme URI: https://lacoutelleriedenathalie.fr
Author: La Coutellerie de Nathalie
Description: Thème sur mesure — coutellerie à Laguiole, plateau de l'Aubrac. Rouge et or de la croix occitane, capitales romaines, esprit paysan.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coutellerie-nathalie
*/

/* ===== Base ===== */
:root {
  --cn-rouge: #C81521;
  --cn-rouge-fonce: #9A101A;
  --cn-carmin: #641015;
  --cn-or: #EFC24A;
  --cn-or-fonce: #B98A16;
  --cn-creme: #FBF9F4;
  --cn-sable: #F8F1DF;
  --cn-ligne: #EAE3D3;
  --cn-encre: #23201B;
  --cn-muted: #6B6459;
  --cn-rose: #D8A9A3;
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;
}

body {
  background: var(--cn-creme);
  color: var(--cn-encre);
  font-family: var(--font-sans);
  margin: 0;
}

.cn-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.cn-kicker {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cn-rouge); font-weight: 600;
}

.cn-h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 31px);
  font-weight: 600; letter-spacing: 1px; margin: 0;
}

.cn-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cn-rouge); color: #fff !important;
  padding: 16px 30px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.5px; text-decoration: none; border: none; cursor: pointer;
}
.cn-btn:hover { background: var(--cn-rouge-fonce); }

/* ===== Header ===== */
.cn-header {
  background: #fff; border-bottom: 1px solid var(--cn-ligne);
}
.cn-header-in {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cn-logo img { height: 58px; width: auto; display: block; }
.cn-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cn-nav a {
  color: var(--cn-encre); text-decoration: none; font-size: 15px; font-weight: 500;
}
.cn-nav a:hover { color: var(--cn-rouge); }

/* ===== Hero ===== */
.cn-hero { background: var(--cn-creme); }
.cn-hero-in {
  max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) 24px;
  display: flex; flex-direction: column; gap: 26px; align-items: flex-start;
}
.cn-hero h1 {
  font-family: var(--font-serif); font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08; font-weight: 600; margin: 0; max-width: 17ch; text-wrap: balance;
}
.cn-hero p { font-size: 18px; line-height: 1.6; color: var(--cn-muted); max-width: 520px; margin: 0; }
.cn-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.cn-hero-link {
  font-size: 15px; font-weight: 500; color: var(--cn-encre) !important;
  text-decoration: none; border-bottom: 1px solid var(--cn-encre); padding-bottom: 2px;
}
.cn-hero-rule { width: 72px; height: 3px; background: var(--cn-or); }

/* ===== Réassurance ===== */
.cn-strip { background: var(--cn-sable); border-top: 1px solid var(--cn-ligne); border-bottom: 1px solid var(--cn-ligne); }
.cn-strip-in {
  max-width: 1240px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.cn-strip-item { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.cn-strip-item svg { flex: none; }

/* ===== Bandeau carmin ===== */
.cn-band { background: var(--cn-carmin); color: #F8EFE3; }
.cn-band-in {
  max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) 24px;
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
}
.cn-band .cn-kicker { color: var(--cn-or); }
.cn-band h2 {
  font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px);
  font-weight: 600; line-height: 1.15; margin: 0; max-width: 22ch;
}
.cn-band p { font-size: 17px; line-height: 1.7; color: #EBD5CC; max-width: 640px; margin: 0; }
.cn-band a.cn-band-link {
  color: var(--cn-or) !important; text-decoration: none; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--cn-or); padding-bottom: 2px;
}

/* ===== Sections ===== */
.cn-section { padding: clamp(56px, 8vw, 88px) 0; }
.cn-section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.cn-section-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cn-muted); max-width: 640px; }

/* ===== Artisans ===== */
.cn-artisans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cn-card {
  background: #fff; border: 1px solid var(--cn-ligne); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.cn-card-mono {
  width: 52px; height: 52px; border: 1px solid var(--cn-or); color: var(--cn-or-fonce);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.cn-card-logobox {
  height: 96px; display: flex; align-items: center; justify-content: center;
  background: #fff; margin-bottom: 4px;
}
.cn-card-logo { max-height: 96px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.cn-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin: 0; }
.cn-badge {
  align-self: flex-start; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 10px; font-weight: 600;
}
.cn-badge-ligne { background: var(--cn-rouge); color: #fff; }
.cn-badge-boutique { border: 1px solid #C9BBA0; color: var(--cn-muted); }
.cn-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--cn-muted); }

/* ===== Boutiques ===== */
.cn-boutiques-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cn-boutique { background: #fff; border: 1px solid var(--cn-ligne); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.cn-boutique h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 0 0 4px 0; }
.cn-boutique .adr { font-size: 15px; color: var(--cn-muted); }
.cn-boutique .saison { font-size: 14px; color: var(--cn-rouge); font-weight: 500; }
.cn-boutique .note { font-size: 12px; color: #9A8F7C; }
.cn-boutique a { color: var(--cn-rouge); text-decoration: none; font-size: 14px; font-weight: 500; margin-top: 6px; }

/* ===== Newsletter ===== */
.cn-news { background: var(--cn-sable); border-top: 1px solid var(--cn-ligne); }
.cn-news-in {
  max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 64px) 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.cn-news-txt { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.cn-news-txt h2 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1.2; margin: 0; }
.cn-news-txt p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cn-muted); }
.cn-news-form { display: flex; flex-direction: column; gap: 10px; flex: 1 1 320px; max-width: 480px; }
.cn-news-form form { display: flex; }
.cn-news-form input[type="email"] {
  flex: 1 1 0; background: #fff; border: 1px solid #C9BBA0; border-right: none;
  padding: 15px 18px; font-size: 15px; font-family: var(--font-sans); color: var(--cn-encre); min-width: 0;
}
.cn-news-form input[type="email"]::placeholder { color: #9A8F7C; }
.cn-news-form .note { font-size: 12px; color: #9A8F7C; }

/* ===== Footer ===== */
.cn-footer { background: var(--cn-carmin); color: #EBD5CC; }
.cn-footer-in {
  max-width: 1240px; margin: 0 auto; padding: 56px 24px 32px 24px;
  display: flex; flex-direction: column; gap: 40px;
}
.cn-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.cn-footer h4 {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--cn-or);
  margin: 0 0 4px 0; font-weight: 600;
}
.cn-footer-brand { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: #F8EFE3; }
.cn-footer p { margin: 0; font-size: 14px; line-height: 1.7; max-width: 340px; }
.cn-footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.cn-footer a { color: #EBD5CC; text-decoration: none; }
.cn-footer a:hover { color: var(--cn-or); }
.cn-footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #7A1B20; padding-top: 22px; font-size: 13px; color: var(--cn-rose);
}
.cn-footer-bottom a { color: var(--cn-rose); }

/* ===== Contenu standard (pages, articles, boutique) ===== */
.cn-content { max-width: 860px; margin: 0 auto; padding: 56px 24px; }
.cn-content h1, .cn-content h2 { font-family: var(--font-serif); }
.woocommerce .cn-content, .woocommerce-page .cn-content { max-width: 1240px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cn-strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-artisans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cn-strip-in { grid-template-columns: 1fr; gap: 18px; }
  .cn-artisans-grid, .cn-boutiques-grid { grid-template-columns: 1fr; }
  .cn-footer-cols { grid-template-columns: 1fr; }
  .cn-header-in { justify-content: center; }
  .cn-nav { justify-content: center; gap: 18px; }
  .cn-logo img { height: 48px; }
}
