/* ===== NUvision Technologies — couleurs du logo ===== */
:root {
  --orange: #F15A29;
  --orange-dark: #D4461A;
  --black: #1A1A1A;
  --ink: #2B2B2B;
  --muted: #6B6B6B;
  --line: #E7E3DC;
  --cream: #FBF8F1;
  --white: #FFFFFF;
  --radius: 10px;
  --font-head: 'Barlow', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--black); line-height: 1.15; font-weight: 700; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 2.5rem; }
.accent { color: var(--orange); }
.ico { width: 26px; height: 26px; }

/* Boutons */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 6px; font-weight: 600; font-family: var(--font-head);
  font-size: 1.02rem; letter-spacing: .2px; cursor: pointer; border: 2px solid transparent; transition: .2s; }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-outline-dark { border-color: var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #000; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--black); }
.brand img { height: 46px; width: auto; }
.brand { gap: .35rem; }
.brand b { color: var(--orange); font-weight: 800; }
.brand small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a:not(.btn) { font-weight: 500; font-size: .96rem; position: relative; padding: .3rem 0; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--orange); transition: .25s; }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; background: var(--black); color: #ddd; overflow: hidden; padding: 6rem 0 5rem; }
.circuit i { position: absolute; left: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(241,90,41,.35)); }
.circuit i::after { content: ''; position: absolute; right: -7px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); opacity: .5; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  font-size: .82rem; color: var(--orange); margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; margin-bottom: 1.3rem; }
.hero p { font-size: 1.1rem; max-width: 560px; color: #bdbdbd; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 2.8rem; }
.hero-stats { display: flex; gap: 2.8rem; list-style: none; border-top: 1px solid #333; padding-top: 1.6rem; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; }
.hero-stats span { font-size: .85rem; color: #999; }
.hero-logo { background: #fff; padding: 1.2rem; border-radius: 14px; transform: rotate(2deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-light { background: var(--cream); }
.section-dark { background: var(--black); color: #bbb; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2, .split h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.page-head { background: var(--cream); padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: .25s; display: flex; flex-direction: column; background: #fff; }
.card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.06); }
.card h3 { font-size: 1.28rem; margin: 1.1rem 0 .5rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .more { margin-top: 1.2rem; color: var(--orange); font-weight: 600; font-size: .92rem; }
.card-ico { width: 54px; height: 54px; border-radius: 10px; background: #FDEEE8; color: var(--orange); display: grid; place-items: center; }
.card-ico.big { width: 72px; height: 72px; }
.card-ico.big .ico { width: 34px; height: 34px; }

/* Split / checklist */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split p { margin-bottom: 1rem; }
.checklist { list-style: none; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .8rem; align-items: center; color: #eee; font-size: 1.05rem; padding: 1rem 1.2rem; border: 1px solid #333; border-radius: 8px; }
.checklist .ico { color: var(--orange); flex-shrink: 0; }

/* Projets */
.project { border-left: 4px solid var(--orange); background: var(--cream); padding: 1.6rem 1.8rem; border-radius: 0 var(--radius) var(--radius) 0; }
.project h3 { font-size: 1.2rem; margin: .7rem 0 .4rem; }
.project p { color: var(--muted); font-size: .95rem; }
.project small { display: block; margin-top: .8rem; color: #999; }
.tag { display: inline-block; background: var(--black); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter { border: 1px solid var(--line); background: #fff; padding: .45rem 1.1rem; border-radius: 30px; cursor: pointer; font: inherit; font-size: .9rem; }
.filter.active, .filter:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Page services */
.service-list { display: grid; gap: 1.5rem; }
.service-row { display: grid; grid-template-columns: 60px 72px 1fr; gap: 1.6rem; padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 100px; align-items: start; }
.service-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--line); line-height: 1; }
.service-body h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.service-body .lead { color: var(--orange); font-weight: 500; }
.service-body p { margin-bottom: .9rem; color: var(--muted); }

/* À propos */
.about-logo { border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.value { background: #fff; padding: 2rem; border-radius: var(--radius); border-top: 4px solid var(--orange); }
.value h3 { margin-bottom: .6rem; }

/* Bandeau CTA */
.cta-band { background: var(--orange); padding: 3.5rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* Formulaires */
.split-form { align-items: start; grid-template-columns: 1fr 1.5fr; }
.form { display: grid; gap: 1.1rem; background: #fff; padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: .8rem .95rem; border: 1px solid #D8D3CA; border-radius: 6px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,90,41,.15); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .9rem 1.1rem; border-radius: 6px; font-size: .95rem; }
.alert-success { background: #E8F6EC; color: #1E6B35; border: 1px solid #BFE3C9; }
.alert-error { background: #FDECEA; color: #A12A1C; border: 1px solid #F5C2BB; }
.flash-wrap { padding-top: 1.2rem; }
.contact-info h2 { margin-bottom: 1.4rem; }
.contact-list { list-style: none; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; }
.contact-list .ico { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.contact-list.big { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* Pied de page */
.site-footer { background: #111; color: #9a9a9a; padding-top: 4rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer small { color: #888; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a:hover { color: var(--orange); }
.newsletter { display: flex; gap: .4rem; margin-top: .8rem; }
.newsletter input { flex: 1; min-width: 0; padding: .55rem .7rem; border-radius: 6px; border: 1px solid #333; background: #1c1c1c; color: #fff; font: inherit; }
.footer-bottom { border-top: 1px solid #222; padding: 1.3rem 0; font-size: .85rem; }

.whatsapp { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 60; transition: .2s; }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; }

/* Animation d'apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .split, .split-form { grid-template-columns: 1fr; }
  .hero-logo { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 4%; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 1rem; text-align: center; }
}
@media (max-width: 620px) {
  .section { padding: 4rem 0; }
  .form .row, .footer-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; padding: 1.6rem; }
  .service-num { display: none; }
  .hero-stats { gap: 1.5rem; }
  .brand small { display: none; }
}

/* ===== Diaporama de la page d'accueil ===== */
.slider { padding: 0; min-height: 600px; }
.slides { display: grid; min-height: 600px; }
.slide { grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slider .circuit i { opacity: .6; }
.slide .hero-inner { padding: 5rem 0 6rem; }
.slide .hero-text > * { opacity: 0; transform: translateY(26px); transition: .7s ease; }
.slide.active .hero-text > * { opacity: 1; transform: none; }
.slide.active .hero-text > *:nth-child(2) { transition-delay: .12s; }
.slide.active .hero-text > *:nth-child(3) { transition-delay: .24s; }
.slide.active .hero-text > *:nth-child(4) { transition-delay: .36s; }
.slide-title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 1.3rem; }
.hero-visual { display: flex; justify-content: center; opacity: 0; transform: scale(.9); transition: .9s ease .2s; }
.slide.active .hero-visual { opacity: 1; transform: none; }
.orb { position: relative; width: 300px; height: 300px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2c2c2c, #141414); border: 1px solid #333; color: var(--orange); }
.orb .ico { width: 120px; height: 120px; stroke-width: 1.3; }
.orb .ring { position: absolute; inset: -22px; border: 2px dashed rgba(241,90,41,.35); border-radius: 50%; animation: spin 30s linear infinite; }
.orb .ring.r2 { inset: -50px; border: 1px solid rgba(255,255,255,.08); animation-duration: 50s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: .2s; }
.slider-arrow:hover { background: var(--orange); border-color: var(--orange); }
.slider-arrow.prev { left: 18px; } .slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; z-index: 5; }
.slider-dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: .3s; }
.slider-dots button.active { width: 34px; background: var(--orange); }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--orange); }
.stats-band { background: #111; border-top: 1px solid #262626; padding: 2rem 0; }
.stats-band .hero-stats { border: 0; padding: 0; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 960px) {
  .slider, .slides { min-height: 0; }
  .slider .circuit { display: none; }
  .slide .hero-inner { padding: 3.5rem 0 5.5rem; }
  .hero-visual { display: none; }
  .slider-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide * { transition: none !important; animation: none !important; } }
