/* ============================================================
   BASE.CSS — Fondations globales du site Quynh Mai Art
   Chargé sur TOUTES les pages, avant le CSS spécifique à chaque page.
   ============================================================ */

/* ---------- Variables de marque ---------- */
:root {
  --color-bg-dark: #1a1a1a;      /* noir "marbre" du site */
  --color-gold: #daa520;         /* Or Antique, couleur signature */
  --color-gold-soft: #d4af37;    /* variante Or, boutons/bordures */
  --color-text-light: #fdfdfd;   /* blanc soie — texte sur fond sombre */
  --color-text-dark: #1a1a1a;    /* texte sombre — sur fond clair */
  --color-text-gold: #c59b27;    /* doré terreux — texte courant (paragraphes) */

  --font-title: "Cinzel", serif;
  --font-body: "Cormorant Garamond", serif;

  --radius: 10px;
  --space-section: 60px;
  --space-section-mobile: 40px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden; /* empêche le défilement horizontal sur mobile */
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--color-bg-dark);
  width: 100vw;
}

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

section {
  padding: 40px 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.container {
  max-width: 1100px;
  width: 95vw;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typographie ---------- */
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.3;
  color: var(--color-text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

p,
span,
strong,
em {
  color: var(--color-text-light);
}

p {
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.6;
}

/* ---------- Boutons (fidèle à la cascade réelle de style-3.css) ---------- */
.commander-btn,
.hero-btn,
.order-btn,
.intro-btn,
.gallery-btn,
.process-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 35px;
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-text-light);
  border-radius: 5px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-top: 30px;
  text-decoration: none;
}

/* Largeur contrainte pour ces 3 boutons */
.hero-btn,
.order-btn,
.gallery-btn {
  width: 100%;
  max-width: 300px;
}

/* Commander-btn : légèrement différent des autres (jamais harmonisé, on garde tel quel) */
.commander-btn {
  display: inline-block;
  margin-top: 60px;
}

/* Gallery/process : léger effet verre + bordure dorée, jamais unifié avec les autres */
.gallery-btn,
.process-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(218, 165, 32, 0.4);
}

/* Hover doré partagé */
.gallery-btn:hover,
.order-btn:hover,
.intro-btn:hover,
.category-btn:hover,
.process-btn:hover {
  background-color: var(--color-gold);
  color: var(--color-text-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: scale(1.02);
}

.commander-btn:hover {
  background: var(--color-text-light);
  color: var(--color-text-dark);
  border: 1px solid var(--color-gold);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-btn:hover {
  background: var(--color-text-light);
  color: var(--color-text-dark);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Category-btn : à part, fond clair (utilisé sur les cartes de catégories) */
.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f5f5f5;
  color: #000;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  border: 2px solid var(--color-gold);
  letter-spacing: 2px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-area {
  margin-top: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ---------- Navigation (bouton CTA du header) ---------- */
.nav .cta {
  color: #ffffff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 8px 22px;
  font-family: "Tenor Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  display: inline-block;
}

.nav .cta:hover {
  background-color: var(--color-gold-soft);
  color: var(--color-bg-dark);
  border-color: var(--color-gold-soft);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* ---------- Galerie (grille commune, utilisée par plusieurs pages : Animaux, Inspirations, Expo, Enfants, Adultes...) ---------- */
.gallery-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto;
}

.gallery-grid img,
.category-card img,
.animal img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.gallery-grid img,
.category-card img {
  aspect-ratio: 1/1;
}

.gallery-grid img:hover,
.category-card:hover,
.animal img:hover {
  transform: translateY(-8px) scale(1.02);
  cursor: pointer;
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.gallery-item-a {
  float: left;
  width: 300px;
  margin-bottom: 15px;
}

/* ---------- Lightbox (utilisé par plusieurs galeries) ---------- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 8px solid white;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), 0 4px 15px var(--color-gold-soft);
  animation: zoomIn 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--color-gold-soft);
  font-size: 50px;
  cursor: pointer;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ---------- Responsive global ---------- */
@media (max-width: 768px) {
  .gallery-grid,
  .category-grid,
  .process-container,
  .testimonials-grid,
  .order-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
  }
}