:root {
  --bg: #020205; --card: #0b0b12; --muted-bg: #191926; --border: #22222f;
  --fg: #fafafa; --muted: #a5abb8;
  --primary: #22d3ee; --accent: #d948ef; --danger: #ef4444; --wa: #1a9e4a;
  --grad: linear-gradient(100deg, var(--primary), var(--accent));
  --glow: 0 0 40px -8px rgba(34,211,238,.45), 0 0 80px -20px rgba(217,72,239,.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: 'Outfit', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); } h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; } h3 { font-size: 1.2rem; margin-bottom: .5rem; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); } .small { font-size: .8rem; } .accent { color: var(--primary); font-weight: 500; }
.center { text-align: center; } .mt { margin-top: 2.5rem; }
.text-gradient { background: linear-gradient(100deg, var(--primary), var(--fg) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding: 0 .16em; }
.eyebrow { color: var(--primary); font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; margin-bottom: 1rem; }
.line { width: 64px; height: 2px; background: var(--grad); margin: 1rem 0 1.5rem; } .line.center { margin: 1rem auto 1.5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 2rem; border-radius: 3px; font-weight: 600; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: opacity .2s, background .2s; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--grad); color: var(--bg); box-shadow: var(--glow); } .btn-primary:hover { opacity: .9; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; } .btn-outline:hover { background: rgba(34,211,238,.1); }
.btn-whatsapp { background: var(--wa); color: #fff; width: fit-content; }
.btn-sm { padding: .6rem 1.2rem; background: var(--primary); box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; }

/* Navbar */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, padding .3s; padding: 1rem 0; }
.nav.scrolled { background: rgba(2,2,5,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: .5rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 64px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
@media (min-width: 961px) and (max-width: 1200px) {
  .nav-links { gap: .85rem; font-size: .76rem; }
  .nav-logo img { height: 52px; }
  .socials { gap: .5rem; }
}
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 1.8rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; font-size: 1.1rem; transform: translateX(100%); transition: transform .3s; }
  .menu-open .nav-links { transform: none; }
  .menu-open .nav-toggle { position: relative; z-index: 60; }
}

/* Hero */
.hero h1 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.14), transparent 55%), radial-gradient(circle at 75% 70%, rgba(217,72,239,.12), transparent 55%), linear-gradient(to bottom, rgba(2,2,5,.55), rgba(2,2,5,.95)); }
.hero-content { position: relative; padding-top: 6rem; max-width: 860px; margin: 0 auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 1.5rem 0 2.5rem; max-width: 620px; }
@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  .hero h1 { text-wrap: pretty; }
  .hero-content { padding-top: 7rem; }
  .lead { font-size: 1.05rem; }
}
@media (max-width: 380px) {
  .lead { font-size: 0.95rem; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero .lead { margin-left: auto; margin-right: auto; }

/* Sections */
.section { padding: 6rem 0; } .section-alt { background: var(--card); }
section[id] { scroll-margin-top: 110px; }
.page-top { padding-top: 5rem; }
.section-head { text-align: center; margin-bottom: 3.5rem; } .section-head p.muted { max-width: 560px; margin: 0 auto; }
.section-head .section-sub { font-size: .92rem; line-height: 1.55; color: var(--muted); max-width: 600px; margin: .9rem auto 0; }
.hero .eyebrow, .section-head .eyebrow { padding-left: .4em; }
.grid-2 { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 3px; padding: 2rem; transition: border-color .3s, box-shadow .3s; }
.section-alt .card { background: var(--bg); } .section:not(.section-alt) .card { background: var(--card); }
.card:hover { border-color: rgba(34,211,238,.4); box-shadow: var(--glow); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats div { border: 1px solid var(--border); padding: 1.5rem; text-align: center; background: var(--card); }
.stats strong { display: block; font-family: 'Syne'; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .85rem; }
.stars { color: var(--muted-bg); font-size: 1.1rem; margin-bottom: 1rem; } .stars .on { color: var(--primary); }
blockquote p { margin-bottom: 1.2rem; font-style: italic; }

/* Slider */
.slider { position: relative; height: 70vh; min-height: 380px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; bottom: 2rem; left: 2rem; font-family: 'Syne'; font-size: 1.6rem; background: rgba(2,2,5,.6); padding: .5rem 1.2rem; border-left: 3px solid var(--primary); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(2,2,5,.6); color: var(--fg); border: 1px solid var(--border); width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; }
.slider-btn.prev { left: 1rem; } .slider-btn.next { right: 1rem; }

/* Galerie */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-cap { position: absolute; inset: auto 0 0; padding: 1rem; background: linear-gradient(transparent, rgba(2,2,5,.95)); font-family: 'Syne'; font-weight: 600; }
.gallery-cap small { display: block; color: var(--primary); font-family: 'Outfit'; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.filters a { padding: .55rem 1.2rem; border: 1px solid var(--border); border-radius: 3px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.filters a.active, .filters a:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2,2,5,.96); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 90vw; cursor: zoom-in; transition: transform .3s; }
.lightbox img.zoom { transform: scale(1.8); cursor: zoom-out; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--fg); font-size: 3rem; cursor: pointer; }
.lb-close { top: 1rem; right: 1.5rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
input, select, textarea { width: 100%; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 3px; color: var(--fg); font: inherit; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(34,211,238,.6); }
textarea { resize: vertical; } input[type=date] { color-scheme: dark; }
.hp { position: absolute; left: -9999px; }
.alert { grid-column: 1 / -1; padding: .8rem 1rem; border: 1px solid var(--danger); color: #fca5a5; border-radius: 3px; }
.success { padding: .8rem 1rem; border: 1px solid var(--primary); color: var(--primary); border-radius: 3px; margin-bottom: 1.5rem; }
.confirm { border-color: rgba(34,211,238,.4); box-shadow: var(--glow); }
.confirm > * + * { margin-top: .8rem; }
.map { margin-top: 4rem; border: 1px solid var(--border); box-shadow: var(--glow); }
.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-logo { height: 80px; width: auto; }
.footer-links { display: flex; gap: 1.5rem; } .footer-links a:hover { color: var(--primary); }
.wa-float { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; z-index: 40; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ===== Admin ===== */
.admin-body { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .3rem; position: sticky; top: 0; height: 100vh; }
.sidebar img { height: 56px; width: auto; margin: 0 .5rem 1.5rem; }
.sidebar a { display: flex; justify-content: space-between; padding: .75rem 1rem; border-radius: 3px; font-size: .9rem; color: var(--muted); }
.sidebar a:hover { background: var(--muted-bg); color: var(--fg); }
.sidebar a.active { background: rgba(34,211,238,.12); color: var(--primary); border-left: 2px solid var(--primary); }
.sidebar .count { background: var(--muted-bg); color: var(--fg); font-size: .7rem; padding: .05rem .5rem; border-radius: 10px; }
.sidebar .logout { margin-top: auto; }
.admin-main { flex: 1; padding: 2.5rem; min-width: 0; }
.admin-main h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 3px; padding: 1.5rem; margin-bottom: 2rem; }
.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; } .row > * { flex: 1 1 200px; }
.row .btn { flex: 0 0 auto; }
label { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }
.thumbs { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--border); overflow: hidden; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .t-cap { position: absolute; inset: auto 0 0; padding: .3rem .4rem; background: rgba(2,2,5,.85); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .t-actions { position: absolute; top: .3rem; right: .3rem; display: flex; gap: .3rem; opacity: 0; transition: opacity .2s; }
.thumb:hover .t-actions { opacity: 1; }
.t-actions a, .t-actions button { background: rgba(2,2,5,.85); border: 1px solid var(--border); color: var(--fg); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .8rem; border-radius: 3px; }
.t-actions .del { color: var(--danger); }
.list-item { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1rem; border: 1px solid var(--border); border-radius: 3px; margin-bottom: .75rem; background: var(--bg); }
.list-item p { font-size: .9rem; }
.icon-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.login-box { max-width: 380px; margin: 12vh auto; } .login-box form > * + * { margin-top: 1rem; } .login-box img { height: 70px; margin: 0 auto 2rem; }
@media (max-width: 800px) {
  .admin-body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar img { display: none; } .sidebar .logout { margin-top: 0; }
  .admin-main { padding: 1.5rem 1rem; }
  .thumb .t-actions { opacity: 1; }
}

/* Icônes réseaux sociaux */
.socials { display: inline-flex; align-items: center; gap: .8rem; }
.socials a, .footer-links a { display: inline-flex; align-items: center; color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--primary); }
.btn-primary.btn-sm { color: var(--bg); }

/* Sélecteur de langue */
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .08em; border: 1px solid var(--border); padding: .35rem .6rem; border-radius: 3px; transition: color .2s, border-color .2s; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }

/* Bouton retour en haut */
.to-top { position: fixed; bottom: 6.5rem; right: 1.5rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* Logos clients et quatre réalisations */
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem 2.2rem; margin-bottom: 3rem; }
.client-logo { width: auto; min-width: 88px; max-width: 120px; text-align: center; }
.client-logo img { width: 88px; height: 48px; object-fit: contain; }
.client-logo figcaption { color: var(--muted); font-size: .78rem; line-height: 1.3; margin-top: .45rem; overflow-wrap: anywhere; }
.client-thumbs .thumb img { object-fit: contain; padding: 1rem 1rem 2rem; }
.client-thumbs .t-actions { opacity: 1; }
.client-edit { grid-column: 1 / -1; }
.rotating-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.rotating-gallery .gallery-cap { padding: .75rem .85rem; font-size: .88rem; }
.rotating-gallery .gallery-cap small { font-size: .62rem; letter-spacing: .16em; }
.rotating-gallery .gallery-item img { transition: opacity .3s, transform .6s; }
.rotating-gallery .gallery-item img.changing { opacity: 0; }
@media (max-width: 1000px) { .rotating-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rotating-gallery { grid-template-columns: 1fr; gap: 1rem; } .rotating-gallery .gallery-item { aspect-ratio: 4 / 3; } .rotating-gallery .gallery-cap { padding: .8rem .9rem; font-size: .88rem; } .client-logos { gap: 1.1rem 1.5rem; } .client-logo { flex: 0 0 calc(50% - .75rem); min-width: 0; max-width: calc(50% - .75rem); } .client-logo img { width: 72px; height: 40px; } .client-logo figcaption { font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { .rotating-gallery .gallery-item img { transition: none; } }
