/* DOTBOT, site vitrine (démo) */
:root {
  --marine: #10275b;
  --nuit: #081634;
  --encre: #18213a;
  --papier: #f3f5f9;
  --brume: #dce2eb;
  --doux: #59647d;
  --glace: #cfe0ff;
  --g: clamp(18px, 4.5vw, 64px);
  --max: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--papier); color: var(--encre); font: 400 17px/1.6 "Hanken Grotesk", system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #6fa4ff; outline-offset: 3px; }
.cadre { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }

.logo {
  display: inline-block; width: 124px; aspect-ratio: 3280 / 880; background: currentColor;
  -webkit-mask: url(../img/logo-dotbot.svg) no-repeat center / contain;
  mask: url(../img/logo-dotbot.svg) no-repeat center / contain;
}
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 500 15px/1 "Hanken Grotesk", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid currentColor; background: none; color: inherit; }
.bouton.plein { background: var(--marine); border-color: var(--marine); color: #fff; }

/* ---------- en-tête : transparent sur le hero, solide ensuite ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 10; color: #e9efff; transition: background .3s, color .3s, box-shadow .3s; }
.entete .cadre { display: flex; align-items: center; gap: 32px; height: 76px; }
.entete .liens { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.entete .liens a { text-decoration: none; opacity: .85; }
.entete .liens a:hover { opacity: 1; }
.entete .bouton { padding: 11px 20px; }
.entete .bouton.plein { background: #e9efff; border-color: #e9efff; color: var(--nuit); }
.entete.solide { background: rgba(243, 245, 249, .94); color: var(--marine); box-shadow: 0 1px 0 var(--brume); backdrop-filter: blur(10px); }
.entete.solide .bouton.plein { background: var(--marine); border-color: var(--marine); color: #fff; }
@media (max-width: 860px) { .entete .liens { display: none; } .entete .bouton { margin-left: auto; } }

/* ---------- hero : le relevé ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; color: #e9efff;
  background: radial-gradient(80% 70% at 58% 42%, #15306e 0%, #0b1a42 58%, #060d24 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; touch-action: pan-y; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 10% 78%, rgba(6, 13, 36, .82) 0%, transparent 70%); }
.hero .texte { position: absolute; left: var(--g); bottom: clamp(40px, 9vh, 96px); max-width: 600px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 100px); line-height: .94; font-weight: 300; letter-spacing: -.035em; }
.hero .texte p { margin-top: 22px; max-width: 44ch; color: #a9b8dc; font-size: 18px; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions .bouton.plein { background: #e9efff; border-color: #e9efff; color: var(--nuit); }

.tableau-bord { position: absolute; right: var(--g); bottom: clamp(40px, 9vh, 96px); width: 300px; font-variant-numeric: tabular-nums; }
.tableau-bord ol { list-style: none; display: grid; gap: 2px; counter-reset: e; }
.tableau-bord li { counter-increment: e; display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 6px 0; font-size: 15px; color: #6f82b3; transition: color .4s; }
.tableau-bord li::before { content: counter(e); font-size: 13px; }
.tableau-bord li[data-etat="fait"] { color: #a9b8dc; }
.tableau-bord li[data-etat="fait"]::before { content: "✓"; }
.tableau-bord li[data-etat="en-cours"] { color: #fff; }
.tableau-bord .barre { height: 2px; background: rgba(169, 184, 220, .25); margin: 10px 0 14px; position: relative; overflow: hidden; }
.tableau-bord .barre::after { content: ""; position: absolute; inset: 0; background: var(--glace); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tableau-bord .detail { font-size: 14px; color: var(--glace); min-height: 1.5em; }
.tableau-bord .n { display: block; margin-top: 12px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; letter-spacing: -.02em; color: #fff; }
.tableau-bord small { font-size: 13.5px; color: #8fa2d0; }
.rejouer { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 "Hanken Grotesk", sans-serif; color: var(--glace); background: rgba(207, 224, 255, .08); border: 1px solid rgba(207, 224, 255, .35); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.rejouer:hover { background: rgba(207, 224, 255, .16); }
.rejouer svg { width: 14px; height: 14px; }
.tableau-bord[data-fini="true"] .rejouer { border-color: var(--glace); color: #fff; }
.defiler { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 13px; color: #8fa2d0; text-decoration: none; }
@media (max-width: 860px) {
  .tableau-bord { top: 92px; bottom: auto; width: 230px; }
  .tableau-bord li { font-size: 13px; padding: 2px 0; }
  .hero .texte p { display: none; }
  .defiler { display: none; }
}
@media (max-width: 520px) {
  .tableau-bord ol, .tableau-bord .barre { display: none; }
  .tableau-bord { width: auto; text-align: right; }
  .tableau-bord .n { font-size: 22px; margin-top: 2px; }
  .rejouer { margin-top: 8px; padding: 7px 12px; }
}

/* ---------- sections ---------- */
section.bloc { padding: clamp(80px, 11vw, 150px) 0; }
.titre-bloc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) { .titre-bloc { grid-template-columns: 1fr; } }
.titre-bloc h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--marine); }
.titre-bloc p { color: var(--doux); max-width: 48ch; font-size: 18px; }

/* prestations */
.prestations { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .prestations { grid-template-columns: 1fr; } }
.presta figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #e6eaf1; border: 1px solid var(--brume); }
.presta figure img { width: 100%; height: 100%; object-fit: cover; }
.presta h3 { margin-top: 20px; font-size: 24px; font-weight: 500; color: var(--marine); letter-spacing: -.01em; }
.presta p { margin-top: 8px; color: var(--doux); max-width: 52ch; }
.presta ul { margin-top: 14px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.presta li { font-size: 13.5px; color: var(--marine); background: #e6ecf6; border-radius: 999px; padding: 4px 11px; }

/* méthode */
.methode { background: var(--nuit); color: #e9efff; }
.methode .titre-bloc h2 { color: #fff; }
.methode .titre-bloc p { color: #a9b8dc; }
.etapes { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: m; border-top: 1px solid rgba(169, 184, 220, .3); }
@media (max-width: 1000px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }
.etapes li { counter-increment: m; padding: 26px 24px 8px 0; }
.etapes li::before { content: counter(m, decimal-leading-zero); display: block; font-size: 14px; color: #6f82b3; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.etapes h3 { font-size: 20px; font-weight: 500; color: #fff; }
.etapes p { margin-top: 8px; font-size: 15.5px; color: #a9b8dc; }

/* réalisations */
.une { display: grid; grid-template-columns: 1.5fr 1fr; background: #fff; border: 1px solid var(--brume); border-radius: 12px; overflow: hidden; }
@media (max-width: 900px) { .une { grid-template-columns: 1fr; } }
.une > button { padding: 0; border: 0; background: #eef1f5; cursor: zoom-in; }
.une > button img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.une article { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--doux); align-items: center; }
.tag { color: var(--marine); background: #e6ecf6; padding: 3px 10px; border-radius: 999px; }
.tag.exemple { color: #7a5a14; background: #fbf0d9; }
.une h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; color: var(--marine); line-height: 1.15; letter-spacing: -.01em; }
.une p { color: #424d68; }
.vignettes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: auto; }
.vignettes button { padding: 0; border: 1px solid var(--brume); border-radius: 6px; overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 1; }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.projets { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
@media (max-width: 1100px) { .projets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .projets { grid-template-columns: 1fr; } }
.projet > button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.projet figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e6eaf1; border: 1px solid var(--brume); }
.projet figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.projet:hover figure img { transform: scale(1.03); }
.projet .nb { position: absolute; right: 10px; bottom: 10px; font-size: 12.5px; color: #fff; background: rgba(8, 22, 52, .72); padding: 3px 9px; border-radius: 999px; }
.projet figure img { background: #fff; }
.projet .meta { margin-top: 14px; }
.projet h3 { margin-top: 8px; font-size: 20px; font-weight: 500; color: var(--marine); }
.projet p { margin-top: 4px; font-size: 15.5px; color: var(--doux); }

/* contact */
.contact { background: #fff; border-top: 1px solid var(--brume); }
.contact .grille { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .contact .grille { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--marine); }
.contact .intro p { margin-top: 18px; color: var(--doux); max-width: 40ch; font-size: 18px; }
.contact .direct { margin-top: 32px; display: grid; gap: 10px; font-size: 17px; }
.contact .direct a { color: var(--marine); text-underline-offset: 4px; }
.reseaux { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.reseaux a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--brume); border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--marine); }
.reseaux a:hover { border-color: var(--marine); }
.reseaux svg { width: 18px; height: 18px; }
form.devis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.devis .plein-large { grid-column: 1 / -1; }
@media (max-width: 560px) { form.devis { grid-template-columns: 1fr; } }
form.devis label { display: grid; gap: 6px; font-size: 14px; color: var(--doux); }
form.devis input, form.devis select, form.devis textarea { font: 400 16px/1.4 "Hanken Grotesk", sans-serif; color: var(--encre); background: var(--papier); border: 1px solid var(--brume); border-radius: 8px; padding: 12px 14px; }
form.devis textarea { min-height: 120px; resize: vertical; }
form.devis input:focus, form.devis select:focus, form.devis textarea:focus { outline: 2px solid #6fa4ff; outline-offset: 0; border-color: transparent; }
form.devis .bouton { justify-self: start; }
form.devis output { grid-column: 1 / -1; font-size: 15px; color: var(--marine); }

footer { background: var(--nuit); color: #a9b8dc; font-size: 14.5px; }
footer .cadre { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
footer .logo { color: #e9efff; width: 110px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

dialog { border: 0; padding: 8px; overflow: visible; outline: none; background: transparent; max-width: 94vw; max-height: 94vh; margin: auto; }
dialog::backdrop { background: rgba(8, 22, 52, .86); }
dialog figure { display: grid; gap: 10px; }
dialog img { max-width: 94vw; max-height: 80vh; border-radius: 6px; background: #fff; margin: 0 auto; }
dialog figcaption { display: flex; gap: 14px; justify-content: center; color: #e9efff; font-size: 15px; }
dialog figcaption span + span { color: #a9b8dc; }
.zoom-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; color: #a9b8dc; font-size: 14px; font-variant-numeric: tabular-nums; }
.zoom-nav form { margin: 0 0 0 18px; }
dialog button:focus-visible { outline: 2px solid var(--glace); outline-offset: 3px; }
dialog button:hover { border-color: #fff; }
dialog button { font: 500 14px/1 "Hanken Grotesk", sans-serif; color: #fff; background: none; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
dialog:focus, dialog:focus-visible { outline: none; }
