/* Inner pages (services, tarifs, villes, blog, légal…). The 3D home page does not load this file. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--td-bg); color: var(--td-text);
    font: 400 17px/1.7 'Space Grotesk', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--td-green); }
a:hover { color: #6ff094; }
:focus-visible { outline: 2px solid var(--td-green); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--td-green); color: #03140a; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ambient glows */
body::before {
    content: ""; position: fixed; inset: -20vh -20vw auto auto; width: 70vw; height: 70vw; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(34, 224, 90, 0.13), rgba(34, 224, 90, 0) 70%);
}
body::after {
    content: ""; position: fixed; inset: auto auto -30vh -25vw; width: 70vw; height: 70vw; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(15, 184, 122, 0.09), rgba(15, 184, 122, 0) 70%);
}

.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 48px); margin: 0 auto; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 8, 6, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--td-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .td-btn { padding: 11px 18px; font-size: 13px; }
.header-cta .td-menu-btn { display: none; }
@media (max-width: 960px) {
    .site-nav { display: none; }
    .header-cta .td-menu-btn { display: inline-flex; }
}
@media (max-width: 480px) {
    .site-header .wrap { height: 66px; }
    .td-logo .logo-mark { height: 30px; }
    .td-logo .logo-text { height: 11px; }
    .header-cta .td-btn-primary { display: none; }
}

/* ---- Breadcrumb ---- */
.breadcrumb { padding-top: 26px; font-size: 13px; color: var(--td-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, 0.25); }
.breadcrumb a { color: var(--td-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--td-green); }

/* ---- Hero ---- */
.hero { padding: 42px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
    padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(34, 224, 90, 0.35); background: rgba(34, 224, 90, 0.07);
    color: var(--td-green); font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--td-green); box-shadow: 0 0 12px var(--td-green); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; margin: 0; color: #fff; }
h1 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
h1 .muted, h2 .muted { color: #b9c4bd; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #cdd6d0; margin: 22px 0 30px; max-width: 60ch; font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-visual img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
    animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } html { scroll-behavior: auto; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; font-size: 14px; color: var(--td-muted); }
.hero-points li::before { content: "✓"; color: var(--td-green); margin-right: 8px; }
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-visual { max-width: 190px; justify-self: center; order: -1; margin: -10px 0 -20px; }
}

/* ---- Sections ---- */
.section { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)); border-top: 1px solid var(--td-line); border-bottom: 1px solid var(--td-line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.015em; }
.section-head p { color: var(--td-muted); margin: 14px 0 0; font-size: 18px; }
.prose { color: #d3dbd5; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin: 52px 0 18px; font-size: clamp(26px, 3vw, 36px); scroll-margin-top: 100px; }
.prose h3 { margin: 32px 0 12px; scroll-margin-top: 100px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--td-green); }
.prose strong { color: #fff; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 28px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--td-line); vertical-align: top; }
.prose th { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--td-green); background: rgba(34, 224, 90, 0.05); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--td-line); margin: 36px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Cards ---- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
    position: relative; padding: 26px; border-radius: var(--td-radius);
    background: var(--td-card); border: 1px solid var(--td-line);
    transition: background .25s, border-color .25s, transform .25s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { background: var(--td-card-hover); border-color: rgba(34, 224, 90, 0.4); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--td-muted); font-size: 15.5px; line-height: 1.6; }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--td-green); }
.icon {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px;
    background: rgba(34, 224, 90, 0.09); border: 1px solid rgba(34, 224, 90, 0.25); color: var(--td-green);
}
.icon svg { width: 22px; height: 22px; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.price-card { display: flex; flex-direction: column; padding: 30px; border-radius: 22px; background: var(--td-card); border: 1px solid var(--td-line); }
.price-card.featured {
    background: linear-gradient(180deg, rgba(34, 224, 90, 0.10), rgba(34, 224, 90, 0.02));
    border-color: rgba(34, 224, 90, 0.55); box-shadow: 0 20px 60px rgba(34, 224, 90, 0.08);
}
.badge { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--td-green); color: #03140a; font-size: 12px; font-weight: 600; }
.price-card h3 { font-size: 20px; }
.price { margin: 16px 0 6px; font-size: 44px; font-weight: 500; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.price small { font-size: 15px; color: var(--td-muted); font-weight: 400; letter-spacing: 0; }
.price-note { font-size: 13.5px; color: var(--td-muted); margin: 0 0 20px; }
.checklist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: #d3dbd5; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--td-green); border-bottom: 2px solid var(--td-green); transform: rotate(-45deg); }
.price-card .td-btn { margin-top: auto; }
.legal-note { text-align: center; color: var(--td-muted); font-size: 13.5px; margin-top: 22px; }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 26px; border-radius: var(--td-radius); background: var(--td-card); border: 1px solid var(--td-line); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 16px; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; color: var(--td-green); }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--td-muted); font-size: 15px; line-height: 1.6; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--td-card); border: 1px solid var(--td-line); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(34, 224, 90, 0.35); background: rgba(255, 255, 255, 0.05); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 500; font-size: 17px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--td-green); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: #cdd6d0; font-size: 16px; }
.faq .answer p { margin: 0 0 10px; }

/* ---- CTA band ---- */
.cta-band {
    margin: 30px auto 90px; padding: clamp(32px, 5vw, 60px); border-radius: 28px; text-align: center;
    background: radial-gradient(120% 140% at 50% 0%, rgba(34, 224, 90, 0.18), rgba(34, 224, 90, 0.03) 60%), var(--td-bg-2);
    border: 1px solid rgba(34, 224, 90, 0.3);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: #cdd6d0; margin: 0 auto 26px; max-width: 56ch; }
.cta-band .actions { justify-content: center; }

/* ---- Chips / links lists ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--td-line); background: var(--td-card); color: #dfe6e1; text-decoration: none; font-size: 15px; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--td-green); color: var(--td-green); }
.region-block { margin-bottom: 30px; }
.region-block h2 { font-size: 22px; margin-bottom: 14px; }

/* ---- Compare table ---- */
.compare { min-width: 600px; width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--td-line); border-radius: 18px; overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--td-line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 600; }
.compare td:first-child { color: #e6ece8; }
.compare td { color: var(--td-muted); }
.compare .yes { color: var(--td-green); }
.table-scroll { overflow-x: auto; }

/* ---- Blog ---- */
.post-card { display: flex; flex-direction: column; }
.post-card .meta { font-size: 13px; color: var(--td-muted); margin-bottom: 10px; }
.post-card h3 { font-size: 20px; margin-bottom: 10px; }
.article-head { padding: 34px 0 10px; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.article-meta { margin-top: 18px; color: var(--td-muted); font-size: 14px; }
.toc { margin: 30px 0 10px; padding: 22px 24px; border-radius: 16px; background: var(--td-card); border: 1px solid var(--td-line); }
.toc strong { display: block; margin-bottom: 10px; color: #fff; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: #cdd6d0; text-decoration: none; }
.toc a:hover { color: var(--td-green); }
.inline-cta { margin: 40px 0; padding: 26px; border-radius: 18px; background: rgba(34, 224, 90, 0.07); border: 1px solid rgba(34, 224, 90, 0.35); }
.inline-cta p { margin: 0 0 16px; color: #e8eee9; font-size: 18px; }

/* ---- Forms ---- */
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; color: #e8eee9; }
.field label em { color: var(--td-green); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; font-size: 16px; line-height: 1.4;
    transition: border-color .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a4aea8 50%), linear-gradient(135deg, #a4aea8 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: #0a110d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--td-green); background: rgba(0, 0, 0, 0.5); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cdd6d0; line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--td-green); flex: 0 0 auto; }
.form-note { margin: 14px 0 0; font-size: 13px; color: var(--td-muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--td-card); border: 1px solid var(--td-line); }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--td-green); }
.contact-list .icon { margin: 0; width: 40px; height: 40px; flex: 0 0 40px; }

/* ---- Legal ---- */
.legal { padding: 20px 0 80px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin: 20px 0 24px; }

/* ---- 404 ---- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .code { font-size: clamp(90px, 18vw, 180px); line-height: 1; letter-spacing: -0.05em; color: var(--td-green); font-weight: 500; }

/* ---- Projects, client logos, testimonials ---- */
.project { display: flex; flex-direction: column; }
.project-logo { display: grid; place-items: center; height: 130px; margin: -6px -6px 20px; padding: 18px 26px; border-radius: 14px; background: #f5f7f6; }
.project-logo img { max-height: 92px; max-width: 100%; width: auto; object-fit: contain; }
.project-kind { font-size: 13px !important; color: var(--td-green) !important; margin: 0 0 8px !important; letter-spacing: .01em; }
.project .more { margin-top: auto; padding-top: 14px; text-decoration: none; }
.logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-strip li { display: grid; place-items: center; height: 84px; padding: 12px 18px; border-radius: 14px; background: #f5f7f6; }
.logo-strip img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 18px; color: #dfe6e1; font-size: 15.5px; line-height: 1.65; }
.quote figcaption { font-size: 14px; color: var(--td-muted); }
.quote figcaption strong { color: #fff; }
.quotes { align-items: start; }

/* ---- Mobile carousels (projects, testimonials): swipe instead of a long stack ---- */
.swipe-hint { display: none; }
@media (max-width: 760px) {
    .carousel {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin: 0 -24px; padding: 4px 24px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .carousel::-webkit-scrollbar { display: none; }
    .carousel > * { flex: 0 0 82%; scroll-snap-align: center; }
    .carousel .project-logo { height: 96px; }
    .carousel .project p:not(.project-kind) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .swipe-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 14px; font-size: 13px; color: var(--td-muted); }
    .swipe-dots { display: flex; gap: 6px; }
    .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .2s, width .2s; }
    .swipe-dots i.on { width: 18px; border-radius: 3px; background: var(--td-green); }
}
