/* =====================================================================
   STYLE â€” Studio de production audiovisuelle (Vivahouse)
   ThÃ¨me : minimaliste, cinÃ©matographique.
   Noir profond Â· blanc cassÃ© Â· accents ORANGE + VERT (couleurs du logo).
   ===================================================================== */

:root {
    --ink:        #0d0d10;   /* noir profond  */
    --ink-soft:   #16161b;   /* fonds sombres */
    --paper:      #faf9f6;   /* blanc cassÃ©   */
    --paper-2:    #f0eee9;   /* gris clair    */
    --line:       #e3e0d9;   /* filets        */
    --muted:      #6b6b73;   /* texte gris    */
    --accent:     #f06c18;   /* orange (logo) */
    --accent-2:   #d35a12;   /* orange foncÃ©  */
    --green:      #249c3c;   /* vert (logo)   */
    --green-2:    #1c7d30;   /* vert foncÃ©    */
    --white:      #ffffff;

    --display: 'Fraunces', Georgia, serif;
    --body:    'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.12;
}

a { text-decoration: none; }

.text-muted-soft { color: var(--muted) !important; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-dark { background: var(--green-2); color: var(--paper); }
.section-alt { background: var(--accent); }

.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}
.section-dark .eyebrow { color: var(--accent); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.lead-soft { color: var(--white); font-size: 1.08rem; max-width: 42rem; }

.lead-softtwo { color: var(--ink); font-size: 1.08rem; max-width: 42rem; }

/* ---------- Boutons ---------- */
.btn-accent {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    transition: transform .2s ease, background .2s ease;
}
.btn-accent:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); }

.btn-outline-light-2 {
    border: 1px solid rgba(255,255,255,.4);
    color: var(--paper);
    border-radius: 2rem;
    font-weight: 500;
    transition: all .2s ease;
}
.btn-outline-light-2:hover { background: var(--paper); color: var(--ink); }

.btn-outline-ink {
    border: 1px solid var(--ink);
    color: var(--ink);
    border-radius: 2rem;
    font-weight: 500;
    transition: all .2s ease;
}
.btn-outline-ink:hover { background: var(--ink); color: var(--paper); }

/* ---------- Navigation ---------- */
.site-nav {
    background: rgba(13,13,16,.55);
    backdrop-filter: blur(14px);
    transition: background .3s ease;
    padding: .7rem 0;
}
.site-nav.scrolled { background: rgba(13,13,16,.95); }
.navbar-brand {
    display: flex; align-items: center; gap: .55rem;
    padding-top: 0; padding-bottom: 0;
}
.navbar-brand .brand-logo {
    height: 80px; width: auto; display: block;
}
.site-nav .nav-link { font-size: .93rem; font-weight: 500; opacity: .85; }
.site-nav .nav-link:hover,
.site-nav .nav-link.active { opacity: 1; color: var(--accent); }
.nav-spacer { height: 0px; }

/* ---------- Hero + Slider ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 7rem 0 6rem;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
}
/* carousel en fond */
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }
.hero-slide { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }
.carousel-fade .carousel-item { transition: opacity .9s ease; }
/* voile de lisibilitÃ© + halo orange */
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(13,13,16,.90) 0%, rgba(13,13,16,.70) 42%, rgba(13,13,16,.42) 100%),
      radial-gradient(60% 80% at 80% 12%, rgba(240,108,24,.18), transparent 60%),
      radial-gradient(40% 60% at 8% 92%, rgba(36,156,60,.10), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.02;
}
.hero-title .accent { color: var(--accent); font-style: italic; }
.hero-sub { color: rgba(250,249,246,.82); font-size: 1.15rem; max-width: 40rem; }
.scanline {
    height: 3px; width: 96px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    margin-bottom: 1.8rem; border-radius: 3px;
    box-shadow: 0 0 14px 1px rgba(240,108,24,.5);
}

/* ---------- Chiffres clÃ©s ---------- */
.stat-num { font-family: var(--display); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(250,249,246,.6); }

/* ---------- Cartes services ---------- */
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem 1.6rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px -20px rgba(13,13,16,.35);
    border-color: var(--accent);
}
.service-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--accent);
    font-size: 1.5rem; margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.service-card .subtitle { color: var(--green); font-size: .9rem; font-style: italic; margin-bottom: .7rem; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 2rem;
    padding: .4rem 1.1rem;
    font-size: .88rem; font-weight: 500;
    cursor: pointer; transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.portfolio-card {
    position: relative; border-radius: 14px; overflow: hidden;
    background: var(--ink); aspect-ratio: 4/3;
    display: block;
}
.portfolio-card .thumb {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease, opacity .3s ease;
    opacity: .85;
}
.portfolio-card:hover .thumb { transform: scale(1.06); opacity: .55; }
.portfolio-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(240,108,24,.5); font-size: 2.6rem;
    background: linear-gradient(135deg, #1a1a20, #0d0d10);
}
.portfolio-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.3rem;
    background: linear-gradient(to top, rgba(13,13,16,.9) 5%, transparent 60%);
    color: var(--paper);
}
.portfolio-overlay .cat { color: var(--accent); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-overlay h3 { font-size: 1.15rem; margin: .2rem 0 0; }
.portfolio-overlay .client { font-size: .85rem; color: rgba(250,249,246,.7); }

/* ---------- TÃ©moignages ---------- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2.2rem;
    height: 100%;
}
.testimonial-card .quote-mark { font-family: var(--display); font-size: 3rem; color: var(--accent); line-height: .3; }
.testimonial-card blockquote { font-family: var(--display); font-size: 1.12rem; font-style: italic; margin: 1rem 0 1.4rem; }
.testimonial-author { font-weight: 600; }
.testimonial-role { color: var(--muted); font-size: .88rem; }

/* ---------- Blog ---------- */
.blog-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(13,13,16,.35); }
.blog-card .cover { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--paper-2); }
.blog-card .cover-ph { aspect-ratio:16/9; display:flex;align-items:center;justify-content:center;background:var(--ink);color:rgba(240,108,24,.5);font-size:2rem; }
.blog-card .body { padding: 1.4rem; }
.blog-card h3 { font-size: 1.2rem; }
.blog-date { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }

/* ---------- Formulaires ---------- */
.form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.4rem;
}
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(240,108,24,.2);
}
.form-label { font-weight: 500; font-size: .92rem; }

/* ---------- Alertes ---------- */
.alert-ok { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; border-radius: 10px; }
.alert-ko { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; border-radius: 10px; }

/* ---------- Page bandeau titre ---------- */
.page-hero {
    background: var(--green); color: var(--paper);
    padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden;
}
.page-hero::after {
    content:''; position:absolute; inset:0;
    background: radial-gradient(50% 100% at 85% 0%, rgba(240,108,24,.18), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.2rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 4rem 0 1.8rem; }
.footer-brand { font-family: var(--display); font-weight: 900; font-size: 1.4rem; }
.footer-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(250,249,246,.72); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact i { color: var(--accent); margin-right: .4rem; }
.footer-social a { color: var(--paper); font-size: 1.25rem; margin-right: .9rem; opacity: .8; }
.footer-social a:hover { color: var(--accent); opacity: 1; }
.footer-rule { border-color: rgba(255,255,255,.12); margin: 2.5rem 0 1.4rem; }

/* ---------- Boutons flottants ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1030; display: flex; flex-direction: column; gap: .7rem; }
.fab {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.35rem;
    box-shadow: 0 8px 22px -6px rgba(0,0,0,.4);
    transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); color:#fff; }
.fab-wa   { background: #25d366; }
.fab-tel  { background: var(--green); }
.fab-mail { background: var(--accent); }

/* ---------- Divers ---------- */
.divider-accent { width: 60px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); border: none; opacity: 1; margin: 1.2rem 0; }
.value-item { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.value-item h4 { font-size: 1.1rem; }

/* AccessibilitÃ© : focus visible */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

@media (max-width: 991px) {
    .site-nav { background: rgba(13,13,16,.97); }
    .navbar-nav { padding: 1rem 0; gap: .2rem; }
    .hero { min-height: 540px; }
    .hero-slide { min-height: 540px; }
}

/* =====================================================================
   GALERIE DES RÃ‰ALISATIONS (photos + vidÃ©os)
   ===================================================================== */

/* Badges nombre de mÃ©dias sur les cartes du portfolio */
.portfolio-card { position: relative; }
.portfolio-card .media-count {
    position: absolute; top: .7rem; left: .7rem; z-index: 3;
    display: flex; gap: .4rem;
}
.portfolio-card .media-count span {
    background: rgba(0,0,0,.6); color: #fff; font-size: .72rem;
    padding: .18rem .5rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.portfolio-card .play-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 54px; height: 54px; border-radius: 50%; z-index: 3;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; opacity: .92; transition: transform .25s ease;
    pointer-events: none;
}
.portfolio-card:hover .play-badge { transform: translate(-50%,-50%) scale(1.12); }
.portfolio-overlay .voir { font-size: .8rem; color: var(--accent); font-weight: 600; }

/* Grille de photos de la page rÃ©alisation */
.gallery-item {
    position: relative; display: block; width: 100%; padding: 0; border: 0;
    background: none; border-radius: 10px; overflow: hidden; cursor: zoom-in;
}
.gallery-item img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    transition: transform .4s ease, filter .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(.75); }
.gallery-item .zoom {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .zoom { opacity: 1; }

/* Visionneuse plein Ã©cran */
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img {
    max-width: 100%; max-height: 78vh; border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px); transition: background .2s ease;
}
.lb-nav:hover { background: var(--accent); }
.lb-prev { left: -4px; }
.lb-next { right: -4px; }
@media (min-width: 768px) { .lb-prev { left: -60px; } .lb-next { right: -60px; } }

/* Lecteurs vidÃ©o de la page rÃ©alisation */
.ratio video, .ratio iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Liens de la page rÃ©alisation */
.page-hero .hero-back { color: #fff; opacity: .8; letter-spacing: .04em; }
.page-hero .hero-back:hover { opacity: 1; color: #fff; text-decoration: underline !important; }
.nav-realisation { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-realisation:hover { color: var(--accent); }
.lb-nav { background: rgba(255,255,255,.28); }

/* ---------- Diaporama du hero : contrÃ´les ---------- */
.hero-ctrl { width: 8%; z-index: 3; opacity: .55; transition: opacity .25s ease; }
.hero-ctrl:hover, .hero-ctrl:focus { opacity: 1; }
.hero-ctrl .carousel-control-prev-icon,
.hero-ctrl .carousel-control-next-icon { width: 2.2rem; height: 2.2rem; }
.hero-dots { z-index: 3; margin-bottom: 1.6rem; }
.hero-dots [data-bs-target] {
    width: 26px; height: 3px; border: 0; border-radius: 3px;
    background: rgba(255,255,255,.45); opacity: 1; transition: background .25s ease, width .25s ease;
}
.hero-dots .active { background: var(--accent); width: 40px; }
@media (max-width: 767px) {
    .hero-ctrl { display: none; }
}