/* ==========================================================================
   PARCHEMIN.CSS — Couche texture & vieillissement Corsaire Cook
   Palette inspirée : papier ancien, encre de Chine, cire rouge, laiton oxydé
   ========================================================================== */

/* ==========================================================================
   SURCHARGE DES VARIABLES — PALETTE PARCHEMIN
   ========================================================================== */

:root {
  /* Parchemin de base plus chaud et plus profond */
  --cc-ivoire:          #e8dfc6;
  --cc-blanc-casse:     #f2ead5;
  --cc-sable:           #c9ac72;
  --cc-sable-fonce:     #9e7d45;

  /* Bleus marine plus profonds, légèrement plus chauds */
  --cc-bleu-marine:     #0e1620;
  --cc-bleu-encre:      #162438;

  /* Nouvelles couleurs corsaire */
  --cc-rouge-cire:      #8b1a1a;
  --cc-rouge-cire-sombre: #5c0e0e;
  --cc-laiton:          #b8820a;
  --cc-laiton-clair:    #d4a82a;
  --cc-encre:           #1a160d;
  --cc-parchemin:       #e8dfc6;
  --cc-parchemin-fonce: #d4c49a;

  /* Bordures patinées */
  --cc-border-fin:      1px solid #c9ac72;
  --cc-border-patine:   1px solid rgba(184, 130, 10, 0.4);
}

/* ==========================================================================
   TEXTURE GRAIN — SUPERPOSITION GLOBALE
   ========================================================================== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BODY — FOND PARCHEMIN
   ========================================================================== */

body {
  background-color: #e8dfc6;
  background-image:
    radial-gradient(ellipse at 15% 85%, rgba(160, 110, 40, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(140, 95, 30, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 245, 210, 0.06) 0%, transparent 70%);
  color: var(--cc-encre);
}

/* ==========================================================================
   HEADER — PARCHEMIN PATINÉ
   ========================================================================== */

.cc-header {
  background-color: #dfd5b8;
  background-image:
    linear-gradient(to bottom, #d8cca8 0%, #dfd5b8 40%, #e2d8be 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
  border-bottom: 1px solid #9e7d45;
  box-shadow: 0 2px 12px rgba(30, 20, 8, 0.18), 0 1px 3px rgba(30, 20, 8, 0.1);
}

.cc-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(14, 22, 32, 0.2), 0 1px 4px rgba(14, 22, 32, 0.12);
}

/* Navigation principale */
.cc-header__nav a {
  font-family: var(--cc-font-corps);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cc-encre);
}

.cc-header__nav a::after {
  background-color: var(--cc-laiton);
  height: 1px;
}

.cc-header__nav a:hover {
  color: var(--cc-rouge-cire);
}

.cc-header__nav .current-menu-item a {
  color: var(--cc-rouge-cire);
}

/* ==========================================================================
   TYPOGRAPHIE — TITRES DRAMATIQUES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--cc-encre);
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700;
  font-style: italic;
}

h2 {
  font-weight: 700;
}

/* Surtitre style gravure */
.cc-surtitre {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cc-laiton);
  font-weight: 600;
}

/* Citation enrichie */
.cc-citation {
  color: var(--cc-rouge-cire);
  font-weight: 400;
}

/* ==========================================================================
   SÉPARATEURS ORNEMENTAUX
   ========================================================================== */

.cc-separateur {
  width: auto;
  height: auto;
  background: none;
  border: none;
  text-align: center;
  margin: var(--cc-space-md) auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
  color: var(--cc-laiton);
  opacity: 0.8;
}

.cc-separateur::before,
.cc-separateur::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cc-laiton), transparent);
}

.cc-separateur--centre::before,
.cc-separateur--centre::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cc-laiton), transparent);
}

/* Séparateur de section — filet laiton ornemental */
.cc-section-divider {
  text-align: center;
  margin: var(--cc-space-md) 0;
  color: var(--cc-laiton);
  font-size: 1rem;
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* ==========================================================================
   BOUTONS — STYLE CACHET & TAMPON
   ========================================================================== */

.cc-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 0.9rem 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Bouton primaire : encre profonde, liseré laiton */
.cc-btn--primaire {
  background-color: var(--cc-encre);
  border: 1px solid var(--cc-laiton);
  color: #f2ead5;
  box-shadow:
    inset 0 1px 0 rgba(212, 168, 42, 0.15),
    0 2px 8px rgba(14, 22, 32, 0.35),
    0 1px 2px rgba(14, 22, 32, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.cc-btn--primaire:hover {
  background-color: #0d1014;
  border-color: var(--cc-laiton-clair);
  color: var(--cc-laiton-clair);
  box-shadow:
    inset 0 1px 0 rgba(212, 168, 42, 0.2),
    0 4px 16px rgba(14, 22, 32, 0.4);
}

/* Bouton secondaire : contour laiton sur parchemin */
.cc-btn--secondaire {
  background-color: transparent;
  color: var(--cc-encre);
  border: 1px solid var(--cc-sable-fonce);
  box-shadow: 0 1px 4px rgba(30, 20, 8, 0.1);
}

.cc-btn--secondaire:hover {
  background-color: var(--cc-encre);
  color: var(--cc-parchemin);
  border-color: var(--cc-encre);
}

/* Bouton clair : parchemin chaud sur fond sombre */
.cc-btn--clair {
  background-color: #f2ead5;
  color: var(--cc-encre);
  border: 1px solid rgba(184, 130, 10, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.cc-btn--clair:hover {
  background-color: var(--cc-laiton-clair);
  color: var(--cc-encre);
  border-color: var(--cc-laiton);
}

/* Bouton cire — nouveau style cachet rouge */
.cc-btn--cire {
  background: radial-gradient(ellipse at 45% 35%, #b52222, var(--cc-rouge-cire-sombre));
  color: #f5e8d8;
  border: 1px solid rgba(139, 26, 26, 0.6);
  letter-spacing: 0.2em;
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 180, 0.2),
    0 3px 12px rgba(91, 14, 14, 0.5),
    0 1px 3px rgba(91, 14, 14, 0.3);
  text-shadow: 0 1px 2px rgba(60, 0, 0, 0.4);
}

.cc-btn--cire:hover {
  background: radial-gradient(ellipse at 45% 35%, #c42828, #6b0f0f);
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 180, 0.25),
    0 5px 18px rgba(91, 14, 14, 0.55);
  color: #fff5ec;
}

/* Lien flèche — en laiton */
.cc-lien-fleche {
  color: var(--cc-laiton);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.cc-lien-fleche:hover {
  color: var(--cc-encre);
}

/* ==========================================================================
   HERO HOME — VIGNETTE & PROFONDEUR
   ========================================================================== */

.cc-hero-home {
  position: relative;
}

.cc-hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 18, 0.85) 0%,
    rgba(10, 12, 18, 0.45) 40%,
    rgba(10, 12, 18, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.cc-hero-home__titre {
  color: #f2ead5;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.cc-hero-home__accroche {
  color: #c9ac72;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   SECTIONS — TEXTURES ET FOND ENRICHIS
   ========================================================================== */

/* Section ivoire — parchemin vieilli */
.cc-section--ivoire,
.cc-manifeste,
.cc-chroniques-home,
.cc-page-header {
  background-color: #e8dfc6;
  background-image:
    radial-gradient(ellipse at 10% 90%, rgba(150, 100, 30, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 10%, rgba(130, 85, 20, 0.04) 0%, transparent 50%);
}

/* Section sable — parchemin plus foncé */
.cc-section--sable,
.cc-bloc-ancrage {
  background-color: #d4c49a;
  background-image:
    radial-gradient(ellipse at 50% 80%, rgba(100, 65, 10, 0.08) 0%, transparent 60%);
}

/* Sections sombres — profondeur marine */
.cc-section--dark,
.cc-univers-narratif__texte,
.cc-piliers,
.cc-capture-email,
.cc-footer {
  background-color: #0a0f1a;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(26, 52, 88, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(22, 36, 56, 0.4) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
}

.cc-section--dark h1,
.cc-section--dark h2,
.cc-section--dark h3,
.cc-section--dark h4 {
  color: #f2ead5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MANIFESTE — TRAIT DÉCORATIF
   ========================================================================== */

.cc-manifeste {
  position: relative;
}

.cc-manifeste__titre {
  color: var(--cc-encre);
  font-weight: 700;
}

.cc-manifeste__titre::after {
  content: '✦ ✦ ✦';
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  margin-top: var(--cc-space-sm);
  color: var(--cc-laiton);
  opacity: 0.7;
  font-style: normal;
  font-family: var(--cc-font-corps);
}

/* ==========================================================================
   BLOC ANCRAGE — LISERÉ LAITON
   ========================================================================== */

.cc-bloc-ancrage__titre {
  color: var(--cc-encre);
  position: relative;
  display: inline-block;
}

.cc-bloc-ancrage__titre::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--cc-rouge-cire), var(--cc-laiton));
  margin: 0 auto var(--cc-space-sm);
}

.cc-bloc-ancrage__corps {
  color: var(--cc-encre);
}

/* ==========================================================================
   ARTICLE CARDS — PAPIER VIEILLI
   ========================================================================== */

.cc-article-card {
  background-color: rgba(232, 223, 198, 0.5);
  border-bottom: 1px solid #b89a5c;
  transition: box-shadow var(--cc-transition), transform var(--cc-transition);
}

.cc-article-card:hover {
  box-shadow: 0 4px 20px rgba(30, 20, 8, 0.15);
  transform: translateY(-2px);
}

.cc-article-card__titre {
  color: var(--cc-encre);
}

.cc-article-card__titre a:hover {
  color: var(--cc-rouge-cire);
}

.cc-article-card__date {
  color: var(--cc-laiton);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.cc-article-featured__titre {
  color: var(--cc-encre);
}

.cc-article-featured__extrait {
  color: #5a4e3a;
}

/* ==========================================================================
   PRODUIT VEDETTE
   ========================================================================== */

.cc-bloc-produit__texte-col {
  background-color: #e8dfc6;
  position: relative;
}

.cc-produit-inclus li {
  color: var(--cc-encre);
  border-bottom-color: #c9ac72;
}

.cc-produit-inclus li::before {
  content: '—';
  color: var(--cc-laiton);
}

.cc-produit-prix {
  color: var(--cc-rouge-cire);
  font-style: italic;
}

/* ==========================================================================
   UNIVERS NARRATIF
   ========================================================================== */

.cc-univers-narratif__texte {
  background-color: var(--cc-encre);
}

.cc-univers-narratif__texte h2,
.cc-univers-narratif__texte h3 {
  color: #f2ead5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.cc-univers-narratif__texte p {
  color: #c9ac72;
}

/* ==========================================================================
   PILIERS — NUMÉROS EN OR PATINÉ
   ========================================================================== */

.cc-pilier__numero {
  color: rgba(184, 130, 10, 0.3);
}

.cc-pilier {
  border-top-color: rgba(184, 130, 10, 0.25);
}

/* ==========================================================================
   CAPTURE EMAIL
   ========================================================================== */

.cc-capture-email h2 {
  color: #f2ead5;
}

.cc-capture-email p {
  color: #c9ac72;
}

.cc-capture-email__form,
.cc-form-placeholder {
  border-color: rgba(184, 130, 10, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #c9ac72;
}

/* ==========================================================================
   ARCHIVE / FILTRES
   ========================================================================== */

.cc-archive-header {
  background-color: #e8dfc6;
}

.cc-archive-header__titre {
  color: var(--cc-encre);
}

.cc-chroniques-filtres {
  background-color: #dfd5b8;
  border-bottom-color: #c9ac72;
}

.cc-chroniques-filtres__lien {
  color: #7a6a4e;
}

.cc-chroniques-filtres__lien:hover,
.cc-chroniques-filtres__lien.is-active {
  color: var(--cc-encre);
  border-bottom-color: var(--cc-rouge-cire);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.cc-pagination .page-numbers li a,
.cc-pagination .page-numbers li span {
  color: var(--cc-encre);
  border-color: #c9ac72;
  background-color: transparent;
}

.cc-pagination .page-numbers li .current,
.cc-pagination .page-numbers li a:hover {
  background-color: var(--cc-encre);
  color: #f2ead5;
  border-color: var(--cc-encre);
}

/* ==========================================================================
   PARTENAIRES
   ========================================================================== */

.cc-partenaire-bloc {
  border-top-color: var(--cc-laiton);
  border-top-width: 2px;
}

.cc-partenaire-bloc__icone {
  color: var(--cc-laiton);
}

.cc-partenaire-bloc__titre {
  color: var(--cc-encre);
}

.cc-partenaire-bloc__liste li::before {
  color: var(--cc-laiton);
}

/* ==========================================================================
   CONTACT — ONGLETS
   ========================================================================== */

.cc-contact-onglet {
  color: #7a6a4e;
}

.cc-contact-onglet:hover,
.cc-contact-onglet.is-active {
  color: var(--cc-encre);
  border-bottom-color: var(--cc-rouge-cire);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.cc-footer {
  background-color: #080d15;
}

.cc-footer__baseline {
  color: #6a5f4a;
}

.cc-footer__tagline {
  color: #c9ac72;
}

.cc-footer__col-titre {
  color: #7a6a4a;
  letter-spacing: 0.18em;
}

.cc-footer__nav a,
.cc-footer__nav-info a {
  color: #b09060;
}

.cc-footer__nav a:hover,
.cc-footer__nav-info a:hover {
  color: #f2ead5;
}

.cc-footer__separateur {
  border-top-color: rgba(184, 130, 10, 0.12);
}

.cc-footer__copyright,
.cc-footer__legal {
  color: #5a4e3a;
}

.cc-footer__legal a {
  color: #5a4e3a;
}

.cc-footer__legal a:hover {
  color: #c9ac72;
}

/* ==========================================================================
   PAGE HEADER INTÉRIEUR
   ========================================================================== */

.cc-page-header {
  background-color: #e0d4b0;
  background-image:
    linear-gradient(to bottom, #d8cca0 0%, #e0d4b0 100%);
  border-bottom: 1px solid #c9ac72;
}

.cc-page-header h1 {
  color: var(--cc-encre);
}

.cc-page-header__intro {
  color: #5a4e3a;
}

/* ==========================================================================
   PROSE — CONTENUS LONGS
   ========================================================================== */

.cc-prose a {
  color: var(--cc-rouge-cire);
}

.cc-prose a:hover {
  color: var(--cc-encre);
}

/* ==========================================================================
   HERO ÉDITORIAL — FOND MARINE PROFOND
   ========================================================================== */

.cc-hero-editorial {
  background-color: #080d15;
}

.cc-hero-editorial__titre {
  color: #f2ead5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   WOOCOMMERCE — COHÉRENCE PARCHEMIN
   ========================================================================== */

.woocommerce .price,
.woocommerce-Price-amount {
  color: var(--cc-rouge-cire) !important;
  font-family: var(--cc-font-titre);
  font-style: italic;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  background-color: var(--cc-encre) !important;
  color: #f2ead5 !important;
  border: 1px solid var(--cc-laiton) !important;
  letter-spacing: 0.12em !important;
  font-size: 0.75rem !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background-color: var(--cc-rouge-cire) !important;
  border-color: var(--cc-rouge-cire) !important;
  color: #f5e8d8 !important;
}

/* ==========================================================================
   LIEN FLÈCHE — SURCHARGE
   ========================================================================== */

.cc-lien-fleche--clair {
  color: #c9ac72;
}

.cc-lien-fleche--clair:hover {
  color: #f2ead5;
}

/* ==========================================================================
   SCROLL — BARRE PATINÉE
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #c9b888;
}

::-webkit-scrollbar-thumb {
  background: var(--cc-encre);
  border: 1px solid #c9b888;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cc-rouge-cire);
}

/* ==========================================================================
   SÉLECTION DE TEXTE
   ========================================================================== */

::selection {
  background-color: var(--cc-rouge-cire);
  color: #f5e8d8;
}

::-moz-selection {
  background-color: var(--cc-rouge-cire);
  color: #f5e8d8;
}

/* ==========================================================================
   KADENCE HEADER — SURCHARGE PARCHEMIN
   ========================================================================== */

#masthead,
.site-header,
#main-header,
.site-header-wrap,
.site-header-inner-wrap,
.site-header-upper-wrap,
.site-header-upper-inner-wrap,
.site-header-row-container,
.site-header-row-container-inner {
  background-color: #dfd5b8 !important;
  background-image:
    linear-gradient(to bottom, #d8cca8 0%, #dfd5b8 50%, #e2d8be 100%) !important;
  border-bottom: 1px solid #9e7d45 !important;
}

/* Kadence sticky header override */
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.site-main-header-wrap),
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
  background-color: #dfd5b8 !important;
}

/* Enlever les box-shadows Kadence */
.site-header-row-container {
  box-shadow: 0 2px 12px rgba(30, 20, 8, 0.18) !important;
}

/* Logo texte */
.site-branding .brand,
.site-branding .site-title,
.site-branding .site-title a {
  color: var(--cc-encre) !important;
  font-family: var(--cc-font-titre) !important;
  font-style: italic !important;
  letter-spacing: 0.02em !important;
}

/* Navigation Kadence — liens */
.main-navigation .nav-menu > li > a,
.main-navigation ul li a,
.header-navigation ul li a {
  color: var(--cc-encre) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  transition: color 0.25s ease !important;
}

.main-navigation .nav-menu > li > a:hover,
.main-navigation ul li a:hover,
.header-navigation ul li a:hover,
.main-navigation .current-menu-item > a,
.header-navigation .current-menu-item > a {
  color: var(--cc-rouge-cire) !important;
}

/* Soulignement laiton au survol */
.main-navigation .nav-menu > li > a::after,
.header-navigation ul li > a::after {
  background-color: var(--cc-laiton) !important;
}

/* Sous-menus dropdown */
.main-navigation ul ul,
.header-navigation ul ul {
  background-color: #d8cca8 !important;
  border: 1px solid #9e7d45 !important;
  box-shadow: 0 4px 16px rgba(30, 20, 8, 0.2) !important;
}

.main-navigation ul ul li a,
.header-navigation ul ul li a {
  background-color: #d8cca8 !important;
  color: var(--cc-encre) !important;
  border-bottom: 1px solid rgba(158, 125, 69, 0.3) !important;
}

.main-navigation ul ul li a:hover,
.header-navigation ul ul li a:hover {
  background-color: #cec09a !important;
  color: var(--cc-rouge-cire) !important;
}

/* Hamburger mobile */
.menu-toggle,
.kadence-menu-icon {
  color: var(--cc-encre) !important;
}

/* Icône panier WooCommerce */
.header-cart-button,
.header-account-button {
  color: var(--cc-encre) !important;
}

.header-cart-button:hover,
.header-account-button:hover {
  color: var(--cc-rouge-cire) !important;
}

/* Badge panier */
.header-cart-button .cart-count-wrap,
.cart-count {
  background-color: var(--cc-rouge-cire) !important;
  color: #f5e8d8 !important;
}

/* ==========================================================================
   KADENCE BODY / CONTENU GLOBAL
   ========================================================================== */

.site,
.site-content,
.wp-site-blocks {
  background-color: #e8dfc6;
}

/* Kadence containers */
.site-container {
  background-color: transparent;
}
