/* =========================================================
   COMPLÉMENT CSS — L'Atelier de Voray
   Ce fichier complète main.css (le design d'origine) :
   1. Variables CSS manquantes utilisées par main.css
   2. Petits ajustements liés à la version PHP (logo + slogan, etc.)
   Chargé APRÈS main.css.
   ========================================================= */

:root {
  /* Variables référencées par main.css mais non définies à l'origine */
  --text: #2a1431;            /* texte principal (= aubergine-deep) */
  --text-muted: #7a6680;      /* texte secondaire, doux */
  --border: #e3d6ea;          /* bordures discrètes, ton lavande */
  --lavande-ultra: #f4eef7;   /* lavande très pâle, fonds de survol */
  --space-2xl: 6rem;          /* grand espacement vertical de sections */
}

/* =========================================================
   LOGO : nom + slogan configurables (header)
   Le design d'origine n'avait que le nom ; on ajoute proprement
   un petit slogan sous le nom, dans l'esprit du site.
   ========================================================= */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--aubergine);
  letter-spacing: -0.01em;
}
.logo-amp { color: var(--or); font-style: normal; }
.logo-sub {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-top: 2px;
}

@media (max-width: 480px) {
  .logo-name { font-size: 1.15rem; }
  .logo-sub { font-size: 0.58rem; letter-spacing: 0.12em; }
}

/* =========================================================
   Lien d'évitement (accessibilité) — visible au focus clavier
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--aubergine);
  color: var(--ivoire);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Newsletter dans le footer (mini-formulaire)
   ========================================================= */
.footer-newsletter-row {
  display: flex;
  gap: 0.4rem;
  max-width: 320px;
}
.footer-newsletter-row input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(250,246,242,0.2);
  background: rgba(250,246,242,0.08);
  color: var(--ivoire);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
}
.footer-newsletter-row input::placeholder { color: rgba(250,246,242,0.5); }
.footer-newsletter-row input:focus {
  outline: none;
  border-color: var(--or);
  background: rgba(250,246,242,0.12);
}
.footer-newsletter-row button {
  width: 42px;
  flex-shrink: 0;
  background: var(--or);
  color: var(--aubergine-deep);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-fast);
}
.footer-newsletter-row button:hover { background: var(--or-clair); }
.footer-newsletter-msg { font-size: 0.8rem; margin-top: 0.5rem; min-height: 1rem; }
.footer-newsletter-msg.success { color: var(--or-clair); }
.footer-newsletter-msg.error { color: var(--rose-poudre); }
/* =========================================================
   COMPLÉMENTS — éléments ajoutés au portage PHP
   Ce fichier complète main.css sans le modifier.
   Chargé APRÈS main.css dans le layout.
   ========================================================= */

/* ---- Cartes catégories sur l'accueil (version simple icône + titre) ---- */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: var(--space-lg) var(--space-md);
  aspect-ratio: auto;
  min-height: 180px;
  background: var(--lavande-pale);
  border: 1px solid transparent;
}
.category-card:hover {
  transform: translateY(-4px);
  background: var(--ivoire);
  border-color: var(--lavande);
  box-shadow: var(--shadow-lg);
}
.category-card-icon {
  font-size: 2rem;
  color: var(--or);
  transition: var(--t-base);
}
.category-card:hover .category-card-icon {
  transform: scale(1.15) rotate(8deg);
}
.category-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--aubergine);
  font-style: italic;
}
.category-card-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--t-base);
}
.category-card:hover .category-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section vidéo YouTube (accueil) ---- */
.home-video-section {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.home-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--aubergine);
  border: 1px solid var(--lavande);
}
.home-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Section vidéo sur la page produit ---- */
.product-video-section {
  margin-top: var(--space-xl, 4rem);
}
.product-video-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--aubergine);
  border: 1px solid var(--lavande);
}
.product-video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.product-video-secondaries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md, 1.5rem);
  margin-top: var(--space-md, 1.5rem);
}
.product-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(61,31,71,0.12));
  background: var(--aubergine);
  border: 1px solid var(--lavande);
}
.product-video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
