/* ════════════════════════════════════════════════════
   STYLE.CSS — DC SKAT — Charte graphique commune v2
   ════════════════════════════════════════════════════ */

/* ─── POLICE ARMATURE (self-hosted) ─────────────────── */
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Armature';
  src: url('assets/fonts/Armature-ExtraBoldItalic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ─── VARIABLES CHARTE DC SKAT ─────────────────────── */
:root {
  --vert:      #006633;
  --vert-dark: #004d26;
  --or:        #999933;
  --olive:     #999933;
  --beige:     #D9D2B6;
  --blanc:     #F5F4EE;
  --gris:      #4E5C54;
  --bronze:    #B8832F;
  --bronze-dk: #9a6c25;
  --noir:      #1A1A1A;
  --blanc-pur: #ffffff;

  --font-titre: 'Armature', sans-serif;
  --font-corps: 'Lato', sans-serif;

  --transition: 0.22s ease-out;
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corps);
  background: var(--blanc);
  color: var(--noir);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── FOCUS CLAVIER ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 2px;
}
.header :focus-visible,
.footer :focus-visible { outline-color: var(--or); }

/* ─── HEADER ─────────────────────────────────────────── */
.header {
  background: var(--vert);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--vert-dark);
  transition: box-shadow 0.3s ease-out;
}
.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; display: block; }
.logo-footer img { height: 28px; width: auto; display: block; }

/* Anciens styles texte conservés pour compatibilité */
.logo-badge { display: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .dc   { font-family: var(--font-titre); font-size: 1.4rem; font-weight: 800; color: var(--or); letter-spacing: 0.06em; text-transform: uppercase; }
.logo-text .skat { font-family: var(--font-titre); font-size: 1.4rem; font-weight: 800; color: var(--blanc-pur); letter-spacing: 0.06em; text-transform: uppercase; }
.logo-text .tagline { font-family: var(--font-corps); font-size: 0.6rem; color: rgba(255,255,255,0.55); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }

/* Nav desktop */
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  font-family: var(--font-corps);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  padding: 4px 0;
  margin: 0 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav a:hover, .nav a.active {
  color: var(--blanc-pur);
  border-bottom-color: var(--or);
}
/* CTA nav */
.nav a.nav-cta {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--bronze);
  color: var(--blanc-pur);
  padding: 10px 24px;
  margin-left: 1.2rem;
  border: none;
  border-bottom: none;
  border-top: 2px solid var(--or);
  letter-spacing: 0.08em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.nav a.nav-cta:hover {
  background: var(--bronze-dk);
  box-shadow: 0 4px 18px rgba(184,131,47,0.32);
  transform: translateY(-1px);
}
.nav a.nav-cta.active {
  background: var(--bronze-dk);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc-pur);
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menu mobile */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--vert-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 1.5rem 1.2rem;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-corps);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  padding: 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-mobile a:hover { color: var(--or); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.nav-cta {
  color: var(--bronze);
  border-bottom: none;
  margin-top: 0.6rem;
}
.nav-mobile a.nav-cta:hover { color: var(--bronze-dk); }

/* ─── BOUTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-corps);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  border-radius: 2px;
  line-height: 1;
}
/* CTA principal : bronze — apparaît exactement 1-2 fois par page */
.btn-devis { background: var(--bronze); color: var(--blanc-pur); }
.btn-devis:hover { background: var(--bronze-dk); }

/* Primaire : vert */
.btn-primary { background: var(--vert); color: var(--blanc-pur); }
.btn-primary:hover { background: var(--vert-dark); }

/* Secondaire : outline vert */
.btn-secondary { background: transparent; color: var(--vert); border: 2px solid var(--vert); padding: 13px 30px; }
.btn-secondary:hover { background: var(--vert); color: var(--blanc-pur); }

/* Sur fonds sombres (vert) */
.btn-blanc { background: var(--blanc-pur); color: var(--vert); }
.btn-blanc:hover { background: var(--blanc); }
.btn-outline-blanc { background: transparent; color: var(--blanc-pur); border: 2px solid rgba(255,255,255,0.55); padding: 13px 30px; }
.btn-outline-blanc:hover { border-color: var(--blanc-pur); background: rgba(255,255,255,0.1); }

/* Outline vert (sur fonds clairs) */
.btn-outline { background: transparent; color: var(--vert); border: 2px solid var(--vert); padding: 13px 30px; }
.btn-outline:hover { background: var(--vert); color: var(--blanc-pur); }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ─── TYPOGRAPHIE SECTIONS (classes partagées) ────────── */
/* Eyebrow : petit label au-dessus des titres H2 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-corps);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--or);
  flex-shrink: 0;
}
/* Variante sur fond sombre */
.eyebrow-light { color: rgba(255,255,255,0.88); }

/* Titres H2 avec contraste de graisse ExtraBold / Thin */
.h2-split { display: flex; flex-direction: column; line-height: 1.05; margin-bottom: 2rem; }
.h2-thin {
  font-family: var(--font-titre);
  font-weight: 100;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  color: var(--vert);
  letter-spacing: 0.01em;
}
.h2-bold {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  text-transform: uppercase;
  color: var(--vert);
  letter-spacing: -0.01em;
  line-height: 0.95;
}
/* Variantes sur fond sombre */
.h2-thin-light { color: rgba(255,255,255,0.65); }
.h2-bold-light { color: var(--blanc-pur); }

/* ─── SECTIONS COMMUNES ───────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

/* Diviseur diagonal blanc-pur → beige (entre hero et univers) */
.angle-divider {
  height: 52px;
  position: relative;
  overflow: hidden;
}
.angle-divider--to-beige { background: var(--blanc-pur); }
.angle-divider--to-beige::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--beige);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.angle-divider--to-blanc { background: var(--beige); }
.angle-divider--to-blanc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blanc-pur);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--vert-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { }
.footer-desc {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-top: 0.9rem;
  max-width: 240px;
}
.footer-contact {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
}
.footer-contact a { color: var(--or); transition: color var(--transition); }
.footer-contact a:hover { color: var(--blanc-pur); }
.footer-col h4 {
  font-family: var(--font-titre);
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--blanc-pur);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--or); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.28); transition: color var(--transition); }
.footer-legal a:hover { color: var(--or); }

/* ─── RESPONSIVE GLOBAL ───────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav    { display: none; }
  .burger { display: flex; }
  .footer-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-desc   { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 3rem 1.5rem; }
  .angle-divider { height: 36px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 1.2rem; }
  .logo img { height: 30px; }
}

/* ─── BOUTIQUES EN CONSTRUCTION (boutique-*.html) ──────
   Structure commune — le thème de chaque univers est
   défini dans le <style> de la page concernée.
   ──────────────────────────────────────────────────── */
.cs-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Lien retour dans le header simplifié */
.cs-back {
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.80);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  transition: color var(--transition), border-color var(--transition);
}
.cs-back:hover { color: var(--blanc-pur); border-bottom-color: var(--or); }

.cs-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.cs-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Titre : contraste ExtraBold / Thin (repris des pages univers) */
.cs-h1 { display: flex; flex-direction: column; margin: 0.8rem 0 1.6rem; }
.cs-h1-main {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.cs-h1-sub {
  font-family: var(--font-titre);
  font-weight: 100;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  line-height: 1.1;
  padding-left: 0.18em;
}
.cs-lead {
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

/* Indicateur de mise en ligne (barre indéterminée) */
.cs-status { max-width: 440px; margin-bottom: 2.2rem; }
.cs-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-corps);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.cs-status-label { display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
/* Couleurs fournies par la page : --cs-bar (accent) et --cs-track (rail) */
.cs-status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--cs-bar);
  animation: cs-pulse 1.8s ease-in-out infinite;
}
.cs-track {
  height: 4px;
  position: relative;
  overflow: hidden;
  background: var(--cs-track);
}
.cs-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: var(--cs-bar);
  animation: cs-slide 2.6s ease-in-out infinite;
}
@keyframes cs-slide { to { left: 100%; } }
@keyframes cs-pulse { 50% { opacity: 0.25; } }

.cs-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.cs-meta a { font-weight: 700; border-bottom: 1px solid; padding-bottom: 1px; }

/* Carte « bientôt en rayon » */
.cs-card { padding: 2rem 2rem 1.7rem; position: relative; }
/* Étiquette de lot : coin top-right coupé (High Tech, Déstockage) */
.cs-card--cut { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.cs-card-label {
  font-family: var(--font-corps);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cs-card-title {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 0.5rem 0 1.2rem;
}
.cs-list { border-top: 1px solid; }
.cs-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid;
}
.cs-list-num {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 0.85rem;
  width: 1.6rem;
  flex-shrink: 0;
}
.cs-list-name {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  flex: 1;
}
.cs-list-tag {
  font-family: var(--font-corps);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.cs-card-foot { margin-top: 1.1rem; font-size: 0.78rem; line-height: 1.6; }

/* Footer compact */
.cs-foot { background: var(--vert-dark); padding: 1.3rem 1.5rem; }
.cs-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
}
.cs-foot p { font-size: 0.72rem; color: rgba(255,255,255,0.4); }

@media (max-width: 900px) {
  .cs-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 480px) {
  .cs-main { padding: 3rem 1.2rem 4rem; }
  .cs-card { padding: 1.6rem 1.3rem 1.4rem; }
  .cs-foot-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── PREFERS-REDUCED-MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
