@import url('/fonts/fonts.css');

/* ===========================================================================
   TCA Soft — feuille de style du site vitrine (maquette 1d)

   Aucune couleur en dur hors de :root. Tout passe par les jetons ci-dessous :
   la charte est reprise du logo (dégradé bleu, fond marine, accent violet) et
   changer une teinte doit se faire à un seul endroit.

   Le site est volontairement mono-thème (sombre) : la maquette est construite
   sur ce fond et les contrastes du dégradé de marque en dépendent.
   =========================================================================== */

:root {
    /* Surfaces */
    --ink: #0e1526;
    --surface: rgba(255, 255, 255, .035);
    --surface-strong: rgba(20, 29, 54, .9);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);

    /* Texte */
    --text: #e7ebf5;
    --text-strong: #fff;
    --text-muted: #aab4cc;
    --text-dim: #7f8bab;
    --text-faint: #6f7ea3;
    --text-nav: #c3cbe0;

    /* Marque */
    --brand: #1e4dff;
    --brand-light: #1ec8ff;
    --brand-soft: #8fb4ff;
    --brand-glow: #8fd8ff;
    --violet: #8b5cf6;
    --violet-soft: #c4b5fd;
    --on-bright: #0e1526;

    --gradient: linear-gradient(135deg, var(--brand), var(--brand-light));

    /* Rythme */
    --pad-inline: 64px;
    /* Plafond de la colonne de lecture. 1312px = exactement ce que produit la maquette de
       référence (1440 - 2 × 64) : en dessous de 1440 rien ne bouge, au-delà le contenu cesse de
       s'étirer au lieu de suivre l'écran. */
    --page-max: 1312px;
    /* 🔑 La marge intérieure BORNE LE CONTENU sans borner la SURFACE. Poser un max-width sur les
       sections plafonnerait aussi leur fond : celui de « À propos » cesserait de traverser
       l'écran, et le fond de page apparaîtrait de chaque côté de sa bande. */
    --pad-page: max(var(--pad-inline), (100% - var(--page-max)) / 2);
    --radius: 12px;
    --radius-lg: 20px;

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text-strong); letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--brand-glow); }
a:focus-visible, .tca-nav-toggle:focus-visible + .tca-burger {
    outline: 2px solid var(--brand-light);
    outline-offset: 3px;
    border-radius: 6px;
}

.tca-mono, .tca-eyebrow, .tca-card-glyph, .tca-card-tech, .tca-node-kicker,
.tca-diagram-foot, .tca-reason-num, .tca-step-num, .tca-placeholder {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tca-page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.tca-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tca-btn:hover { transform: translateY(-1px); }
.tca-btn--lg { font-size: 16px; padding: 15px 24px; border-radius: var(--radius); }

.tca-btn--primary {
    color: var(--text-strong);
    background: var(--gradient);
    box-shadow: 0 6px 24px rgba(30, 120, 255, .35);
}
.tca-btn--primary.tca-btn--lg { box-shadow: 0 10px 30px rgba(30, 120, 255, .35); }

.tca-btn--ghost {
    color: var(--text);
    font-weight: 600;
    border-color: var(--border-strong);
    background: var(--surface);
}
.tca-btn--ghost:hover { border-color: var(--brand-soft); }

.tca-btn--invert {
    color: var(--on-bright);
    font-weight: 800;
    background: var(--text-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.tca-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px var(--pad-page);
}

/* Le logo porte un « TCA » marine : sur le fond sombre il lui faut une pastille
   claire. Une déclinaison blanche du logo la rendrait inutile. */
.tca-brand {
    display: inline-flex;
    align-items: center;
    background: #f5f7fc;
    border-radius: 10px;
    padding: 6px 14px 6px 8px;
}
.tca-brand img { display: block; height: 34px; width: auto; }

.tca-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 500;
}
.tca-nav a { color: var(--text-nav); text-decoration: none; }
.tca-nav a:hover { color: var(--text-strong); }

/* Repli en petit écran : case à cocher + CSS, aucun JS et aucun @onclick.
   MainLayout est rendu en SSR statique, un gestionnaire y serait muet. */
.tca-nav-toggle { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.tca-burger { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.tca-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 64px var(--pad-page) 88px;
    background: radial-gradient(900px 500px at 75% 10%, rgba(30, 77, 255, .22), transparent 60%);
}
.tca-hero-copy { display: flex; flex-direction: column; gap: 24px; }

.tca-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 12px;
    color: var(--brand-soft);
    letter-spacing: .06em;
}
.tca-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 12px var(--brand-light);
}

.tca-hero h1 { margin: 0; font-size: 60px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.tca-grad {
    background: linear-gradient(90deg, #4d7cff, var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tca-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-muted); max-width: 560px; }
.tca-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ── Schéma d'architecture ───────────────────────────────────────────────── */

.tca-diagram { position: relative; height: 420px; }
.tca-node, .tca-leaf { position: absolute; }
.tca-node-kicker { margin: 0; font-size: 10px; letter-spacing: .1em; color: var(--brand-soft); }
.tca-node-title { margin: 4px 0 0; font-weight: 700; font-size: 15px; color: var(--text-strong); }
.tca-leaf .tca-node-title { font-size: 14px; margin-top: 3px; }

.tca-node--ui {
    left: 50%; top: 10px; transform: translateX(-50%);
    width: 250px;
    background: var(--surface-strong);
    border: 1px solid rgba(78, 124, 255, .45);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(30, 120, 255, .18);
}
.tca-node--api {
    left: 50%; top: 140px; transform: translateX(-50%);
    width: 290px;
    background: linear-gradient(135deg, rgba(30, 77, 255, .35), rgba(30, 200, 255, .18));
    border: 1px solid rgba(78, 180, 255, .6);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 60px rgba(30, 120, 255, .3);
}
.tca-node--api .tca-node-kicker { color: #bcd3ff; }

.tca-wire { position: absolute; width: 2px; }
.tca-wire--trunk { left: 50%; top: 86px; height: 54px; background: linear-gradient(#4d7cff, var(--brand-light)); transform: translateX(-50%); }
.tca-wire--mid { left: 50%; top: 212px; height: 56px; background: rgba(120, 160, 255, .6); transform: translateX(-50%); }

/* Branches obliques : du bas de la boîte API vers le centre des deux feuilles latérales.
   En SVG parce que leur pente dépend de la largeur du conteneur — voir Home.razor. */
.tca-branches {
    position: absolute;
    left: 0; top: 0;
    overflow: visible;
    pointer-events: none;
}
.tca-branches line { stroke: rgba(120, 160, 255, .6); stroke-width: 2; }

.tca-leaf {
    top: 268px;
    width: 30%;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.tca-leaf--1 { left: 0; }
.tca-leaf--2 { left: 35%; }
.tca-leaf--3 { left: 70%; }
.tca-leaf--violet { border-color: rgba(139, 92, 246, .45); }
.tca-leaf--violet .tca-node-kicker { color: var(--violet-soft); }

.tca-diagram-foot {
    position: absolute;
    left: 50%; top: 360px;
    transform: translateX(-50%);
    margin: 0;
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: .08em;
    white-space: nowrap;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.tca-section { padding: 96px var(--pad-page); }
.tca-section h2 { margin: 0; font-size: 42px; line-height: 1.1; font-weight: 800; }

.tca-kicker {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--brand-soft);
    text-transform: uppercase;
}
.tca-section-intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.tca-services { display: flex; flex-direction: column; gap: 44px; }
.tca-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
}

.tca-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tca-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 230px;
    transition: transform .25s, border-color .25s;
}
.tca-card:hover { transform: translateY(-4px); border-color: rgba(78, 124, 255, .5); }
.tca-card-glyph {
    margin: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30, 77, 255, .35), rgba(30, 200, 255, .25));
    border: 1px solid rgba(78, 180, 255, .35);
    display: grid; place-items: center;
    font-size: 14px;
    color: var(--brand-glow);
}
.tca-card h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tca-card-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.tca-card-tech { margin: 0; font-size: 11.5px; color: var(--text-dim); letter-spacing: .03em; }

/* ── Pourquoi ────────────────────────────────────────────────────────────── */

.tca-why {
    padding-block: 80px;
    background: linear-gradient(180deg, rgba(30, 77, 255, .06), transparent);
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 72px;
}
.tca-why-intro { display: flex; flex-direction: column; gap: 18px; }
.tca-why-intro .tca-kicker { margin-bottom: 0; }
.tca-why-intro .tca-section-intro { font-size: 16px; }
.tca-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.tca-reason {
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.tca-reason-num { margin: 0; font-size: 12px; color: var(--brand-light); }
.tca-reason h3 { margin: 0; font-size: 21px; font-weight: 700; }
.tca-reason-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ── Réalisations ────────────────────────────────────────────────────────── */

.tca-work { display: flex; flex-direction: column; gap: 40px; }
.tca-work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.tca-work-head .tca-kicker { margin-bottom: 14px; }
.tca-work-all { color: var(--brand-glow); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.tca-work-all:hover { color: var(--text-strong); }
.tca-work-copy p:last-child { margin: 0; }
.tca-work-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}
.tca-work-copy { display: flex; flex-direction: column; gap: 18px; }
.tca-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tca-tag {
    font-size: 12px; font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: var(--text-nav);
}
.tca-tag--blue { background: rgba(30, 77, 255, .2); color: var(--brand-soft); }
.tca-tag--violet { background: rgba(139, 92, 246, .2); color: var(--violet-soft); }
.tca-work-card h3 { margin: 0; font-size: 34px; font-weight: 800; }
.tca-work-body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.tca-work-credit { margin: 0; font-size: 13px; color: var(--text-dim); font-style: italic; }

/* Emplacement d'image assumé : hachuré et libellé, pour qu'on ne le prenne
   jamais pour un visuel définitif. */
.tca-shot {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    border: 1px dashed rgba(143, 180, 255, .45);
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px), rgba(20, 29, 54, .7);
    display: grid; place-items: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--brand-soft);
    text-align: center;
    line-height: 1.7;
    padding: 16px;
}
/* Visuel « À propos ». Le fichier est déjà au format du cadre de la maquette : le recadrage est
   fait à la source plutôt que par le navigateur, donc les octets servis sont ceux affichés.
   Le ratio et le rognage restent déclarés — ils protègent la mise en page le jour où la photo
   est remplacée par une autre, qui n'aura pas forcément la même forme. */
.tca-about-visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
}

/* Visuel de réalisation. Pas de cadre à ratio imposé : l'image garde le sien, ce qui évite de
   rogner un visuel de marque — le motif d'arbre à gauche et le trophée à droite touchent les
   bords, un recadrage en 16/10 les amputerait. */
.tca-work-visual {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
}

/* ── Méthode ─────────────────────────────────────────────────────────────── */

.tca-method { display: flex; flex-direction: column; gap: 44px; padding-block: 80px 96px; }
.tca-method-head { max-width: 720px; }
.tca-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    position: relative;
    margin: 0; padding: 0;
    list-style: none;
}
.tca-steps::before {
    content: '';
    position: absolute;
    left: 20px; right: 20px; top: 19px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light) 60%, rgba(30, 200, 255, .15));
}
.tca-step { display: flex; flex-direction: column; gap: 14px; padding-right: 28px; position: relative; }
.tca-step-num {
    margin: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--brand-light);
    display: grid; place-items: center;
    font-size: 13px; font-weight: 600;
    color: var(--brand-light);
    box-shadow: 0 0 20px rgba(30, 200, 255, .25);
}
.tca-step h3 { margin: 0; font-size: 20px; font-weight: 700; }
.tca-step-body { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

/* ── À propos ────────────────────────────────────────────────────────────── */

.tca-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding-block: 80px;
    background: rgba(255, 255, 255, .02);
}
.tca-about-copy { display: flex; flex-direction: column; gap: 20px; }
.tca-about-copy .tca-kicker { margin-bottom: 0; }
.tca-about h2 { font-size: 40px; }
.tca-about .tca-lead { font-size: 17px; line-height: 1.65; max-width: none; }
.tca-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tca-chip {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--text-nav);
}

/* ── Appel à l'action ────────────────────────────────────────────────────── */

.tca-cta {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 64px;
    background: linear-gradient(135deg, rgba(30, 77, 255, .35), rgba(139, 92, 246, .25));
    border: 1px solid rgba(120, 140, 255, .35);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
}
.tca-cta::after {
    content: '';
    position: absolute;
    right: -80px; top: -120px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(30, 200, 255, .3), transparent);
    pointer-events: none;
}
.tca-cta-copy { position: relative; }
.tca-cta h2 { margin: 0 0 12px; font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.tca-cta p { margin: 0; font-size: 18px; color: #d5dcf0; max-width: 560px; }
.tca-cta .tca-btn { position: relative; }

/* ── Pied de page ────────────────────────────────────────────────────────── */

.tca-footer {
    padding: 56px var(--pad-page) 32px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.tca-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.tca-footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tca-footer-brand .tca-brand img { height: 32px; }
.tca-footer-tagline { margin: 0; font-size: 15px; color: var(--text-muted); }
.tca-footer-mail { font-size: 15px; color: var(--brand-glow); text-decoration: none; }
.tca-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.tca-footer-col a { color: var(--text-nav); text-decoration: none; }
.tca-footer-col a:hover { color: var(--text-strong); }
.tca-footer-head {
    margin: 0 0 4px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .12em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.tca-placeholder { color: var(--text-dim); font-size: 12.5px; }
.tca-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-faint);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ── En-tête de page intérieure (1e, 1f, 1g) ─────────────────────────────── */

/* 🔑 Le plafond appartient au TEXTE, jamais à la section. Une section porte déjà la marge de
   centrage `var(--pad-page)`, qui GRANDIT avec l'écran : lui ajouter un `max-width` la rogne deux
   fois, et son contenu fond à mesure que l'écran s'élargit. Mesuré le 2026-09-20 sur un
   `max-width: 820px` posé ici : 692px à 1280, mais 227px à 1920 et ZÉRO à 2560, le titre tombant
   à un mot par ligne. 692px = 820 − 2 × 64, soit exactement la largeur de texte que produisait la
   maquette — elle est désormais CONSTANTE au lieu de fondre. Tenu par LargeurDeLectureTests. */
.tca-page-head { display: flex; flex-direction: column; gap: 16px; padding-block: 64px 48px; }
.tca-page-head > * { max-width: 692px; }
.tca-page-head h1 { margin: 0; font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.tca-page-head .tca-lead { font-size: 18px; line-height: 1.6; max-width: 692px; }
.tca-crumbs { font-size: 13px; color: var(--text-dim); }
.tca-crumbs a { color: inherit; text-decoration: none; }
.tca-crumbs a:hover { color: var(--text-strong); }

/* Emplacement en attente (lien, réseau social, valeur légale à compléter) : encadré pointillé,
   pour qu'on ne le confonde jamais avec du contenu définitif. */
.tca-slot {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-dim);
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 6px 10px;
    display: inline-block;
}
.tca-slot--inline { font-size: 14px; padding: 11px 18px; border-radius: 10px; margin: 0; }
.tca-slots-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }

/* ── Réalisations (1e) ───────────────────────────────────────────────────── */

.tca-project {
    margin: 0 var(--pad-page);
    padding: 48px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.tca-project-top { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.tca-project-copy { display: flex; flex-direction: column; gap: 18px; }
.tca-project-copy h2 { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -.025em; }
.tca-project-summary { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.tca-project-credit { margin: 0; font-size: 14px; color: var(--brand-glow); font-weight: 600; }

.tca-project-facts {
    display: flex; flex-direction: column; gap: 12px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(14, 20, 38, .8);
    border: 1px solid var(--border);
}
.tca-facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
    margin: 0; padding: 0; list-style: none;
    font-size: 14px; color: #d5dcf0;
}
.tca-facts li { display: flex; gap: 8px; align-items: center; }
.tca-facts li::before {
    content: ''; flex: none;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-light);
}
.tca-project-stack {
    margin: 10px 0 0; padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px; color: var(--text-dim); line-height: 1.8;
}

/* Mosaïque : la première capture occupe deux rangées, comme dans la maquette. */
.tca-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tca-gallery .tca-shot { font-size: 12px; }
.tca-gallery .tca-shot:first-child { grid-row: span 2; font-size: 13px; }

/* « contain » et non « cover » : une capture d'écran ne se rogne pas. La grande tuile occupe
   deux rangées, son cadre est donc un peu moins large que le 16/10 des images — en « cover »
   elle amputait le titre « ARBRE DU TOURNOI ». Le fond comble le rare filet restant. */
.tca-gallery-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(20, 29, 54, .7);
    border-radius: 14px;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 10;
}
.tca-gallery-shot:first-child { grid-row: span 2; aspect-ratio: auto; }

.tca-upcoming {
    margin: 24px var(--pad-page) 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.tca-upcoming-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-strong);
    display: flex; flex-direction: column; gap: 10px;
    min-height: 160px;
}
.tca-upcoming-kicker {
    margin: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: .1em; color: var(--text-dim);
    text-transform: uppercase;
}
.tca-upcoming-title { margin: 0; font-size: 20px; font-weight: 700; color: #8a95b3; }
.tca-upcoming-body { margin: 0; font-size: 14px; color: var(--text-faint); }

.tca-cta--compact { padding: 48px 56px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.tca-cta--compact h2 { font-size: 32px; margin-bottom: 8px; }
.tca-cta--compact p { font-size: 16px; }

/* ── Formulaire de devis (1f) ────────────────────────────────────────────── */

.tca-contact {
    position: relative;
    display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 80px;
    padding: 64px var(--pad-page) 96px;
    align-items: start;
}
.tca-contact::before {
    content: '';
    position: absolute; left: -150px; top: 100px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(30, 77, 255, .18), transparent);
    pointer-events: none;
}
.tca-contact-aside { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 28px; }
.tca-contact-aside h1 { margin: 0; font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.tca-contact-aside .tca-kicker { margin-bottom: 14px; }
.tca-contact-aside .tca-lead { font-size: 17px; line-height: 1.65; max-width: none; }
.tca-contact-card {
    display: flex; flex-direction: column; gap: 14px;
    padding: 24px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border);
}
.tca-contact-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-strong); }
.tca-contact-site { margin: 0; font-size: 15px; color: var(--text-nav); }
.tca-timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.tca-timeline li { display: flex; gap: 10px; align-items: center; }
.tca-timeline-num {
    flex: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(30, 200, 255, .15); color: var(--brand-light);
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
}

.tca-form {
    position: relative;
    display: flex; flex-direction: column; gap: 22px;
    padding: 40px; border-radius: 24px;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.tca-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tca-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-nav); }
.tca-field small { font-weight: 500; color: var(--text-dim); }
.tca-field em, .tca-consent em, .tca-chipset em { color: var(--brand-light); font-style: normal; }

.tca-form input, .tca-form textarea, .tca-form select {
    font: inherit; font-size: 15px; font-weight: 500;
    color: var(--text-strong);
    padding: 13px 14px;
    border-radius: 10px;
    background: rgba(14, 20, 38, .9);
    border: 1px solid rgba(255, 255, 255, .12);
    outline: none;
    width: 100%;
}
.tca-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.tca-form input::placeholder, .tca-form textarea::placeholder { color: var(--text-dim); }
.tca-form input:focus, .tca-form textarea:focus, .tca-form select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(30, 200, 255, .2);
}
.tca-form select option { background: var(--ink); color: var(--text); }

.tca-chipset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tca-chipset legend { padding: 0; font-size: 13px; font-weight: 600; color: var(--text-nav); }
.tca-chip-options { display: flex; flex-wrap: wrap; gap: 10px; }
.tca-chip-option {
    display: inline-flex; align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-nav);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
/* Le bouton radio reste dans le parcours au clavier (il n'est ni display:none ni hidden) :
   seule son apparence est remplacée par la pastille. */
.tca-chip-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.tca-chip-option span { padding: 9px 14px; }
.tca-chip-option:hover { border-color: var(--brand-soft); }
.tca-chip-option:has(input:checked) {
    border-color: var(--brand-light);
    background: rgba(30, 200, 255, .15);
    color: var(--text-strong);
}
.tca-chip-option:has(input:focus-visible) { outline: 2px solid var(--brand-light); outline-offset: 2px; }

.tca-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.tca-consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--brand-light); }

/* Champ leurre : hors de l'écran plutôt que display:none, que certains robots savent détecter. */
.tca-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.tca-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.tca-form-note { margin: 0; font-size: 12px; color: var(--text-dim); max-width: 320px; }
.tca-form .validation-message { font-size: 13px; font-weight: 500; color: #ff9b9b; }
.tca-alert {
    margin: 0; padding: 14px 16px; border-radius: 10px;
    background: rgba(255, 155, 155, .1);
    border: 1px solid rgba(255, 155, 155, .35);
    color: #ffc9c9; font-size: 14px; line-height: 1.55;
}

.tca-sent { align-items: flex-start; gap: 14px; }
.tca-sent-mark {
    margin: 0;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(30, 200, 255, .15); color: var(--brand-light);
    font-size: 24px; font-weight: 800;
}
.tca-sent h2 { margin: 0; font-size: 28px; font-weight: 800; }
.tca-sent p { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* ── Pages légales (1g) ──────────────────────────────────────────────────── */

.tca-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; padding: 64px var(--pad-page) 96px; }
.tca-toc { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; align-self: start; }
.tca-toc a { color: var(--text-nav); text-decoration: none; }
.tca-toc a:hover { color: var(--text-strong); }
.tca-legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.tca-legal-head h1 { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.tca-legal-head--second { padding-top: 32px; border-top: 1px solid var(--border); }
.tca-legal-date { margin: 10px 0 0; font-size: 14px; color: var(--text-dim); }
.tca-legal-body h2 { margin: 0 0 12px; font-size: 24px; font-weight: 700; }
.tca-legal-body p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text-muted); }
/* Les ancres du sommaire ne doivent pas passer sous le haut de la fenêtre. */
.tca-legal-body :is(h1, h2)[id] { scroll-margin-top: 24px; }

/* ═══ Adaptation aux petits écrans ══════════════════════════════════════════
   Trois paliers, dans l'ordre où le navigateur les applique :

     ≤ 1080px  maquette 1h (tablette 834) — hero empilé, services en 2 colonnes
     ≤  780px  bascule du menu en bouton (entre les deux maquettes)
     ≤  620px  maquette 1i (mobile 390)  — tout en colonne

   Le schéma d'architecture n'est pas masqué : il quitte le positionnement
   absolu et se réorganise, comme le montrent les deux maquettes. Elles en
   écartent aussi des briques — c'est ce que traduisent les `display: none`
   ciblés, pas un renoncement à l'afficher.
   ═══════════════════════════════════════════════════════════════════════════ */

.tca-cta-short { display: none; }

/* ── Tablette — maquette 1h (834) ────────────────────────────────────────── */

@media (max-width: 1080px) {
    :root { --pad-inline: 32px; }

    .tca-header { padding-block: 16px; gap: 20px; }
    .tca-nav { gap: 20px; font-size: 14px; }
    .tca-header-cta { font-size: 13px; padding: 10px 14px; }
    .tca-cta-long { display: none; }
    .tca-cta-short { display: inline; }

    /* Hero empilé : le texte au-dessus, le schéma en dessous. */
    .tca-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 48px var(--pad-inline) 56px;
    }
    .tca-hero-copy { gap: 22px; }
    .tca-hero h1 { font-size: 46px; line-height: 1.06; max-width: 620px; }
    .tca-lead { font-size: 17px; }
    .tca-hero-actions .tca-btn--lg { font-size: 15px; padding: 14px 22px; }

    /* Le schéma redevient un élément de flux : trois briques en ligne.
       La maquette n'en garde que trois — interface, API, cloud. */
    .tca-diagram {
        position: static;
        height: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 20px;
    }
    .tca-node, .tca-leaf {
        position: static;
        left: auto; top: auto;
        width: auto;
        transform: none;
        padding: 14px;
        border-radius: 12px;
        box-shadow: none;
    }
    .tca-wire, .tca-branches, .tca-diagram-foot, .tca-leaf--1, .tca-leaf--2 { display: none; }
    .tca-node-title, .tca-leaf .tca-node-title { font-size: 14px; margin-top: 3px; }

    /* Services : deux colonnes, cartes compactes, sans la ligne technique. */
    .tca-section { padding: 56px var(--pad-inline); }
    .tca-section h2 { font-size: 32px; }
    .tca-services { gap: 28px; }
    .tca-section-head { grid-template-columns: 1fr; gap: 10px; align-items: start; }
    .tca-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .tca-card { padding: 22px; gap: 10px; border-radius: 14px; min-height: 0; }
    .tca-card-glyph { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
    .tca-card h3 { font-size: 17px; }
    .tca-card-body { font-size: 14px; line-height: 1.55; }
    .tca-card-tech { display: none; }

    /* Méthode : cinq colonnes, numéro et titre seulement. Le rail disparaît
       avec les pastilles rondes qu'il reliait. */
    .tca-method { padding: 24px var(--pad-inline) 56px; gap: 24px; }
    .tca-method h2 { font-size: 28px; }
    .tca-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .tca-steps::before { display: none; }
    .tca-step { padding-right: 0; gap: 8px; }
    .tca-step-num {
        width: auto; height: auto;
        border: 0; border-radius: 0;
        background: none; box-shadow: none;
        display: block;
        font-size: 12px;
    }
    .tca-step h3 { font-size: 14px; }
    .tca-step-body { display: none; }

    /* Sections et écrans que les maquettes ne détaillent pas : une colonne. */
    .tca-why { grid-template-columns: 1fr; gap: 40px; }
    .tca-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tca-work-card { grid-template-columns: 1fr; gap: 32px; }
    .tca-about { grid-template-columns: 1fr; gap: 40px; }
    .tca-cta { padding: 44px; }
    .tca-cta h2 { font-size: 34px; }
    .tca-cta--compact { flex-direction: column; align-items: flex-start; padding: 36px; }
    .tca-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .tca-page-head h1, .tca-contact-aside h1 { font-size: 42px; }
    .tca-project { margin-inline: var(--pad-inline); padding: 32px; }
    .tca-project-top { grid-template-columns: 1fr; gap: 32px; }
    .tca-project-copy h2 { font-size: 34px; }
    .tca-gallery { grid-template-columns: 1fr 1fr; }
    .tca-gallery .tca-shot:first-child { grid-row: auto; grid-column: 1 / -1; }
    .tca-upcoming { margin-inline: var(--pad-inline); }

    .tca-contact { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 64px; }
    .tca-contact-aside { position: static; }

    .tca-legal { grid-template-columns: 1fr; gap: 32px; }
    .tca-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
    .tca-legal-head h1 { font-size: 36px; }
}

/* ── Bascule du menu en bouton ───────────────────────────────────────────── */

@media (max-width: 780px) {
    .tca-header { flex-wrap: wrap; }
    .tca-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        margin-left: auto;
        width: 44px; height: 44px;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid var(--border-strong);
        cursor: pointer;
    }
    .tca-burger span { display: block; height: 2px; background: var(--text-nav); border-radius: 2px; }
    .tca-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 4px;
        margin-left: 0;
    }
    .tca-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
    .tca-nav-toggle:checked ~ .tca-nav { display: flex; }
    .tca-header-cta { flex-basis: 100%; text-align: center; }

    /* Le menu déplié rend la place : le libellé long revient. */
    .tca-cta-long { display: inline; }
    .tca-cta-short { display: none; }

    .tca-cards { grid-template-columns: 1fr; }
    .tca-why-grid { grid-template-columns: 1fr; }
    .tca-gallery { grid-template-columns: 1fr; }
    .tca-gallery .tca-shot:first-child { grid-column: auto; }
    .tca-field-row { grid-template-columns: 1fr; }
    .tca-footer-grid { grid-template-columns: 1fr; }
}

/* ── Mobile — maquette 1i (390) ──────────────────────────────────────────── */

@media (max-width: 620px) {
    :root { --pad-inline: 20px; }

    .tca-header { padding-block: 14px; gap: 12px; }
    .tca-brand img { height: 28px; }

    .tca-hero { padding: 32px var(--pad-inline) 40px; gap: 18px; }
    .tca-hero-copy { gap: 18px; }
    .tca-hero h1 { font-size: 36px; line-height: 1.08; }
    .tca-lead { font-size: 16px; }
    .tca-eyebrow { font-size: 11px; }

    /* Boutons pleine largeur, empilés : la cible tactile prime sur l'alignement. */
    .tca-hero-actions { flex-direction: column; gap: 8px; margin-top: 12px; }
    .tca-hero-actions .tca-btn { width: 100%; text-align: center; padding: 16px; font-size: 16px; }

    /* Schéma empilé, les deux dernières briques côte à côte. Les connecteurs
       verticaux de la maquette sont les mêmes éléments qu'en grand écran :
       ils redeviennent de simples traits dans le flux. */
    .tca-diagram { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .tca-node--ui, .tca-node--api { grid-column: 1 / -1; }
    .tca-node, .tca-leaf { padding: 12px 14px; }
    .tca-node-title, .tca-leaf .tca-node-title { font-size: 13px; }
    .tca-leaf--1 { display: block; }   /* SQL Server revient */
    .tca-leaf--2 { display: none; }    /* Services externes reste écarté */
    .tca-wire--trunk, .tca-wire--mid {
        display: block;
        position: static;
        grid-column: 1 / -1;
        width: 2px; height: 14px;
        margin-left: 24px;
        transform: none;
    }

    /* Services : une carte par ligne, pictogramme à gauche du texte. */
    .tca-section { padding: 40px var(--pad-inline); }
    .tca-section h2 { font-size: 28px; }
    .tca-services { gap: 18px; }
    .tca-cards { gap: 10px; }
    .tca-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "glyph titre" ".     corps";
        column-gap: 14px;
        row-gap: 4px;
        padding: 16px;
    }
    .tca-card-glyph { grid-area: glyph; }
    .tca-card h3 { grid-area: titre; align-self: center; font-size: 16px; }
    .tca-card-body { grid-area: corps; font-size: 13.5px; line-height: 1.5; flex: none; }

    /* Méthode : des lignes séparées par un filet, pas des colonnes. */
    .tca-method { padding: 8px var(--pad-inline) 40px; gap: 18px; }
    .tca-method h2 { font-size: 26px; }
    .tca-steps { grid-template-columns: 1fr; gap: 0; }
    .tca-step {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "num titre" ".   corps";
        column-gap: 14px;
        row-gap: 2px;
        padding: 12px 0;
        border-top: 1px solid var(--border);
    }
    .tca-step-num {
        grid-area: num;
        width: 32px; height: 32px;
        border: 2px solid var(--brand-light);
        border-radius: 50%;
        background: var(--ink);
        display: grid; place-items: center;
        font-size: 12px;
    }
    .tca-step h3 { grid-area: titre; align-self: center; font-size: 15px; }
    .tca-step-body { grid-area: corps; display: block; font-size: 13px; line-height: 1.5; }

    .tca-why { gap: 24px; }
    .tca-why-intro h2 { font-size: 26px; }
    .tca-about h2 { font-size: 26px; }
    .tca-about .tca-lead { font-size: 16px; }

    /* L'encart d'appel à l'action garde ses marges latérales, pas la section. */
    .tca-cta-section { padding: 0 0 32px; }
    .tca-cta {
        margin: 0 var(--pad-inline);
        padding: 28px 22px;
        border-radius: 18px;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .tca-cta h2 { font-size: 26px; }
    .tca-cta p { font-size: 15px; }
    .tca-cta .tca-btn { width: 100%; text-align: center; padding: 14px; font-size: 15px; }
    .tca-cta--compact { margin-inline: var(--pad-inline); padding: 28px 22px; gap: 18px; }

    .tca-footer { padding: 24px var(--pad-inline) 28px; gap: 14px; }
    .tca-footer-grid { gap: 24px; }
    .tca-footer-bottom { flex-direction: column; gap: 8px; }

    /* Écrans intérieurs */
    .tca-page-head { padding-block: 32px 24px; }
    .tca-page-head h1, .tca-contact-aside h1, .tca-legal-head h1 { font-size: 32px; }
    .tca-project { margin-inline: var(--pad-inline); padding: 22px; gap: 28px; }
    .tca-project-copy h2 { font-size: 28px; }
    .tca-facts { grid-template-columns: 1fr; }
    .tca-upcoming { grid-template-columns: 1fr; }
    .tca-upcoming-card { padding: 24px; min-height: 0; }

    .tca-contact { padding-block: 32px 48px; gap: 28px; }
    .tca-contact::before { display: none; }
    .tca-form { padding: 22px; gap: 18px; }
    .tca-form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
    .tca-form-foot .tca-btn { width: 100%; text-align: center; }
    .tca-form-note { max-width: none; }

    .tca-legal { padding-block: 32px 48px; }
    .tca-legal-body h2 { font-size: 21px; }
    .tca-legal-body p { font-size: 15px; }
}
