/**
 * Utopik Photo — Kit Composants CSS
 * Version: 1.0.0
 * Thème enfant: Lhasa (Photography by ThemeGoods)
 *
 * Polices requises (à charger via functions.php) :
 *   - Dancing Script 500
 *   - Playfair Display 400,700,400i
 *   - Cormorant Garamond 300,400,500,300i,400i
 */

/* ============================================
   VARIABLES
   ============================================ */
.utk-titre,
.utk-hero,
.utk-asym,
.utk-btn,
.utk-sep {
  --utk-cream: #FAF8F5;
  --utk-charcoal: #2A2A2A;
  --utk-warm-gray: #8C8478;
  --utk-gold: #ceb078;
  --utk-gold-light: #E8D5B0;
  --utk-blush: #F0E4DB;
  --utk-script: 'Dancing Script', cursive;
  --utk-serif: 'Playfair Display', Georgia, serif;
  --utk-body: 'Cormorant Garamond', Georgia, serif;
}

/* ============================================
   BLOC 1 — [utk_titre]
   Titre script + serif avec description
   ============================================ */
.utk-titre {
  text-align: center;
  padding: 48px 24px 40px;
}
.utk-titre__script {
  font-family: var(--utk-script);
  font-size: 34px;
  font-weight: 500;
  color: var(--utk-gold);
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}
.utk-titre__main {
  font-family: var(--utk-serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--utk-charcoal);
  margin: 0;
}
.utk-titre__desc {
  font-family: var(--utk-body);
  font-size: 18px;
  color: var(--utk-warm-gray);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Variante: aligné à gauche */
.utk-titre--left {
  text-align: left;
}
.utk-titre--left .utk-titre__desc {
  margin-left: 0;
}

/* Variante: avec séparateur */
.utk-titre--sep::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--utk-gold-light);
  margin: 32px auto 0;
}
.utk-titre--left.utk-titre--sep::after {
  margin-left: 0;
}

/* ============================================
   BLOC 2 — [utk_hero]
   Hero pleine largeur + texte manuscrit
   ============================================ */
.utk-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--utk-charcoal);
  background-size: cover;
  background-position: center;
}
.utk-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0.45);
  z-index: 1;
}
.utk-hero__content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding: 56px 48px;
}
.utk-hero__script {
  font-family: var(--utk-script);
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.utk-hero__sub {
  font-family: var(--utk-body);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--utk-gold-light);
  margin-top: 24px;
}

/* Variante: texte centré */
.utk-hero--center .utk-hero__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Variante: texte à droite */
.utk-hero--right .utk-hero__content {
  margin-left: auto;
}

/* ============================================
   BLOC 3 — [utk_layout_asym]
   Layout asymétrique photos + texte centré
   ============================================ */
.utk-asym {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 48px 0;
}
.utk-asym__photo {
  border-radius: 2px;
  overflow: hidden;
}
.utk-asym__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.utk-asym__photo--left {
  aspect-ratio: 3/4;
}
.utk-asym__photo--right {
  aspect-ratio: 3/4;
}
.utk-asym__center {
  text-align: center;
  padding: 0 12px;
}
.utk-asym__script {
  font-family: var(--utk-script);
  font-size: 28px;
  font-weight: 500;
  color: var(--utk-gold);
  margin-bottom: 4px;
  line-height: 1.3;
}
.utk-asym__title {
  font-family: var(--utk-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--utk-charcoal);
  margin: 0 0 16px;
}
.utk-asym__desc {
  font-family: var(--utk-body);
  font-size: 17px;
  color: var(--utk-warm-gray);
  line-height: 1.6;
}

/* Variante: inversé (photo droite plus grande) */
.utk-asym--reverse {
  grid-template-columns: 0.8fr 1.4fr 1fr;
}

/* Responsive */
@media (max-width: 768px) {
  .utk-asym,
  .utk-asym--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .utk-asym__photo--left,
  .utk-asym__photo--right {
    max-height: 300px;
  }
  .utk-asym__photo img {
    max-height: 300px;
  }
  .utk-titre__main {
    font-size: 36px;
  }
  .utk-hero__script {
    font-size: 30px;
  }
  .utk-hero__content {
    padding: 40px 24px;
  }
  .utk-asym__title {
    font-size: 30px;
  }
}

/* ============================================
   BLOC 4 — [utk_bouton]
   Bouton CTA stylisé
   ============================================ */
.utk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--utk-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 1.5px solid var(--utk-charcoal);
  color: var(--utk-charcoal);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}
.utk-btn:hover {
  background: var(--utk-charcoal);
  color: #fff;
  text-decoration: none;
}
.utk-btn__arrow {
  transition: transform 0.3s ease;
  font-size: 16px;
}
.utk-btn:hover .utk-btn__arrow {
  transform: translateX(4px);
}

/* Variante: gold */
.utk-btn--gold {
  border-color: var(--utk-gold);
  color: var(--utk-gold);
}
.utk-btn--gold:hover {
  background: var(--utk-gold);
  color: #fff;
}

/* Variante: rempli */
.utk-btn--filled {
  background: var(--utk-charcoal);
  color: #fff;
  border-color: var(--utk-charcoal);
}
.utk-btn--filled:hover {
  background: transparent;
  color: var(--utk-charcoal);
}

/* Variante: rempli gold */
.utk-btn--filled-gold {
  background: var(--utk-gold);
  color: #fff;
  border-color: var(--utk-gold);
}
.utk-btn--filled-gold:hover {
  background: transparent;
  color: var(--utk-gold);
}

/* Variante: grand */
.utk-btn--lg {
  padding: 18px 40px;
  font-size: 14px;
}

/* ============================================
   UTILITAIRE — Séparateur décoratif
   ============================================ */
.utk-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
}
.utk-sep__line {
  flex: 1;
  max-width: 120px;
  height: 0.5px;
  background: var(--utk-gold-light);
}
.utk-sep__diamond {
  width: 6px;
  height: 6px;
  border: 1px solid var(--utk-gold);
  transform: rotate(45deg);
}

/* =========================================================================
 * UTK EVENT PAGE — Cartes, grille, vidéo, CTA
 * ======================================================================= */

/* Grille 2 colonnes responsive */
.utk-event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .utk-event-grid {
        grid-template-columns: 1fr;
    }
}

/* Cartes */
.utk-event-card {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 32px 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.utk-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    border-color: #ddd;
}
.utk-event-card__icon {
    width: 44px;
    height: 44px;
    color: #c9a66b; /* à ajuster sur ta couleur accent UTK */
    margin-bottom: 18px;
}
.utk-event-card__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.utk-event-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}
.utk-event-card p {
    margin: 0;
    line-height: 1.65;
    color: #555;
}

/* Vidéo */
.utk-event-video {
    max-width: 700px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.utk-event-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA final */
.utk-event-cta {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
    box-sizing: border-box;
}
.utk-event-cta h2 {
    color: #fff;
    margin: 0 0 15px;
    font-size: 1.8rem;
}
.utk-event-cta p {
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: .9;
    line-height: 1.65;
}

/* ============================================
   PRESTATIONS GRID + CARTE PRESTATION
   Ajouté v1.0.2
   ============================================ */

.utk-prestations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.utk-prestations-grid > .utk-carte-prestation {
    flex: 1 1 300px;
    max-width: 380px;
    min-width: 0;
}

/* ----- Carte ----- */
.utk-carte-prestation {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6e2d8;
    border-radius: 16px;
    padding: 2.5rem 1.75rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.utk-carte-prestation:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Variante highlight : carte mise en avant */
.utk-carte-prestation--highlight {
    background: #2c2c2c;
    color: #f5f3f0;
    border-color: #9e8d3e;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
}

.utk-carte-prestation--highlight:hover {
    transform: translateY(-12px);
}

/* ----- Badge ----- */
.utk-carte-prestation__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #9e8d3e;
    color: #ffffff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.5px;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(158, 141, 62, 0.3);
}

/* ----- Header ----- */
.utk-carte-prestation__header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e6e2d8;
}

.utk-carte-prestation--highlight .utk-carte-prestation__header {
    border-bottom-color: rgba(245, 243, 240, 0.15);
}

.utk-carte-prestation__titre {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
    color: inherit;
    line-height: 1.2;
}

.utk-carte-prestation__prix {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
}

.utk-carte-prestation__prefix {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.7;
}

.utk-carte-prestation__montant {
    font-size: 2rem;
    font-weight: 700;
    color: #9e8d3e;
    letter-spacing: -0.5px;
}

.utk-carte-prestation--highlight .utk-carte-prestation__montant {
    color: #c9b558;
}

/* ----- Intro ----- */
.utk-carte-prestation__intro {
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    margin: 0 0 1.25rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* ----- Features list ----- */
.utk-carte-prestation__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.utk-carte-prestation__features li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
    border-bottom: 1px solid #f0ece4;
}

.utk-carte-prestation__features li:last-child {
    border-bottom: none;
}

.utk-carte-prestation--highlight .utk-carte-prestation__features li {
    border-bottom-color: rgba(245, 243, 240, 0.08);
}

.utk-carte-prestation__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #9e8d3e;
}

.utk-carte-prestation--highlight .utk-carte-prestation__features li::before {
    background: #c9b558;
}

/* ----- CTA ----- */
.utk-carte-prestation__cta {
    text-align: center;
    margin-top: auto;
}

.utk-carte-prestation__cta .utk-btn {
    width: 100%;
    justify-content: center;
}

/* ----- Responsive ----- */
@media (max-width: 860px) {
    .utk-prestations-grid {
        flex-direction: column;
        align-items: center;
    }

    .utk-prestations-grid > .utk-carte-prestation {
        flex: 1 1 auto;
        width: 100%;
        max-width: 440px;
    }

    .utk-carte-prestation--highlight {
        transform: none;
    }

    .utk-carte-prestation--highlight:hover {
        transform: translateY(-4px);
    }
}