/*
Theme Name: CATHY Theme
Theme URI: https://example.com/cathy
Author: Cathy Buffet
Description: Thème portfolio sur-mesure, minimaliste et entièrement personnalisable via le Customizer.
Version: 1.1.0
Text Domain: cathy
*/

/* NOTE: Ce thème utilise TailwindCSS via CDN (chargé en footer pour ne pas bloquer le rendu). */

:root {
  --color-primary: #EBA937;
  --color-secondary: #F2D7D0;
  --color-tertiary: #E3D7E5;
  --color-dark: #1A1A1A;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-dark);
  background-color: #ffffff;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* Corrections WordPress admin bar */
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav { top: 46px; } }

/* =========================================
   CONTACT FORM 7 STYLES
   ========================================= */
.wpcf7 { max-width: 100%; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; gap: 0; } }
.form-row { margin-bottom: 1.5rem; }
.wpcf7 label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #6b7280; display: block;
  margin-bottom: 0.5rem; font-family: 'Inter', sans-serif;
}
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
  width: 100%; background-color: #f3f4f6; border: 1px solid transparent;
  border-radius: 0; padding: 1rem; font-family: 'Inter', sans-serif;
  color: #1f2937; font-size: 0.95rem; box-sizing: border-box; transition: all 0.2s ease;
}
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
  outline: none; background-color: #ffffff; border-color: #d1d5db;
  box-shadow: 0 0 0 3px rgba(235, 169, 55, 0.15);
}
.wpcf7-form-control.wpcf7-submit {
  width: 100%; background-color: #1A1A1A; color: #ffffff; padding: 1.25rem;
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.1em; border: none; cursor: pointer;
  transition: background-color 0.3s ease; margin-top: 1rem;
}
.wpcf7-form-control.wpcf7-submit:hover { background-color: #333333; }
.wpcf7-not-valid-tip { font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; }
.wpcf7-response-output {
  border: 2px solid #EBA937 !important; padding: 1rem !important;
  font-size: 0.9rem; text-align: center;
}

/* =========================================
   PORTFOLIO — Évite l'effondrement des images avant chargement CSS
   Sans ça, les items ont height:0 si Tailwind tarde à se charger
   ========================================= */
.portfolio-item {
  display: block;
  min-height: 200px;
}
.portfolio-item .aspect-\[2\/3\] {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* ratio 2:3 en CSS pur, fallback si Tailwind absent */
  overflow: hidden;
}
.portfolio-item .aspect-\[2\/3\] img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
video.cathy-lazy-video {
  background-color: #f3f4f6; /* Fond neutre pendant le chargement */
}

/* =========================================
   LAZY VIDEO — placeholder avant chargement
   ========================================= */

/* Ingrédients */
.recipe-ingredients { font-size: 0.95rem; line-height: 2; }
.recipe-ingredients ul { list-style: none; padding: 0; margin: 0; }
.recipe-ingredients li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.recipe-ingredients li::before {
  content: '•'; color: #EBA937; font-weight: bold; font-size: 1.5em;
  position: absolute; left: 0; top: -0.2em;
}

/* Instructions */
.recipe-instructions ol { list-style: none; counter-reset: recipe-step; padding: 0; }
.recipe-instructions ol li {
  counter-increment: recipe-step; position: relative;
  padding-left: 3rem; margin-bottom: 1.5rem;
}
.recipe-instructions ol li::before {
  content: counter(recipe-step); background-color: #EBA937; color: white;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; text-align: center;
  line-height: 1.8rem; font-weight: bold; font-size: 0.8rem;
  position: absolute; left: 0; top: 0; font-family: 'Inter', sans-serif;
}
.recipe-instructions h4 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: bold;
  margin-top: 1.5rem; margin-bottom: 0.5rem; color: #1A1A1A;
}

/* PROSE overrides */
.prose { font-size: 1.1rem; line-height: 1.8; color: #374151; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: 'Playfair Display', serif; color: #1A1A1A;
  font-weight: 700; margin-top: 2em; margin-bottom: 0.5em;
}
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose a { color: #EBA937; text-decoration: none; font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: #1A1A1A; font-weight: 700; }
.prose ul, .prose ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose p { margin-bottom: 1.5em; }

/* =========================================
   ACCESSIBILITÉ — focus visible
   ========================================= */
:focus-visible {
  outline: 2px solid #EBA937;
  outline-offset: 3px;
}

/* =========================================
   HERO — Fallbacks CSS si Tailwind tarde à charger
   ========================================= */
/* Conteneur principal hero image */
header .relative.h-\[650px\] {
  height: 650px;
}
/* Div "polaroid" hero : h-full référence le parent 650px */
header .absolute.top-0.right-10 {
  width: 450px;
  height: 100%;
}
header .absolute.top-0.right-10 img,
header .absolute.top-0.right-10 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Polaroid secondaire */
header .absolute.bottom-20.left-0 {
  width: 256px;
  height: 320px;
}
header .absolute.bottom-20.left-0 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* About section portrait */
.relative.w-full.max-w-sm {
  min-height: 300px;
}



/* ═══════════════════════════════════════════════════════════════
   PAGE TARIFS — Styles natifs (pas de dépendance Tailwind)
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero en-tête ──────────────────────────────────────────── */
.cathy-tarifs-hero {
  position: relative;
  padding: 6rem 1.5rem 3.5rem;
  background: #FFF9F2;
  overflow: hidden;
}
.cathy-tarifs-deco-r {
  position: absolute;
  top: 0; right: 0;
  width: 33%; height: 100%;
  opacity: .08;
  transform: skewX(-12deg);
  transform-origin: top right;
}
.cathy-tarifs-deco-l {
  position: absolute;
  bottom: 0; left: 0;
  width: 260px; height: 260px;
  border-radius: 50%;
  opacity: .18;
  transform: translate(-35%, 35%);
}
.cathy-tarifs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  margin: 0 auto;
}
.cathy-page-tagline {
  display: inline-block;
  border-bottom: 3px solid;
  padding-bottom: 3px;
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.cathy-tarifs-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.cathy-tarifs-intro {
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.7;
  max-width: 520px;
}

/* ── Section principale ────────────────────────────────────── */
.cathy-tarifs-section {
  padding: 4rem 1.5rem 3rem;
  background: #fff;
}
.cathy-tarifs-wrap {
  max-width: 1152px;
  margin: 0 auto;
}
.cathy-tarifs-header {
  text-align: left;
  margin-bottom: 2.5rem;
}
.cathy-tarifs-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #1A1A1A;
  margin: 0 0 .6rem;
}
.cathy-tarifs-rule {
  width: 4rem;
  height: 3px;
  border-radius: 2px;
}

/* ── Images en quinconce ───────────────────────────────────── */
.cathy-tarifs-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: flex-start; /* hauteur par le contenu */
}
.cathy-tarif-img-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transition: transform .3s ease, box-shadow .3s ease;
  line-height: 0;
}
.cathy-tarif-img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.cathy-tarif-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
/* Décalage de la colonne centrale vers le bas — l'effet quinconce */
.cathy-img-offset {
  margin-top: 3rem;
}
.cathy-tarif-img-empty {
  display: none;
}

/* ── Grille de cartes ──────────────────────────────────────── */
.cathy-tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.cathy-tarif-card {
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cathy-tarif-card:hover {
  transform: translateY(-3px);
}

/* ── Contenu de la carte ───────────────────────────────────── */
.cathy-tarif-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  line-height: 1.25;
}
.cathy-tarif-card-sub {
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}
.cathy-tarif-divider {
  height: 1px;
  margin: .25rem 0;
}
.cathy-tarif-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
}
.cathy-tarif-items li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  line-height: 1.45;
}
.cathy-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
}

/* ── Bouton prix ───────────────────────────────────────────── */
.cathy-tarif-price-block {
  margin-top: 1rem;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.cathy-tarif-btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cathy-tarif-btn:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.cathy-tarif-note {
  font-size: .72rem;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

/* ── Note bas de grille ────────────────────────────────────── */
.cathy-tarifs-footnote {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
  padding-bottom: 3rem;
  font-size: .875rem;
  color: #6b7280;
  font-style: italic;
}

/* ── CTA final ─────────────────────────────────────────────── */
.cathy-tarifs-cta {
  padding: 4rem 1.5rem;
  background: #1A1A1A;
  color: #fff;
}
.cathy-tarifs-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cathy-tarifs-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  font-style: italic;
  margin: 0 0 .75rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .cathy-tarifs-cta-title {
    white-space: normal;
    font-size: 1.3rem;
  }
}
.cathy-tarifs-cta-sub {
  color: #9ca3af;
  font-size: .875rem;
  margin: 0 0 2rem;
}
.cathy-tarifs-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cathy-tarifs-cta-btn-primary,
.cathy-tarifs-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}
.cathy-tarifs-cta-btn-primary { color: #fff; }
.cathy-tarifs-cta-btn-primary:hover { opacity: .9; transform: translateY(-2px); }
.cathy-tarifs-cta-btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
}
.cathy-tarifs-cta-btn-ghost:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cathy-tarifs-imgs,
  .cathy-tarifs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  /* Pas de quinconce sur mobile */
  .cathy-img-offset { margin-top: 0; }
  .cathy-tarif-card { padding: 1.5rem; }
  /* Empêcher l'élévation de la carte highlight sur mobile */
  .cathy-tarif-card[style*="translateY"] {
    transform: none !important;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cathy-tarifs-imgs,
  .cathy-tarifs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cathy-tarifs-imgs > *:last-child,
  .cathy-tarifs-grid > *:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PAGE TARIFS VIDÉO
   ═══════════════════════════════════════════════════════════════ */

.cathy-tarifv-section {
  padding: 4rem 1.5rem 3rem;
  background: #fff;
}

/* ── Grille ───────────────────────────────────────────────────── */
.cathy-tarifv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* fallback */
  gap: 2rem;
  align-items: start;
}

/* ── Carte ────────────────────────────────────────────────────── */
.cathy-tarifv-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  width: 100%;
}
.cathy-tarifv-card:hover {
  transform: translateY(-4px);
}

/* ── Zone vidéo ───────────────────────────────────────────────── */
.cathy-tarifv-video-slot {
  width: 100%;
  background: #0f0f0f;
  line-height: 0;
  /* overflow:hidden déjà sur .cathy-tarifv-card */
}

/* ── Wrapper vidéo — ratio piloté par padding-bottom inline ───── */
.cathy-video-wrapper {
  position: relative;
  width: 100%;
  /* padding-bottom est injecté inline par PHP selon le ratio choisi */
  overflow: hidden;
  background: #0f0f0f;
}
.cathy-video-wrapper iframe,
.cathy-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover; /* pour les <video> natifs */
}

/* ── Placeholder (aucune vidéo configurée) ────────────────────── */
.cathy-tarifv-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  padding: 2rem 1rem;
  text-align: center;
  line-height: 1;
}
/* Hauteur du placeholder selon le format attendu */
.cathy-tarifv-paysage-ph  { padding-bottom: 56.25%; position:relative; }
.cathy-tarifv-portrait-ph { min-height: 400px; }
.cathy-tarifv-carre-ph    { aspect-ratio: 1; }

/* ── Corps de carte ───────────────────────────────────────────── */
.cathy-tarifv-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

/* ── Portrait : limiter la largeur de la carte pour ne pas l'étirer ── */
/* La contrainte max-width est injectée inline par PHP */
.cathy-tarifv-portrait {
  /* Les cartes portrait sont naturellement plus étroites */
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Toutes les colonnes en 1 seule sur mobile, quelle que soit la config */
  .cathy-tarifv-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  /* Les colonnes portrait reprennent la pleine largeur sur mobile */
  .cathy-tarifv-card {
    max-width: 100% !important;
  }
  /* Annule le lift highlight */
  .cathy-tarifv-card[style*="translateY"] {
    transform: none !important;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  /* Grilles avec colonnes en taille fixe (portrait) : on passe en 1 colonne si trop étroit */
  .cathy-tarifv-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TARIFS REPORTAGE — Layout horizontal vidéo + texte
   ═══════════════════════════════════════════════════════════════ */

.cathy-rep-section {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
/* Séparateur visuel entre les blocs */
.cathy-rep-section + .cathy-rep-section {
  border-top: 1px solid #f3f4f6;
}

/* ── Ligne vidéo + texte ──────────────────────────────────────── */
.cathy-rep-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}
/* Vidéo à droite */
.cathy-rep-row-reverse {
  flex-direction: row-reverse;
}

/* ── Colonne vidéo ────────────────────────────────────────────── */
.cathy-rep-vid-col {
  flex-shrink: 0;
}
/* Vidéo portrait : largeur fixe contenue pour ne pas écraser le texte */
.cathy-rep-vid-portrait {
  width: clamp(240px, 30%, 340px);
}
/* Vidéo paysage / carré : 45% de la largeur */
.cathy-rep-vid-wide {
  width: 45%;
}

/* ── Wrapper vidéo — coins arrondis ───────────────────────────── */
.cathy-rep-video-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  line-height: 0;
  width: 100%;
}
.cathy-rep-video-wrap .cathy-video-wrapper {
  border-radius: 0; /* déjà géré par le parent */
}

/* ── Colonne texte ────────────────────────────────────────────── */
.cathy-rep-txt-col {
  flex: 1;
  min-width: 0;
}
/* Quand vidéo est portrait, le texte a plus de place → on lui donne de la respiration */
.cathy-rep-txt-portrait {
  flex: 1;
}

/* ── Titre & sous-titre du bloc ───────────────────────────────── */
.cathy-rep-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.2;
  margin: 0 0 .4rem;
}
.cathy-rep-subtitle {
  font-size: .875rem;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
}

/* ── Liste d'items ────────────────────────────────────────────── */
.cathy-rep-items {
  margin-bottom: .5rem;
}
.cathy-rep-items li {
  font-size: .9rem;
}

/* ── Bloc prix ────────────────────────────────────────────────── */
.cathy-rep-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  margin-top: 1.5rem;
}
/* Le bouton prix dans ce layout est plus sobre */
.cathy-rep-price-block .cathy-tarif-btn {
  font-size: 1rem;
  padding: .9rem 2.5rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .cathy-rep-row,
  .cathy-rep-row-reverse {
    flex-direction: column !important;
    gap: 2rem;
  }
  .cathy-rep-vid-portrait,
  .cathy-rep-vid-wide {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .cathy-rep-price-block {
    align-items: center;
  }
}
