/* ============================================================
   LS Designs - Feuille de style principale v2.3 (Optimisée)
   ============================================================ */

:root {
    --gold:         #cda85f;
    --gold-dark:    #a88540;
    --gold-light:   #e8c97a;
    --gold-bg:      rgba(205, 168, 95, 0.08);
    --bg-primary:   #fafaf8;
    --bg-secondary: #f3f2ef;
    --bg-card:      #ffffff;
    --bg-overlay:   rgba(0, 0, 0, 0.5);

    --text-primary:   #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted:     #888899;

    --border-color: #e8e8f0;

    --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.14);

    --nav-bg:       rgba(255, 255, 255, 0.95);
    --nav-scrolled: rgba(255, 255, 255, 0.98);

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: 0.25s ease;
    --site-header-offset: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--font-body); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { color: var(--text-secondary); line-height: 1.75; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-secondary { background-color: var(--bg-secondary); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.7rem; }
.btn-theme-toggle { display: none !important; }

/* BOUTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px;
    border-radius: var(--radius-sm); border: 2px solid transparent; font-family: var(--font-body);
    font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(205,168,95,0.35); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: transparent; }
.btn-ghost:hover { background: var(--gold-bg); color: var(--gold); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* CTA Événementiel Ultra-Visible (Brillant / High-Conversion) */
.btn-event-highlight {
    background: linear-gradient(135deg, var(--gold) 0%, #ffe095 50%, var(--gold) 100%) !important;
    background-size: 200% auto !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(205,168,95,0.4);
    animation: shine-gold 3s linear infinite;
    font-weight: 700;
}
.btn-event-highlight:hover {
    box-shadow: 0 6px 20px rgba(205,168,95,0.6);
    transform: translateY(-2px);
}
@keyframes shine-gold {
    to { background-position: 200% center; }
}
.mobile-event-btn { display: none; }
.desktop-event-btn { display: inline-flex; }

/* NAVIGATION FLOTTANTE */
.site-header {
    position: fixed !important; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000;
    width: calc(100% - 40px); max-width: 1200px; background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 50px !important; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s ease;
}
.site-header.scrolled { top: 10px; background: var(--nav-scrolled); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 32px; justify-content: space-between; padding: 0 32px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-menu > a, .nav-item-dropdown > a {
    padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); text-decoration: none; transition: all var(--transition); white-space: nowrap;
}
.nav-menu > a:hover, .nav-item-dropdown > a:hover, .nav-menu > a.active, .nav-item-dropdown > a.active { color: var(--gold); background: var(--gold-bg); }
.nav-item-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 15px); left: 0; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    min-width: 240px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; z-index: 100;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-secondary); transition: all var(--transition); }
.dropdown-menu a:hover { background: var(--gold-bg); color: var(--gold); }
.nav-controls { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.btn-mobile-menu { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); align-items: center; justify-content: center; font-size: 1rem; }

/* HERO & STRUCTURE GENERALE */
main#main-content { padding-top: 0; }
[id] { scroll-margin-top: calc(var(--site-header-offset) + 16px); }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; }
.page-hero { padding: 100px 0 60px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; max-width: 700px; }
.hero-bg-gradient { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(205,168,95,0.12) 0%, transparent 60%), radial-gradient(ellipse 50% 50% at 80% 80%, rgba(205,168,95,0.06) 0%, transparent 50%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-bg); border: 1px solid rgba(205,168,95,0.3); color: var(--gold); padding: 8px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 28px; animation: fadeInDown 0.6s ease 0.1s both; }
.hero h1 { margin-bottom: 24px; animation: fadeInUp 0.7s ease 0.2s both; }
.hero-description { font-size: 1.15rem; max-width: 580px; margin-bottom: 40px; animation: fadeInUp 0.7s ease 0.3s both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; animation: fadeInUp 0.7s ease 0.4s both; }
.hero-stats { display: flex; gap: 48px; animation: fadeInUp 0.7s ease 0.5s both; }
.hero-stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.hero-images-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; }
.hero-img-link { display: block; border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: var(--shadow-sm); background: var(--bg-card); }
.hero-img-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hero-img-link img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-secondary); aspect-ratio: 4/5; display: block; }

/* SECTIONS & GRILLES */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag { display: inline-block; background: var(--gold-bg); color: var(--gold); padding: 6px 16px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 60px; align-items: start; }
.mini-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats-grid { gap: 20px; }
.cards-grid { display: grid; gap: 24px; }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb-32 { margin-bottom: 32px; }
.mb-36 { margin-bottom: 36px; }
.mb-48 { margin-bottom: 48px; }
.mb-60 { margin-bottom: 60px; }

.services-grid, .features-grid, .pricing-grid, .reviews-grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.features-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }

.service-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 36px 28px; transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.service-card:hover { border-color: rgba(205,168,95,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; background: var(--gold-bg); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--gold); margin-bottom: 20px; transition: all 0.3s ease; }
.service-card:hover .service-icon { background: var(--gold); color: white; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 0.88rem; font-weight: 600; transition: gap 0.2s ease; margin-top: auto; }
.service-link:hover { gap: 10px; }

/* INVITATIONS : FORMULES & TARIFS */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; transition: all 0.4s ease; position: relative; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--gold); transform: scale(1.05); z-index: 2; box-shadow: var(--shadow-lg); }
.pricing-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; padding: 6px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pricing-price { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--gold); margin: 24px 0; }
.pricing-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { text-align: left; margin-bottom: 32px; flex-grow: 1; }
.pricing-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.pricing-features li i { color: var(--gold); font-size: 0.85rem; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-8px); }

/* ============================================================
   PORTFOLIO PRINCIPAL (/portfolio.php)
   ============================================================ */
.portfolio-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 48px; }
.filter-btn { padding: 0; border: none; background: transparent; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: color var(--transition); position: relative; }
.filter-btn:hover, .filter-btn.active { color: var(--gold); }
.filter-btn.active::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--gold); }

.portfolio-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-secondary); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-item img { width: 100%; height: auto; object-fit: contain; background: var(--bg-secondary); display: block; transition: filter var(--transition); }
.portfolio-item:hover img { filter: brightness(0.7); }

.portfolio-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.portfolio-item:hover .portfolio-overlay { background: rgba(0, 0, 0, 0.3); }
.portfolio-overlay-content { text-align: center; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity var(--transition), transform var(--transition); }
.portfolio-item:hover .portfolio-overlay-content { opacity: 1; transform: translateY(0); }
.portfolio-overlay-content h4 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #fff; }
.portfolio-overlay-content span { display: none; }


/* ============================================================
   GALERIES PAGES SERVICES (MINI-GALERIES & SMARTPHONES)
   ============================================================ */
.media-empty-state { width: 100%; padding: 32px 24px; border: 1px dashed var(--border-color); border-radius: var(--radius-md); background: var(--bg-card); color: var(--text-muted); text-align: center; }
.section-actions { display: flex; justify-content: center; margin-top: 28px; }

/* Grille universelle 4 colonnes (utilisée partout pour les galeries) */
.portfolio-grid, .smartphone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

/* Écrase les anciens paramètres de cartes rognées avec du blanc */
.portfolio-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.portfolio-image {
    aspect-ratio: auto; /* Libère la hauteur naturelle */
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}

.portfolio-card:hover .portfolio-image {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Interdit le rognage */
    display: block;
}

/* Cache DÉFINITIVEMENT les titres et les bandes blanches sous les images des services */
.portfolio-content {
    display: none;
}

/* Mockups smartphone */
.smartphone-mockup {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.smartphone-mockup img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.service-hero-media {
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}
.service-hero-media img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}


/* CTA & FOOTER MINIMAL */
.cta-section { background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 50%, #1a2a1a 100%); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(205,168,95,0.15) 0%, transparent 70%); pointer-events: none; }
.cta-section h2 { color: white; margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 40px; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

.site-footer { margin-top: 0; padding: 0; overflow: hidden; background: #0f0f1a; color: rgba(255,255,255,0.8); }
.footer-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 58%, #1a2a1a 100%); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 140% at 82% 50%, rgba(205, 168, 95, 0.18) 0%, transparent 72%); }
.footer-cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 34px 0; }
.footer-cta-copy h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
.footer-cta-copy p { margin: 0; color: rgba(255, 255, 255, 0.73); font-size: 0.94rem; }
.footer-cta-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: minmax(250px, 1.5fr) minmax(150px, 0.75fr) minmax(205px, 1fr); gap: 48px; padding: 56px 0 42px; }
.footer-brand { max-width: 420px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #fff; font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; text-decoration: none; }
.footer-logo img { width: auto; height: 42px; max-width: 180px; object-fit: contain; }
.footer-logo span { color: var(--gold); }
.footer-brand p { margin: 0; color: rgba(255, 255, 255, 0.60); font-size: 0.9rem; line-height: 1.7; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; color: rgba(255, 255, 255, 0.78); transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition); }
.footer-social-link:hover, .footer-social-link:focus-visible { color: #fff; background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-col h4 { margin: 2px 0 16px; color: #fff; font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact-item a { color: rgba(255, 255, 255, 0.60); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover, .footer-links a:focus-visible, .footer-contact-item a:hover, .footer-contact-item a:focus-visible { color: var(--gold-light); }
.footer-contact-list { display: grid; gap: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, 0.60); font-size: 0.9rem; }
.footer-contact-item > i { width: 16px; margin-top: 5px; color: var(--gold); text-align: center; }
.site-footer .footer-bottom { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.site-footer .footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.40); font-size: 0.82rem; }
.footer-bottom-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.52); font-size: 0.82rem; transition: color var(--transition); }
.footer-bottom-links a:hover, .footer-bottom-links a:focus-visible { color: var(--gold-light); }
.footer-minimal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-min .footer-logo { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; font-weight: 700; text-decoration: none; }
.footer-brand-min .footer-logo span { color: var(--gold); }
.footer-brand-min p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-top: 8px; }
.footer-minimal-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* WHATSAPP FLOTTANT */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: all 0.3s ease; animation: pulse-green 3s infinite 2s; }
.whatsapp-float:hover { transform: scale(1.1); animation: none; }
.whatsapp-bubble { position: fixed; bottom: 100px; right: 28px; z-index: 998; background: var(--bg-card); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-lg); max-width: 240px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.95); transition: all 0.3s ease; border: 1px solid var(--border-color); }
.whatsapp-bubble.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.btn-whatsapp-footer { background: #25D366; color: white !important; border-color: #25D366; transition: all var(--transition); }
.btn-whatsapp-footer:hover { background: #20b858; border-color: #20b858; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); } 50% { box-shadow: 0 4px 40px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.1); } }
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   CARROUSEL D'ACCUEIL : CARTES SUPERPOSÉES
   ============================================================ */
.hero-showcase { position: relative; min-height: 520px; isolation: isolate; }
.hero-slider-shell { position: relative; width: 100%; height: 100%; min-height: 520px; perspective: 1200px; }
.hero-slider-track { position: absolute; inset: 0 38px 0 0; }
.hero-slide { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.62); border-radius: var(--radius-xl); background: #dcd9d2; box-shadow: 0 18px 48px rgba(26, 26, 46, 0.16); transform: translate3d(0, 0, 0) scale(1); transform-origin: center right; opacity: 0; pointer-events: none; transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s ease, filter 1s ease, box-shadow 1s ease; }
.hero-slide.is-active { z-index: 4; opacity: 1; pointer-events: auto; cursor: pointer; }
.hero-slide.is-next { z-index: 3; opacity: 0.82; transform: translate3d(20px, 18px, -80px) scale(0.94); filter: saturate(0.82) brightness(0.94); pointer-events: auto; cursor: pointer; }
.hero-slide.is-next-2 { z-index: 2; opacity: 0.52; transform: translate3d(38px, 35px, -150px) scale(0.88); filter: saturate(0.65) brightness(0.9); pointer-events: auto; cursor: pointer; }
.hero-slide.is-hidden { transform: translate3d(58px, 52px, -220px) scale(0.82); }
.hero-slide:hover.is-active, .hero-slide:focus-visible.is-active { box-shadow: 0 24px 60px rgba(26, 26, 46, 0.24); transform: translate3d(-4px, -5px, 0) scale(1.01); }
.hero-slide-media, .hero-slide-media img { width: 100%; height: 100%; }
.hero-slide-media img { object-fit: contain; background: #f6f3ed; transition: transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.hero-slide:hover.is-active img, .hero-slide:focus-visible.is-active img { transform: scale(1.045); }
.hero-slide-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(15, 15, 26, 0.78) 100%); }
.hero-slide-caption { position: absolute; right: 28px; bottom: 26px; left: 28px; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 14px; color: #fff; }
.hero-slide-caption span { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, 0.72); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-slide-caption strong { display: block; font-family: var(--font-heading); font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.2; }
.hero-slide-caption i { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 0.82rem; transition: transform var(--transition), background var(--transition); }
.hero-slide:hover.is-active .hero-slide-caption i, .hero-slide:focus-visible.is-active .hero-slide-caption i { background: var(--gold-light); transform: translateX(3px); }
.hero-slider-controls { position: absolute; z-index: 6; right: 0; bottom: 20px; display: flex; align-items: center; gap: 8px; }
.hero-slider-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition); }
.hero-slider-button:hover, .hero-slider-button:focus-visible { border-color: var(--gold); background: var(--gold); color: #fff; transform: translateY(-2px); }
.hero-slider-dots { position: absolute; z-index: 6; bottom: -26px; left: 0; display: flex; align-items: center; gap: 7px; }
.slider-dot, .hero-slider-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(26, 26, 46, 0.22); transition: width var(--transition), background var(--transition); }
.slider-dot.active, .hero-slider-dot.is-active { width: 24px; background: var(--gold); }
.hero-slider-shell:focus-within .hero-slide:not(.is-active), .hero-slider-shell:hover .hero-slide:not(.is-active) { transition-duration: 250ms; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img, .hero-slide-caption i { transition: none; } }

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .pricing-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .split-layout, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
    .cards-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-showcase, .hero-slider-shell { min-height: 480px; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 36px 28px; }
    .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --site-header-offset: 80px; }
    .site-header { width: calc(100% - 20px) !important; top: 10px !important; border-radius: 50px !important; position: fixed !important; }
    .nav-inner { padding: 0 16px; height: 60px; }
    .container { padding: 0 18px; }
    .section { padding: 64px 0; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .page-hero { padding: 96px 0 44px; }
    .page-hero h1 { overflow-wrap: anywhere; }
    .page-hero p { max-width: none; font-size: 1rem; }
    
    .nav-menu { position: fixed; top: 75px; left: 10px; right: 10px; background: var(--nav-scrolled); flex-direction: column; padding: 16px; border-radius: 20px; box-shadow: var(--shadow-lg); max-height: 0; opacity: 0; overflow: hidden; transition: 0.3s ease; align-items: stretch; }
    .nav-menu.open { max-height: 85vh; opacity: 1; overflow-y: auto; pointer-events: auto; }
    .nav-menu > a { text-align: center; padding: 12px; }
    .nav-item-dropdown.open .dropdown-menu { display: flex !important; flex-direction: column; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; background: transparent !important; padding: 10px 0 10px 20px !important; margin-top: 0 !important; min-width: 0 !important; max-height: none !important; }
    .nav-item-dropdown .dropdown-menu { display: none; }
    .nav-item-dropdown.open > a { color: var(--gold); }
    .nav-item-dropdown i { transition: transform 0.3s ease; }
    .nav-item-dropdown.open i { transform: rotate(180deg); }
    .btn-mobile-menu { display: flex; }
    
    .desktop-event-btn { display: none !important; }
    .mobile-event-btn { display: inline-flex !important; width: 100%; justify-content: center; margin-top: 8px; }
    
    .split-layout, .contact-layout, .cards-grid, .services-grid, .features-grid, .pricing-grid, .reviews-grid, .mini-card-grid, [style*="grid-template-columns: 1fr 1fr"], [style*="grid-template-columns: repeat(3, 1fr)"], [style*="grid-template-columns: repeat(auto-fit"] { grid-template-columns: 1fr !important; gap: 28px !important; }
    
    /* 2 COLONNES FORCEES SUR MOBILE POUR TOUTES LES GALERIES */
    .portfolio-grid, .smartphone-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-8px); }

    .contact-layout { align-items: stretch; }
    .contact-layout > *, .split-layout > *, .service-card, .feature-item, .pricing-card { min-width: 0; width: 100%; }
    .contact-layout .reveal-right > div, .split-layout .reveal-left > div, .split-layout .reveal-right > div { padding: 24px !important; max-width: 100%; }
    .contact-info-card, .contact-layout [style*="background: var(--bg-secondary)"] { align-items: flex-start !important; padding: 16px !important; }
    .form-group input, .form-group select, .form-group textarea { min-width: 0; font-size: 16px; }
    h1, h2, h3, h4, p, strong, span, a, label { overflow-wrap: anywhere; }
    .whatsapp-float { width: 54px; height: 54px; right: 18px; bottom: 18px; font-size: 1.45rem; }
    .hero-grid { grid-template-columns: 1fr !important; }
    .hero-images-grid { grid-template-columns: 1fr !important; }
    
    .hero-showcase, .hero-slider-shell { min-height: 410px; }
    .hero-slider-track { right: 26px; }
    .hero-slide { border-radius: var(--radius-lg); }
    .hero-slide.is-next { transform: translate3d(14px, 14px, -80px) scale(0.94); }
    .hero-slide.is-next-2 { transform: translate3d(28px, 28px, -150px) scale(0.88); }
    .hero-slide-caption { right: 20px; bottom: 20px; left: 20px; }
    .hero-slider-controls { right: -4px; bottom: 14px; }
    .hero-slider-dots { bottom: -20px; }
    
    .footer-cta-inner { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; text-align: center; }
    .footer-cta-actions { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 42px 0 34px; }
    .footer-col:last-child { grid-column: auto; }
    .site-footer .footer-bottom { flex-direction: column; justify-content: center; min-height: 0; padding: 20px 0; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

@media (max-width: 420px) {
    .container { padding-inline: 16px; }
    .page-hero { padding-top: 98px !important; }
    .service-card, .pricing-card, .feature-item { padding: 22px 18px; }
    .footer-cta-actions .btn { width: 100%; }
}

/* ============================================================
   FORCER LE CARROUSEL EN FORMAT 4:5 (SANS AUCUN ROGNAGE)
   ============================================================ */
.hero-showcase {
    min-height: auto !important; /* Annule l'ancienne hauteur fixe bloquante */
    aspect-ratio: 4 / 5 !important; /* Force la boîte à être exactement au format 4:5 */
    width: 100% !important;
    max-width: 480px !important; /* Sécurité pour éviter que ça devienne trop géant sur un très grand écran PC */
    margin: 0 auto !important;
}

.hero-slider-shell {
    min-height: auto !important;
    height: 100% !important;
}

.hero-slide-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    /* L'astuce : puisque la boîte est maintenant en 4:5, l'image 4:5 rentrera parfaitement au millimètre près, sans aucune bande et sans être coupée ! */
    background: transparent !important;
}