/* PC ONE PARIS - CSS Complet v4.5 - Modern Design System */
:root { 
    --primary: #f97316; 
    --primary-dark: #ea580c;
    --bg: #f8fafc; 
    --surface: #ffffff; 
    --text: #1e293b; 
    --muted: #64748b; 
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Base */
body { 
    font-family: 'Inter', system_ui, -apple-system, sans-serif; 
    background: #f8fafc; 
    color: #1e293b; 
    margin: 0; 
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 0; position: sticky; top: 0; z-index: 100; }
.logo a { font-size: 28px; font-weight: 900; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--primary); }
.hero { 
    padding: 140px 0; 
    text-align: center; 
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.btn { 
    display: inline-block; 
    padding: 18px 44px; 
    background: #f97316; 
    color: white; 
    text-decoration: none; 
    border-radius: 16px; 
    font-weight: 700; 
    font-size: 17px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 10px 15px -3px rgb(249 115 22 / 0.3);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

.btn:hover::after {
    left: 200%;
}

.btn:hover { 
    background: #ea580c; 
    transform: translateY(-4px) scale(1.05); 
    box-shadow: 0 20px 25px -5px rgb(249 115 22 / 0.4); 
}
.card { background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px; margin-bottom: 32px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.12); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.form-input { width: 100%; padding: 14px 16px; background: #1e293b; border: 2px solid var(--border); border-radius: 10px; color: var(--text); }
.device-card { background:#1e293b; border:2px solid #334155; padding:25px; border-radius:12px; text-align:center; cursor:pointer; transition:all 0.2s; font-weight:700; }
.device-card:hover { border-color:#f97316; transform:translateY(-3px); }
@media (max-width: 768px) { 
  .nav { display: none; } 
  .pc-header .pc-nav { display: none !important; }
  .pc-header .pc-call-text { display: none; }
} 

/* Improved mobile header polish */
.pc-header { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
#pc-mobile-nav a { padding: 10px 0; border-bottom: 1px solid #f1f5f9; display: block; }
#pc-mobile-nav a:last-child { border-bottom: none; }

/* ============================================
   MODERN DESIGN SYSTEM - Elementor Pro Style
   ============================================ */

/* Modern Section Styles */
.section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.section.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Services Section Layout - title on top horizontal, cards grid horizontal on desktop */
.services-section {
  max-width: 1200px;
  margin: 0 auto;
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .services-section .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
}

/* Grid Layouts - Side by Side */
.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 50px; 
    align-items: center; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 35px; 
}

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
}

/* Overlapping Elements - Modern Design */
.overlap-container {
    position: relative;
    z-index: 1;
}

.overlap-element {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}

@media (max-width: 768px) {
    .overlap-element {
        margin-top: 0;
    }
}

/* Parallax Effects */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Beautiful Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgb(249 115 22 / 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

.btn-modern:hover::after {
    left: 200%;
}

.btn-modern:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(249 115 22 / 0.4);
}

/* Section Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.section-animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-animated.slide-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.section-animated.zoom {
    animation: zoomIn 0.8s ease-out forwards;
}

/* Beautiful Section Variants */
.section-hero {
    padding: 160px 0;
    position: relative;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.section-split .content {
    padding: 80px 60px;
}

.section-split .image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.section-split .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modern Cards with Hover Effects */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    border-color: #f97316;
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(249 115 22 / 0.1);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-split {
        grid-template-columns: 1fr;
    }
    
    .section-split .content {
        padding: 60px 20px;
    }
}

/* === HORIZONTAL SERVICES / CARDS (v4 fix) === */
/* Ensures "Nos Services Phares" and similar are ALWAYS horizontal on desktop:
   - title is plain full-width centered h2 banner on top (no blue vertical bar)
   - cards side-by-side in row(s), filling space, matching the Processus section
   - ONLY vertical stack below 768px */
.cms-section.section-services .services-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}
@media (min-width: 900px) {
    .cms-section.section-services .services-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
.cms-section.section-services > div {
    display: block !important;
    width: 100% !important;
}

/* Make sure text sections (Pourquoi, Engagements, etc.) are nicely centered and wide like the horizontal services + process sections */
.cms-section.section-text > div,
.cms-section.section-text {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.cms-section.section-text h2 {
    text-align: center !important;
}

/* ============================================
   LOT 3 - WAHOU EFFECTS & MOBILE POLISH v5
   ============================================ */

/* Scroll-reveal ready state (JS toggles .is-visible) */
.cms-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.cms-section.is-visible, .cms-section:first-of-type { opacity: 1; transform: none; }

/* Ensure hero CTA is always clickable and animated */
.cms-section.section-hero, .cms-section .hero { position: relative; z-index: 1; }
.cms-section .hero a { position: relative; z-index: 5; cursor: pointer; will-change: transform; }
.cms-section .hero a:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important; }
.cms-section .hero h1 { animation: pcopSlideDown 0.9s cubic-bezier(0.2,0.9,0.3,1.2) both; }
.cms-section .hero p { animation: pcopSlideDown 1.1s cubic-bezier(0.2,0.9,0.3,1.2) both; }
.cms-section .hero a { animation: pcopPop 1.2s cubic-bezier(0.2,0.9,0.3,1.4) both; }
@keyframes pcopSlideDown { from {opacity:0; transform:translateY(-20px);} to {opacity:1; transform:none;} }
@keyframes pcopPop { from {opacity:0; transform:scale(0.8);} to {opacity:1; transform:none;} }

/* Card hover elevation for services / process / pricing */
.cms-section .services-cards-grid > div,
.cms-section [class*="process"] .step,
.cms-section [class*="pricing"] > div > div {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cms-section .services-cards-grid > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249,115,22,0.18) !important;
}

/* Internal links auto-highlight brand mentions */
a[href*="pconeparis"], a[href="index.php"], a[href="services.php"], a[href="apropos.php"] {
    color: #f97316;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
a[href*="pconeparis"]:hover, a[href="services.php"]:hover, a[href="apropos.php"]:hover {
    color: #ea580c;
}

/* ---- MOBILE PORTRAIT AUDIT FIXES (reservation, forms, CMS) ---- */
@media (max-width: 640px) {
    .container { padding: 0 12px !important; }
    .card { padding: 20px !important; border-radius: 14px !important; }
    h1 { font-size: 30px !important; line-height: 1.2; }
    h2 { font-size: 22px !important; line-height: 1.25; }
    h3 { font-size: 18px !important; }
    .cms-section .hero { padding: 60px 16px !important; }
    .cms-section .hero h1 { font-size: 2rem !important; }
    .cms-section .hero p { font-size: 1rem !important; }
    .cms-section .hero a { padding: 12px 24px !important; font-size: 0.95rem !important; }

    /* Reservation-specific mobile polish */
    .service-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .service-option { padding: 14px 6px !important; font-size: 13px !important; }
    .service-option i { font-size: 22px !important; }
    .btn { padding: 14px !important; font-size: 15px !important; }
    .next-btn, .prev-btn { min-width: 0 !important; width: 100% !important; margin: 4px 0 !important; }
    #calendar-7days { gap: 6px !important; }
    #calendar-7days > div { min-width: 60px !important; padding: 8px 4px !important; font-size: 13px !important; }
    #live-price-bar { flex-wrap: wrap; font-size: 13px; padding: 6px 10px !important; }
    #live-price-bar > * { flex: 1 1 100%; text-align: center; }

    /* Footer / grids condensed */
    .footer .container { gap: 30px !important; text-align: center; }
    .services-cards-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 380px) {
    .service-grid { grid-template-columns: 1fr !important; }
    .cms-section .hero h1 { font-size: 1.65rem !important; }
}

/* Simple scroll-reveal script auto-loader hook */
@media (prefers-reduced-motion: reduce) {
    .cms-section, .cms-section .hero h1, .cms-section .hero p, .cms-section .hero a { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}