:root {
  --nuit: #0c0c11;
  --nuit-2: #15151d;
  --nuit-3: #1e1e29;
  --ivoire: #f6f2ea;
  --ivoire-2: #ece6da;
  --encre: #15141a;
  --gris: #8d8a96;
  --gris-clair: #b9b5c2;
  --ligne: rgba(255, 255, 255, .09);
  --ligne-claire: #ddd5c6;
  --accent: #ff5a36;
  --accent-fonce: #e4441f;
  --or: #d8b073;
  --rayon: 22px;
  --max: 1220px;
  --serif: "Didot", "Bodoni MT", "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre); background: var(--ivoire); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.conteneur { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 17, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ligne); color: #fff; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: .02em; }
.logo-marque { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--nuit); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; letter-spacing: -.04em; }
.logo-marque span { color: var(--accent); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { text-decoration: none; color: var(--gris-clair); font-size: .94rem; transition: color .2s; }
.nav a:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #fff; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-plein { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(255, 90, 54, .32); }
.btn-plein:hover { background: var(--accent-fonce); box-shadow: 0 16px 36px rgba(255, 90, 54, .42); }
.btn-contour { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-contour:hover { background: #fff; color: var(--nuit); }
.btn-sombre { background: var(--nuit); color: #fff; }
.btn-sombre:hover { background: var(--accent); }
.nav .btn { padding: 11px 20px; font-size: .9rem; color: #fff; }
.fleche { transition: transform .2s; }
.btn:hover .fleche { transform: translateX(4px); }

/* ---------- Héros ---------- */
.heros { background: var(--nuit); color: #fff; position: relative; overflow: hidden; padding: 110px 0 0; }
.heros::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; background: radial-gradient(circle, rgba(255, 90, 54, .22), transparent 62%); pointer-events: none; }
.heros::after { content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -200px; background: radial-gradient(circle, rgba(216, 176, 115, .12), transparent 60%); pointer-events: none; }
.heros .conteneur { position: relative; z-index: 2; text-align: center; }
.pastille { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, .04); padding: 8px 16px 8px 12px; border-radius: 999px; font-size: .86rem; color: var(--gris-clair); }
.pastille i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.heros h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 1.02; letter-spacing: -.02em; margin: 28px auto 26px; max-width: 15ch; }
.heros h1 em { color: var(--or); }
.heros .chapo { color: var(--gris-clair); font-size: 1.2rem; max-width: 52ch; margin: 0 auto; }
.heros .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.heros .preuves { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-size: .9rem; color: var(--gris); }
.heros .preuves b { color: #fff; font-weight: 600; }

/* Composition d'écrans */
.vitrine-ecrans { position: relative; margin: 80px auto 0; width: min(1100px, 100%); height: 520px; }
.cadre { position: absolute; border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.cadre .barre { height: 30px; background: #1d1d26; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.cadre .barre i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a48; }
.cadre .barre i:nth-child(1) { background: #ff6159; } .cadre .barre i:nth-child(2) { background: #ffbd2e; } .cadre .barre i:nth-child(3) { background: #28c941; }
.cadre .barre span { margin-left: 14px; font-size: .72rem; color: #8b8b99; background: #121218; padding: 3px 12px; border-radius: 6px; }
.cadre img { width: 100%; }
.cadre-centre { width: 64%; left: 18%; top: 0; z-index: 3; }
.cadre-gauche { width: 42%; left: 0; top: 90px; z-index: 2; transform: perspective(1400px) rotateY(14deg); opacity: .9; }
.cadre-droite { width: 42%; right: 0; top: 90px; z-index: 2; transform: perspective(1400px) rotateY(-14deg); opacity: .9; }
.telephone { position: absolute; right: 13%; bottom: -40px; z-index: 4; width: 170px; height: 340px; border-radius: 34px; background: #0a0a0e; padding: 9px; box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); }
.telephone .dalle { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background-size: cover; background-position: 38% top; }
.fondu-bas { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--nuit)); z-index: 5; pointer-events: none; }

/* Bandeau secteurs */
.secteurs { background: var(--nuit); color: var(--gris); border-top: 1px solid var(--ligne); overflow: hidden; padding: 26px 0; }
.defile { display: flex; gap: 60px; width: max-content; animation: defile 38s linear infinite; font-family: var(--serif); font-size: 1.45rem; color: #6f6c7a; }
.defile span::after { content: "✦"; margin-left: 60px; color: var(--accent); font-size: .9rem; vertical-align: middle; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.titre-section { max-width: 700px; margin-bottom: 60px; }
.titre-section.centre { margin-inline: auto; text-align: center; }
.sur { display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.02em; margin: 14px 0 18px; }
h2 em { color: var(--accent); }
.titre-section p { color: #5d5966; font-size: 1.1rem; }
.sombre { background: var(--nuit); color: #fff; }
.sombre .titre-section p { color: var(--gris-clair); }
.sombre h2 em { color: var(--or); }

/* Promesse */
.promesse .grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.carte-promesse { background: #fff; border-radius: var(--rayon); padding: 38px 34px; border: 1px solid var(--ligne-claire); transition: transform .3s, box-shadow .3s; }
.carte-promesse:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(21, 20, 26, .08); }
.carte-promesse .num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--accent); }
.carte-promesse h3 { font-size: 1.25rem; margin: 18px 0 10px; letter-spacing: -.01em; }
.carte-promesse p { color: #5d5966; }

/* Réalisations */
.filtres { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filtre { border: 1px solid var(--ligne-claire); background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 600; color: #5d5966; transition: .2s; }
.filtre.actif, .filtre:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.grille-portfolio { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.projet { grid-column: span 3; text-decoration: none; display: block; }
.projet.large { grid-column: span 6; }
.projet .ecran { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(21, 20, 26, .1), 0 0 0 1px rgba(21, 20, 26, .06); transition: transform .5s ease, box-shadow .5s ease; position: relative; }
.projet .ecran .barre { height: 28px; background: #f0ece4; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.projet .ecran .barre i { width: 9px; height: 9px; border-radius: 50%; background: #d7d0c3; }
.projet .ecran .vue { aspect-ratio: 16 / 10; overflow: hidden; }
.projet.large .ecran .vue { aspect-ratio: 16 / 7; }
.projet .ecran img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s ease; }
.projet:hover .ecran { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(21, 20, 26, .16), 0 0 0 1px rgba(21, 20, 26, .06); }
.projet:hover .ecran img { transform: scale(1.03); }
.projet .infos { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 4px 0; }
.projet h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; }
.projet p { color: #5d5966; font-size: .97rem; margin-top: 2px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tags span { font-size: .75rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--ligne-claire); color: #5d5966; }
.tags span.demo { background: #fff4d9; border-color: #f1dc9f; color: #8a6400; }
.tags span.reel { background: #e4f6ec; border-color: #b4e2cc; color: #146b48; }
.rond { width: 48px; height: 48px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s, transform .2s; font-size: 1.1rem; }
.projet:hover .rond { background: var(--accent); transform: rotate(-45deg); }
.note-demo { margin-top: 40px; color: #77737f; font-size: .9rem; }

/* Services */
.grille-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 36px 32px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; position: relative; overflow: hidden; }
.service:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-4px); }
.service h3 { font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: 10px; }
.service p { color: var(--gris-clair); flex: 1; font-size: .98rem; }
.service ul { list-style: none; margin: 20px 0 0; display: grid; gap: 8px; font-size: .92rem; color: var(--gris-clair); }
.service li::before { content: "✓"; color: var(--or); margin-right: 10px; font-weight: 700; }
.service .prix { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ligne); display: flex; justify-content: space-between; align-items: baseline; }
.service .prix strong { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; }
.service .prix small { color: var(--gris); font-size: .85rem; }
.service.vedette { background: linear-gradient(160deg, #2a1a16, var(--nuit-2) 60%); border-color: rgba(255, 90, 54, .45); }
.etiquette { position: absolute; top: 22px; right: 22px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.services-bas { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 34px; padding: 30px 34px; border-radius: var(--rayon); border: 1px dashed rgba(255, 255, 255, .2); color: var(--gris-clair); }
.services-bas b { color: #fff; }

/* Méthode */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.etapes::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 1px; background: var(--ligne-claire); }
.etape { position: relative; }
.etape .pastille-num { width: 56px; height: 56px; border-radius: 50%; background: var(--ivoire); border: 1px solid var(--encre); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 22px; position: relative; }
.etape:first-child .pastille-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.etape h3 { font-size: 1.15rem; margin-bottom: 8px; }
.etape p { color: #5d5966; font-size: .97rem; }

/* Engagements */
.engagements { background: var(--ivoire-2); padding: 90px 0; }
.engagements .grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.engagement svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.6; margin-bottom: 14px; }
.engagement h3 { font-size: 1.05rem; margin-bottom: 6px; }
.engagement p { color: #5d5966; font-size: .95rem; }

/* FAQ */
.faq-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq details { border-bottom: 1px solid var(--ligne-claire); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: #5d5966; }

/* Contact */
.contact { background: var(--nuit); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 800px; height: 800px; left: 50%; top: -400px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 90, 54, .2), transparent 60%); }
.contact .conteneur { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact h2 em { color: var(--or); }
.contact p { color: var(--gris-clair); font-size: 1.1rem; }
.contact .direct { margin-top: 30px; display: grid; gap: 10px; color: var(--gris-clair); }
.contact .direct a { color: #fff; font-weight: 600; }
.formulaire { background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: 26px; padding: 34px; display: grid; gap: 16px; }
.formulaire label { font-weight: 600; font-size: .86rem; display: grid; gap: 8px; color: var(--gris-clair); }
.formulaire input, .formulaire select, .formulaire textarea { font: inherit; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--nuit-3); color: #fff; color-scheme: dark; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.formulaire textarea { min-height: 120px; resize: vertical; }
.formulaire .btn { justify-content: center; margin-top: 6px; }
.formulaire .note { font-size: .82rem; color: var(--gris); text-align: center; }
.formulaire .note a { color: var(--gris-clair); }
.formulaire .note.erreur { color: #ffb4a3; font-size: .9rem; }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .merci { text-align: center; padding: 40px 10px; }
.formulaire .merci b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: #fff; margin-bottom: 10px; }
.formulaire .merci p { color: var(--gris-clair); }
.formulaire button:disabled { opacity: .7; cursor: wait; transform: none; }

/* Pied */
.pied { background: var(--nuit); color: var(--gris); padding: 40px 0; font-size: .9rem; border-top: 1px solid var(--ligne); }
.pied .conteneur { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.pied nav { display: flex; gap: 24px; flex-wrap: wrap; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }

/* Pages simples (mentions légales) */
.page-simple { padding: 80px 0 100px; }
.page-simple .conteneur { max-width: 780px; }
.page-simple h1 { font-family: var(--serif); font-weight: 400; font-size: 2.8rem; margin-bottom: 30px; }
.page-simple h2 { font-family: inherit; font-weight: 700; font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: 0; }
.page-simple p, .page-simple li { color: #4f4b58; margin-bottom: 8px; }
.a-completer { background: #fff4d9; padding: 1px 6px; border-radius: 4px; color: #8a6400; font-weight: 600; }

/* Apparition */
.apparait { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  .defile { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .promesse .grille, .grille-services { grid-template-columns: 1fr 1fr; }
  .etapes, .engagements .grille { grid-template-columns: 1fr 1fr; }
  .etapes::before { display: none; }
  .faq-grille, .contact .conteneur { grid-template-columns: 1fr; gap: 50px; }
  .vitrine-ecrans { height: 400px; }
  .projet { grid-column: span 6; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--nuit); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--ligne); gap: 20px; }
  .nav.ouvert { display: flex; }
  .menu-btn { display: block; }
  .heros { padding-top: 70px; }
  section { padding: 80px 0; }
  .promesse .grille, .grille-services, .etapes, .engagements .grille { grid-template-columns: 1fr; }
  .vitrine-ecrans { height: 250px; margin-top: 50px; }
  .cadre-gauche, .cadre-droite { display: none; }
  .cadre-centre { width: 92%; left: 4%; }
  .telephone { width: 104px; height: 210px; right: 2%; bottom: -20px; border-radius: 24px; padding: 6px; }
  .telephone .dalle { border-radius: 19px; }
  .projet.large .ecran .vue { aspect-ratio: 16 / 10; }
  .formulaire { padding: 24px; }
}
