/*
 * Theme Name:  Thieuley Child
 * Theme URI:   https://thieuley.com
 * Description: Thème enfant Château Thieuley — WordPress + Elementor Pro + WooCommerce
 * Author:      Château Thieuley
 * Author URI:  https://thieuley.com
 * Template:    hello-elementor
 * Version:     1.0.0
 * Text Domain: thieuley-child
 * License:     Private
 */


/* ============================================================
   POLICES CUSTOM — @font-face
   Elementor ne peut pas déclarer ces polices sans ce fichier
   ============================================================ */

@font-face {
  font-family: 'D-DIN Condensed';
  src: url('assets/fonts/D-DINCondensed.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'D-DIN Condensed';
  src: url('assets/fonts/D-DINCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Secret Things';
  src: url('assets/fonts/TheSecretThings.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   BASE MINIMALE
   Uniquement ce qu'Elementor ne gère pas
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }


/* ============================================================
   CLASSES UTILITAIRES .ct-*
   Appliquées dans le champ "Classes CSS" des widgets Elementor
   ============================================================ */

.ct-text-white   { color: #FFFFFF !important; }
.ct-text-primary { color: #719164 !important; }
.ct-text-accent  { color: #8B7355 !important; }
.ct-text-muted   { color: #6B6B6B !important; }
.ct-text-center  { text-align: center; }

.ct-font-din    { font-family: 'D-DIN Condensed', system-ui, sans-serif !important; }
.ct-font-script { font-family: 'The Secret Things', cursive !important; }

.ct-rule {
  display: block;
  width: 40px;
  height: 1px;
  background-color: #8B7355;
  margin: 1.25rem 0;
}
.ct-rule--center { margin-left: auto; margin-right: auto; }


/* ============================================================
   BADGES SOUS-MARQUE
   Utilisés dans les HTML widgets et WooCommerce
   ============================================================ */

.ct-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 1;
}
.ct-badge--thieuley { background-color: #EFF3EF; color: #2A3F2B; }
.ct-badge--csa      { background-color: #1A2B1A; color: #C4A862; }
.ct-badge--ms       { background-color: #F5EAE3; color: #A05E3E; }


/* ============================================================
   WOOCOMMERCE — CT-CARD
   Styles des cards produit (loop, archives, shortcodes)
   ============================================================ */

.ct-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.ct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
}
.ct-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.ct-card__img,
.ct-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ct-card:hover .ct-card__img,
.ct-card:hover .ct-card__thumb img { transform: scale(1.04); }

.ct-card__body { padding: 1rem 1rem 0.5rem; flex: 1; }

.ct-card__appellation {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
  margin: 0 0 0.35rem;
}
.ct-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1A1A1A;
  margin: 0 0 0.35rem;
}
.ct-card__title a { color: inherit; text-decoration: none; }
.ct-card__title a:hover { color: #719164; }

.ct-card__millesime {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: #9B9B9B;
  margin: 0 0 0.5rem;
}
.ct-card__price .price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #719164;
}

.ct-card__footer { padding: 0 1rem 1rem; }
.ct-card__footer .button,
.ct-card__footer a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: #719164;
  color: #FFFFFF;
  border-radius: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ct-card__footer .button:hover,
.ct-card__footer a.button:hover { background: #2F4530; }
