/*
Theme Name: Photoprest
Theme URI: https://photoprest.fr
Author: Photoprest
Author URI: https://photoprest.fr
Description: Thème dédié pour Photoprest Virtual Staging. Conçu autour de la palette ivoire/dorée, des typographies Cormorant Garamond et DM Sans. S'intègre nativement avec le plugin photoprest-billing (crédits, paiements, coupons).
Version: 1.0.8
Requires PHP: 7.4
Tested up to: 6.5
License: GPL v2 or later
Text Domain: photoprest
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════ */
/*  VARIABLES & RESET                                                */
/* ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #faf8f4;
  --bg-warm: #f5f1e8;
  --surface: #ffffff;
  --ink: #1a1612;
  --ink-soft: #4a4238;
  --ink-mute: #8c8275;
  --gold: #b8924a;
  --gold-deep: #8c6d33;
  --gold-light: #d4b574;
  --gold-bg: rgba(184, 146, 74, 0.06);
  --border: rgba(26, 22, 18, 0.08);
  --border-strong: rgba(26, 22, 18, 0.16);
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.04);
  --shadow: 0 4px 20px rgba(26, 22, 18, 0.06);
  --shadow-lg: 0 24px 60px rgba(26, 22, 18, 0.12);
  --radius: 6px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ═══════════════════════════════════════════════════════════════ */
/*  HEADER                                                           */
/* ═══════════════════════════════════════════════════════════════ */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 60px; width: auto; display: block; }
.brand picture { display: contents; }
.brand__mark {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}
.brand__name em { font-style: italic; color: var(--gold); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav__menu { display: flex; list-style: none; gap: 26px; align-items: center; }
.nav__menu a {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.18s;
}
.nav__menu a:hover, .nav__menu .current_page_item a { color: var(--gold-deep); }

.nav__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: all 0.18s;
}
.nav__cta:hover { background: var(--gold); color: var(--ink); }

.nav__credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gold-bg);
  border: 1px solid rgba(184, 146, 74, 0.25);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 500;
  border-radius: 99px;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.2s;
}

@media (max-width: 880px) {
  .brand__logo { height: 50px; }
  .nav__toggle { display: block; }
  .nav__menu, .nav__cta { display: none; }
  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .nav.is-open .nav__cta { display: inline-flex; }
}

/* ═══════════════════════════════════════════════════════════════ */
/*  BUTTONS                                                          */
/* ═══════════════════════════════════════════════════════════════ */
.btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--gold); color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 11px; }
.btn--large { padding: 16px 30px; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════ */
/*  HERO (homepage)                                                  */
/* ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184, 146, 74, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(184, 146, 74, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
  animation: fadeUp 0.6s ease-out;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease-out 0.1s both;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
  animation: fadeUp 0.7s ease-out 0.2s both;
}
.hero__cta {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 30px;
  animation: fadeUp 0.7s ease-out 0.3s both;
}
.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s ease-out 0.4s both;
}
.hero__trust strong { color: var(--ink); font-weight: 500; }
.hero__trust > *:not(:last-child)::after {
  content: '·';
  margin-left: 24px;
  color: var(--ink-mute);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════ */
/*  COMPARATEUR AVANT/APRÈS                                          */
/* ═══════════════════════════════════════════════════════════════ */
.compare-section { padding: 50px 0 100px; }
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.compare__half { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-warm); }
.compare__half img, .compare__half svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare__label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(26, 22, 18, 0.88);
  color: var(--bg);
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}
.compare__label--after { background: var(--gold); color: var(--ink); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════ */
/*  FEATURE BLOCKS (3 modules)                                       */
/* ═══════════════════════════════════════════════════════════════ */
.features { padding: 90px 0; background: var(--bg-warm); }
.section__header { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.section__title em { font-style: italic; color: var(--gold); }
.section__sub { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: all 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.feature__icon {
  width: 48px;
  height: 48px;
  background: var(--gold-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.feature__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}
.feature__desc { color: var(--ink-soft); line-height: 1.6; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════ */
/*  HOW IT WORKS (timeline)                                          */
/* ═══════════════════════════════════════════════════════════════ */
.how { padding: 90px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 24px; position: relative; }
.step__num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
  font-style: italic;
}
.step__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.step__desc { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════ */
/*  TESTIMONIAL                                                      */
/* ═══════════════════════════════════════════════════════════════ */
.testimonial {
  padding: 100px 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(184, 146, 74, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(184, 146, 74, 0.08) 0%, transparent 50%);
}
.testimonial__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.testimonial__quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 26px;
}
.testimonial__quote::before {
  content: '"';
  font-size: 80px;
  color: var(--gold);
  line-height: 0;
  vertical-align: -22px;
  margin-right: 6px;
}
.testimonial__quote em { color: var(--gold-light); font-style: italic; }
.testimonial__author { font-size: 13px; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; }
.testimonial__author strong { color: #fff; font-weight: 500; display: block; margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════ */
/*  PRICING (shortcode billing)                                      */
/* ═══════════════════════════════════════════════════════════════ */
.pricing-section { padding: 90px 0; background: var(--bg-warm); }
.pricing-section .ppb-pricing { padding-top: 0; }

/* ═══════════════════════════════════════════════════════════════ */
/*  FAQ                                                              */
/* ═══════════════════════════════════════════════════════════════ */
.faq-section { padding: 90px 0; }
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════ */
/*  CTA FINAL                                                        */
/* ═══════════════════════════════════════════════════════════════ */
.cta-banner {
  padding: 90px 0;
  text-align: center;
}
.cta-banner__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-banner__title em { font-style: italic; color: var(--gold); }
.cta-banner__sub {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 32px;
}

/* ═══════════════════════════════════════════════════════════════ */
/*  FOOTER                                                           */
/* ═══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 60px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 800px) { .site-footer__top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 500px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__brand .brand__name { font-size: 22px; }
.site-footer__pitch {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 300px;
}
.site-footer__col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a {
  color: var(--ink-soft);
  font-size: 13px;
  transition: color 0.15s;
}
.site-footer__col a:hover { color: var(--gold-deep); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer__bottom small { color: var(--ink-mute); font-size: 12px; }
.site-footer__bottom-links { display: flex; gap: 22px; }
.site-footer__bottom-links a { color: var(--ink-mute); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════ */
/*  PAGES / ARTICLES (templates page.php, single.php)                */
/* ═══════════════════════════════════════════════════════════════ */
.page-header {
  padding: 70px 0 40px;
  text-align: center;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.page-header__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
}
.page-header__title em { font-style: italic; color: var(--gold); }
.page-header__sub { color: var(--ink-soft); font-size: 16px; margin-top: 12px; }

.page-content { padding: 60px 0 80px; }
.page-content .entry-content { max-width: 800px; margin: 0 auto; }
.page-content h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 40px 0 16px; }
.page-content h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 30px 0 12px; }
.page-content p { margin-bottom: 1.2em; color: var(--ink-soft); line-height: 1.75; font-size: 15px; }
.page-content ul, .page-content ol { margin: 0 0 1.2em 1.6em; color: var(--ink-soft); }
.page-content li { margin-bottom: 0.5em; }
.page-content a { color: var(--gold-deep); border-bottom: 1px solid var(--gold-light); }
.page-content a:hover { color: var(--gold); }
.page-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 24px;
  margin: 30px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.page-content img { border-radius: var(--radius); margin: 24px 0; }

/* ═══════════════════════════════════════════════════════════════ */
/*  WORDPRESS — Login / 404 / search                                 */
/* ═══════════════════════════════════════════════════════════════ */
.error-404 { padding: 100px 20px; text-align: center; }
.error-404 .four-oh-four {
  font-family: var(--serif);
  font-style: italic;
  font-size: 120px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}

/* Aligner les overrides admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ═══════════════════════════════════════════════════════════════ */
/*  PAGE /GENERER — full-width, sans header ni footer              */
/* ═══════════════════════════════════════════════════════════════ */
body.page-template-page-generer .site-header,
body.page-template-page-generer .site-footer { display: none !important; }

body.page-template-page-generer .site-main,
body.page-template-page-generer .page-content,
body.page-template-page-generer .page-content--fullwidth { padding: 0 !important; margin: 0 !important; }

body.page-template-page-generer .ppb-gen {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.admin-bar.page-template-page-generer .ppb-gen {
  height: calc(100vh - 32px);
}
@media (max-width: 782px) {
  body.admin-bar.page-template-page-generer .ppb-gen {
    height: calc(100vh - 46px);
  }
}
body.page-template-page-generer .ppb-gen .ppb-gen__body {
  flex: 1;
  min-height: 0;
  height: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGES BILLING — full-width sans padding thème (v1.0.8)
   ═══════════════════════════════════════════════════════════════ */
.page-billing {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
.page-billing .entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Supprime le page-header automatique sur les pages billing */
.page-billing + .page-header,
.post-type-archive .page-header { display: none; }



/* Chargement de la police Adobe Fonts : MinervaModern */
@import url("https://use.typekit.net/wkw7bpo.css");

/* =========================================================
   POLICE UNIQUE POUR TOUT LE SITE : MinervaModern
   ========================================================= */

/* 1 — Base globale (texte standard) */
html,
body {
  font-family: "minerva-modern", sans-serif !important;
  font-weight: 400; /* Regular */
  font-style: normal;
}

/* 2 — Texte courant, liens, listes, spans… */
p,
li,
a,
span,
strong,
em {
  font-family: "minerva-modern", sans-serif !important;
}


/* 3 — Gras & italique : mapping propre sur les variantes Adobe */
strong,
b {
  font-weight: 700;         /* MinervaModern Bold */
  font-style: normal;
}

em,
i {
  font-weight: 400;         /* MinervaModern Italic */
  font-style: italic;
}

strong em,
em strong,
b i,
i b {
  font-weight: 700;         /* MinervaModern BoldItalic */
  font-style: italic;
}

/* 4 — Menus, en-têtes, footers, widgets (BeTheme) */
#Header *,
#Top_bar *,
.menu_wrapper *,
#Footer *,
#Subheader *,
.widget *,
#Action_bar * {
  font-family: "minerva-modern", sans-serif !important;
}

/* 5 — Elementor : widgets, sections, colonnes */
.elementor *,
.elementor-widget *,
.elementor-widget-heading *,
.elementor-widget-text-editor *,
.elementor-nav-menu *,
.elementor-button {
  font-family: "minerva-modern", sans-serif !important;
}

/* 6 — Formulaires (Elementor, BeTheme, plugins) */
input,
textarea,
select,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-family: "minerva-modern", sans-serif !important;
  font-weight: 400 !important;
}

/* 7 — Sliders, carrousels, lightbox, captions */
.swiper-slide *,
.elementor-lightbox *,
.mfn-slider *,
.rev_slider *,
.tp-caption,
.tp-caption * {
  font-family: "minerva-modern", sans-serif !important;
}

