/**
 * photobooth-shared.css
 * Composants communs aux templates Photobooth (mariage) et Photobooth ON-Events (sous-site).
 * Chargé par les deux templates via functions.php.
 * NE PAS modifier les règles spécifiques à chaque template ici.
 */

/* =====================================================
   CSS VARIABLES
===================================================== */
:root {
    --pb-navy:        #0d1b2e;
    --pb-navy-light:  #162338;
    --pb-navy-mid:    #1e3050;
    --pb-gold:        #c9a84c;
    --pb-gold-light:  #e2c97e;
    --pb-gold-dark:   #a8882e;
    --pb-cream:       #f5f0e8;
    --pb-white:       #ffffff;
    --pb-text-muted:  rgba(245, 240, 232, 0.6);
    --pb-border:      rgba(201, 168, 76, 0.2);
    --pb-transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --pb-font-script: Georgia, "Times New Roman", serif;
    --pb-font-sans:   var(--font-heading, "Montserrat", "Helvetica Neue", sans-serif);
}

/* =====================================================
   RESET & BODY
===================================================== */
.photobooth-main {
    background-color: var(--pb-navy);
    color: var(--pb-cream);
    font-family: var(--pb-font-script);
    overflow-x: hidden;
}

.photobooth-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   HERO — fond & animation (commun)
===================================================== */
@keyframes pb-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pb-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.photobooth-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 90%, rgba(255, 255, 255, 0.03) 0%, transparent 65%),
        radial-gradient(ellipse 60% 80% at 80% 100%, rgba(201, 168, 76, 0.035) 0%, transparent 50%),
        linear-gradient(180deg, #0a1520 0%, #0d1b2e 40%, #0d1b2e 100%);
    z-index: 0;
}

/* Grain subtil — tuile 512px pour éviter les lignes de jointure */
.photobooth-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    opacity: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.photobooth-hero-title em {
    display: block;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--pb-cream);
    animation: pb-fade-up 1s 0.2s ease both;
}

.photobooth-hero-tagline {
    font-family: var(--pb-font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--pb-text-muted);
    margin: 1.5rem 0 2.5rem;
    animation: pb-fade-up 1s 0.4s ease both;
}

.photobooth-hero-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--pb-gold);
    color: var(--pb-gold);
    font-family: var(--pb-font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--pb-transition), color var(--pb-transition);
    animation: pb-fade-up 1s 0.5s ease both;
}

.photobooth-hero-cta:hover {
    background-color: var(--pb-gold);
    color: var(--pb-navy);
}

.photobooth-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--pb-gold);
    opacity: 0.6;
    animation: pb-bounce 2s infinite;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}

.photobooth-scroll-indicator:hover {
    opacity: 1;
}

/* =====================================================
   FEATURES
===================================================== */
.photobooth-features {
    padding: 6rem 0;
    background: var(--pb-navy-light);
    border-top: 1px solid var(--pb-border);
}

.photobooth-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem 2rem;
}

.photobooth-feature-item {
    text-align: center;
}

.photobooth-feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.2rem;
    color: var(--pb-gold);
}

.photobooth-feature-icon svg {
    width: 100%;
    height: 100%;
}

.photobooth-feature-item h3 {
    font-family: var(--pb-font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-cream);
    margin: 0 0 0.7rem;
}

.photobooth-feature-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pb-text-muted);
    margin: 0;
}

/* =====================================================
   SECTION HEADER
===================================================== */
.photobooth-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.photobooth-section-label {
    display: block;
    font-family: var(--pb-font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--pb-gold);
    margin-bottom: 0.8rem;
}

.photobooth-section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--pb-cream);
    margin: 0;
}

/* =====================================================
   FORMULES
===================================================== */
.photobooth-formules {
    padding: 7rem 0;
    background: var(--pb-navy);
}

.photobooth-formule-digitale {
    margin-bottom: 3.5rem;
    border: 1px solid var(--pb-gold);
    background: var(--pb-navy-light);
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.photobooth-formule-digitale-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.photobooth-formule-badge {
    display: inline-block;
    font-family: var(--pb-font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--pb-gold);
    color: var(--pb-gold);
}

.photobooth-formule-feature {
    font-size: 1rem;
    color: var(--pb-cream);
    margin: 0.3rem 0;
}

.photobooth-formule-feature strong {
    color: var(--pb-gold-light);
}

.photobooth-formule-digitale-right {
    flex-shrink: 0;
}

.photobooth-formule-digitale-left {
    flex: 1;
}

.photobooth-impression-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    font-family: var(--pb-font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pb-gold);
}

.photobooth-impression-line {
    flex: 1;
    height: 1px;
    background: var(--pb-border);
}

.photobooth-formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.photobooth-formule-card {
    border: 1px solid var(--pb-border);
    background: var(--pb-navy-light);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: border-color var(--pb-transition), transform var(--pb-transition);
}

.photobooth-formule-card:hover {
    border-color: var(--pb-gold);
    transform: translateY(-4px);
}

.photobooth-formule-featured {
    border-color: var(--pb-gold);
    background: var(--pb-navy-mid);
}

.photobooth-formule-featured::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pb-gold), transparent);
}

.photobooth-formule-card-badge {
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pb-gold);
    color: var(--pb-navy);
    font-family: var(--pb-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    white-space: nowrap;
}

.photobooth-formule-card-header {
    margin-bottom: 1.5rem;
}

.photobooth-formule-name {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    color: var(--pb-gold-light);
    margin: 0;
}

.photobooth-formule-featured .photobooth-formule-name {
    color: var(--pb-gold);
}

.photobooth-formule-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* =====================================================
   PRIX
===================================================== */
.photobooth-prix {
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.photobooth-prix-amount {
    font-family: var(--pb-font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--pb-cream);
    letter-spacing: -0.02em;
}

.photobooth-prix-currency {
    font-family: var(--pb-font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pb-gold);
    margin-top: 0.4rem;
    margin-left: 0.2rem;
}

.photobooth-formule-details p {
    font-size: 0.9rem;
    color: var(--pb-text-muted);
    margin: 0.2rem 0;
}

.photobooth-formule-details strong {
    color: var(--pb-cream);
}

.photobooth-photos-count {
    font-family: var(--pb-font-sans);
    font-size: 0.8rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pb-text-muted) !important;
}

.photobooth-photos-count span {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: var(--pb-gold) !important;
}

.photobooth-btn {
    margin-top: 1.8rem;
    display: inline-block;
    padding: 0.65rem 2rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--pb-gold);
    font-family: var(--pb-font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--pb-transition), color var(--pb-transition), border-color var(--pb-transition);
}

.photobooth-btn:hover {
    background-color: var(--pb-gold);
    border-color: var(--pb-gold);
    color: var(--pb-navy);
}

/* =====================================================
   COMBINAISON PARFAITE
===================================================== */
.photobooth-combinaison {
    padding: 5rem 0;
    background: var(--pb-gold);
}

.photobooth-combinaison-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.photobooth-combinaison-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    color: var(--pb-navy);
    opacity: 0.7;
}

.photobooth-combinaison-icon svg {
    width: 100%;
    height: 100%;
}

.photobooth-combinaison-content {
    flex: 1;
    min-width: 280px;
}

.photobooth-combinaison-content h2 {
    font-style: italic;
    font-weight: 400;
    font-size: 2.4rem;
    color: var(--pb-navy);
    margin: 0 0 1rem;
}

.photobooth-combinaison-content p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--pb-navy);
    margin: 0 0 0.6rem;
}

.photobooth-combinaison-content strong {
    font-weight: 700;
}

.photobooth-combinaison-note {
    font-size: 0.9rem !important;
    opacity: 0.65;
    font-style: italic;
}

/* =====================================================
   INCLUS / NON INCLUS
===================================================== */
.photobooth-inclus {
    padding: 6rem 0;
    background: var(--pb-navy-light);
    border-top: 1px solid var(--pb-border);
}

.photobooth-inclus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.photobooth-inclus-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--pb-font-sans);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pb-border);
}

.photobooth-inclus-col .photobooth-inclus-title {
    color: var(--pb-gold);
}

.photobooth-inclus-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.photobooth-non-inclus-col .photobooth-inclus-title {
    color: var(--pb-text-muted);
}

.photobooth-inclus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photobooth-inclus-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.06);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--pb-cream);
}

.photobooth-non-inclus-col .photobooth-inclus-list li {
    color: var(--pb-text-muted);
}

.photobooth-inclus-list li em {
    color: var(--pb-gold);
    font-style: italic;
}

/* =====================================================
   CTA FINAL
===================================================== */
.photobooth-cta {
    padding: 7rem 0;
    background: var(--pb-navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.photobooth-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(201, 168, 76, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.photobooth-cta-inner {
    position: relative;
    z-index: 1;
}

.photobooth-cta h2 {
    font-size: clamp(1.4rem, 3.2vw, 3rem);
    font-style: italic;
    font-weight: 400;
    color: var(--pb-cream);
    margin: 0 0 1rem;
    white-space: nowrap;
}

.photobooth-cta p {
    font-size: 1rem;
    color: var(--pb-text-muted);
    margin: 0 0 2.5rem;
}

.photobooth-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    background: var(--pb-gold);
    color: var(--pb-navy);
    font-family: var(--pb-font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--pb-transition), transform var(--pb-transition);
}

.photobooth-cta-btn:hover {
    background-color: var(--pb-gold-light);
    transform: translateY(-2px);
}

.photobooth-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   PAGE CONTENT (WordPress)
===================================================== */
.photobooth-page-content {
    padding: 4rem 0;
    background: var(--pb-navy-light);
    border-top: 1px solid var(--pb-border);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    .photobooth-formule-digitale {
        padding: 2rem 1.5rem;
    }

    .photobooth-formule-digitale-inner {
        flex-direction: column;
        text-align: center;
    }

    .photobooth-inclus-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .photobooth-formules-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .photobooth-formules-grid {
        grid-template-columns: 1fr;
    }

    .photobooth-combinaison-inner {
        flex-direction: column;
        text-align: center;
    }
}
