/* ==========================================================================
   Car-Group Suite — design inspired by apv-manager.io (dark navy + blue)
   ========================================================================== */

/* Inter, hosted on this server (no request to Google: visitors IP addresses stay private) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bg: #060b18;
    --bg-2: #0a1120;
    --surface: #111a2e;
    --surface-2: #17223a;
    --border: rgba(148, 163, 184, .14);
    --border-strong: rgba(148, 163, 184, .26);
    --text: #f8fafc;
    --text-2: #b7c3d6;
    --muted: #8093ac;
    --primary: #2563eb;
    --primary-2: #3b82f6;
    --accent: #60a5fa;
    --success: #34d399;
    --danger: #f87171;
    /* GOLDEN RATIO: phi = 1.618. Every size below is a step of x1.618 (Fibonacci numbers).
       Change these tokens to adjust the whole site at once. */
    --phi: 1.618;
    --phi-inv: .618;                                    /* 61.8 % */
    --s1: 5px;  --s2: 8px;  --s3: 13px; --s4: 21px;     /* spacing scale (Fibonacci) */
    --s5: 34px; --s6: 55px; --s7: 89px;
    --fs-13: 13px; --fs-16: 16px; --fs-21: 21px; --fs-26: 26px;   /* type scale */
    --fs-34: 34px; --fs-42: 42px; --fs-55: 55px; --fs-68: 68px;
    --golden-major: 1.618fr;                            /* 61.8 % column */
    --golden-minor: 1fr;                                /* 38.2 % column */
    --radius: 13px;
    --radius-lg: 21px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --header-h: 72px;
    --container: 1200px;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-16);
    line-height: var(--phi);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.text-gradient {
    background: linear-gradient(90deg, var(--accent), #93c5fd 50%, var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
    background: linear-gradient(180deg, var(--primary-2), var(--primary));
    color: #fff; font: 600 15px/1.2 var(--font); cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn--light { background: #fff; color: #0b1530; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn--light:hover { background: #eef4ff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(6, 11, 24, .72);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(6, 11, 24, .88); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: #fff; padding: 4px; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--border), 0 6px 20px -6px rgba(59, 130, 246, .6); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; letter-spacing: .08em; line-height: 1.1; }
.brand-text span { font-size: 11px; font-weight: 600; letter-spacing: .38em; color: var(--accent); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.lang-switch a { padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; transition: color .2s, background .2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { background: var(--primary); color: #fff; }
.lang-switch--plain { background: none; border: 0; padding: 0; gap: 4px; }
.lang-switch--plain a { font-weight: 500; letter-spacing: 0; }
.lang-switch--plain a[aria-current] { background: rgba(37, 99, 235, .18); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s7) 0; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 55% at 78% 30%, rgba(37, 99, 235, .28), transparent 70%),
        radial-gradient(40% 45% at 10% 0%, rgba(96, 165, 250, .14), transparent 70%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: var(--golden-major) var(--golden-minor); gap: var(--s6); align-items: center; }
.hero h1 { font-size: clamp(var(--fs-42), 5.2vw, var(--fs-68)); font-weight: 800; letter-spacing: -.035em; margin: var(--s4) 0; }
.hero h1 .text-gradient { display: block; }
.hero .lead { max-width: 580px; margin-bottom: var(--s5); }
.lead { font-size: 18px; color: var(--text-2); line-height: var(--phi); }
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: rgba(37, 99, 235, .12); border: 1px solid rgba(96, 165, 250, .3);
    color: #bfdbfe; font-size: 13px; font-weight: 600;
}
.pill .icon { color: var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s5); margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--border); }
.stats div { margin: 0; }
.stats dt { font-size: var(--fs-34); font-weight: 800; letter-spacing: -.03em; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* White tile for the logos.
   LOGO_RATIO — golden ratio: every logo takes 61.8 % of its tile (1 / 1.618), centred,
   leaving 19.1 % of space on each side. Not too small, not too big: harmonious.
   Change --logo-margin here to resize ALL logos; one logo can be adjusted with logo_pad in data/software.php. */
:root { --logo-margin: 19.1%; }
.logo-tile { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; }
.logo-tile img { position: absolute; inset: var(--logo-pad, var(--logo-margin)); width: calc(100% - 2 * var(--logo-pad, var(--logo-margin))); height: calc(100% - 2 * var(--logo-pad, var(--logo-margin))); object-fit: contain; }

.suite-panel {
    border-radius: var(--radius-lg); padding: 14px 18px 22px;
    background: linear-gradient(180deg, rgba(23, 34, 58, .85), rgba(17, 26, 46, .85));
    border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 80px -20px rgba(37, 99, 235, .45);
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.suite-panel__bar { display: flex; align-items: center; gap: 6px; padding: 4px 2px 14px; }
.suite-panel__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); }
.suite-panel__bar b { margin-left: auto; font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.suite-panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.suite-panel__grid .logo-tile { aspect-ratio: 1; animation: float 6s ease-in-out infinite; }
.suite-panel__grid .logo-tile:nth-child(2n) { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-5px); } }

/* software hero */
.hero--software { padding: var(--s5) 0 var(--s7); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: var(--s5); transition: color .2s; }
.back-link:hover { color: var(--text); }
.hero--software h1 { margin: var(--s4) 0 var(--s3); }
.hero-tagline { font-size: clamp(var(--fs-21), 2.4vw, var(--fs-26)); font-weight: 700; margin-bottom: var(--s4); letter-spacing: -.01em; }
.hero--software .hero-visual { display: grid; place-items: center; }
/* Software details page: big white box with the icon (corners: standard logo tile rounding) */
.logo-showcase { width: min(300px, 100%); aspect-ratio: 1; background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 6px rgba(96, 165, 250, .10), 0 24px 60px -18px rgba(37, 99, 235, .55); }

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto var(--s6); text-align: center; }
.eyebrow { color: var(--accent); font-size: var(--fs-13); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s3); }
.section-title { font-size: clamp(var(--fs-26), 3.6vw, var(--fs-42)); font-weight: 800; letter-spacing: -.03em; }
.section-text { color: var(--text-2); font-size: 18px; margin-top: var(--s3); }

/* software cards */
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.sw-card {
    display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: var(--s3);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sw-card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, .45); box-shadow: 0 24px 50px -20px rgba(37, 99, 235, .55); }
.sw-card__logo { display: block; aspect-ratio: 1.618 / 1; border-radius: var(--radius); } /* golden rectangle */
.sw-card__logo img { transition: transform .35s; }
.sw-card:hover .sw-card__logo img { transform: scale(1.05); }
.sw-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s4) var(--s2) var(--s1); }
.sw-card__name { font-size: var(--fs-21); font-weight: 700; letter-spacing: -.01em; }
.sw-card__tagline { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 4px; }
.sw-card__summary { color: var(--muted); font-size: 14px; margin-top: 10px; flex: 1; }
.sw-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--text); }
.sw-card__link .icon { transition: transform .2s; }
.sw-card:hover .sw-card__link .icon { transform: translateX(4px); }

/* benefits */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.why-card { padding: var(--s5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.why-icon, .feature-icon, .callout-icon {
    display: grid; place-items: center; border-radius: 12px;
    background: rgba(37, 99, 235, .14); color: var(--accent); border: 1px solid rgba(96, 165, 250, .25);
}
.why-icon { width: 55px; height: 55px; margin-bottom: var(--s4); }
.why-icon .icon { width: 22px; height: 22px; }
.why-card h3 { font-size: var(--fs-21); margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 15px; }

/* call to action band */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap;
    padding: var(--s6); border-radius: var(--s5); position: relative; overflow: hidden;
    background: linear-gradient(120deg, #1d4ed8, #2563eb 45%, #3b82f6);
    box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .8);
}
.cta-band::after { content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.cta-band h2 { font-size: clamp(var(--fs-26), 3vw, var(--fs-34)); font-weight: 800; }
.cta-band p { color: #dbeafe; margin-top: 8px; font-size: 17px; }
.cta-band .btn { position: relative; z-index: 1; }

/* tabs (software page): Description | Fonctions | Captures */
.section--tabs { padding-top: 0; }
.tablist {
    display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto var(--s6); padding: var(--s1);
    border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong);
    box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 11px;
    color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .2s, background .2s;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, var(--primary-2), var(--primary)); box-shadow: 0 8px 22px -8px rgba(37, 99, 235, .8); }
.tab-count { min-width: 24px; padding: 1px 7px; border-radius: 999px; font-size: 12px; text-align: center; background: rgba(148, 163, 184, .16); color: var(--text-2); }
.tab[aria-selected="true"] .tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.tab-panel { outline: none; }
.js .tab-panel:not(.is-active) { display: none; }
.js .tab-panel.is-active { animation: panel-in .35s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.tab-panel + .tab-panel { margin-top: 64px; }
.js .tab-panel + .tab-panel { margin-top: 0; }

.desc-grid { display: grid; grid-template-columns: var(--golden-major) var(--golden-minor); gap: var(--s6); align-items: start; }
.panel-title { font-size: clamp(var(--fs-26), 3vw, var(--fs-34)); font-weight: 800; letter-spacing: -.025em; }
.highlights { padding: var(--s5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); position: sticky; top: calc(var(--header-h) + 24px); }
.highlights-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.highlights-head .logo-tile { width: 55px; height: 55px; flex-shrink: 0; }
.highlights-head strong { display: block; font-size: 17px; }
.highlights-head small { color: var(--accent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.highlights .check-list { margin-bottom: 22px; }
.highlights .check-list li { align-items: flex-start; font-size: 15px; }
.highlights .check-list .icon { margin-top: 2px; }


.prose { margin-top: 20px; }
.prose p { color: var(--text-2); font-size: 18px; line-height: var(--phi); }
.prose p + p { margin-top: 18px; }

/* features */
.feature-group + .feature-group { margin-top: var(--s6); }
.feature-group__title { font-size: var(--fs-21); margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--primary-2); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.feature { display: flex; gap: var(--s3); padding: var(--s4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.feature:hover { border-color: var(--border-strong); }
.feature-icon { width: 36px; height: 36px; flex-shrink: 0; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .feature-text { color: var(--text-2); padding-top: 6px; }
.callout { display: flex; gap: var(--s4); margin-top: var(--s5); padding: var(--s5); border-radius: var(--radius); background: linear-gradient(120deg, rgba(37, 99, 235, .16), rgba(37, 99, 235, .04)); border: 1px solid rgba(96, 165, 250, .3); }
.callout-icon { width: 42px; height: 42px; flex-shrink: 0; }
.callout h3 { font-size: 17px; margin-bottom: 8px; }
.callout p { color: var(--text-2); font-size: 15px; }
.conclusion { max-width: 860px; margin: var(--s6) auto 0; text-align: center; font-size: 18px; line-height: var(--phi); color: var(--text-2); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s3); }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1.618 / 1; } /* golden rectangle */
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px; background: rgba(2, 6, 23, .92); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-btn { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(17, 26, 46, .85); color: #fff; cursor: pointer; }
.lightbox-btn:hover { background: var(--primary); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Demo form ---------- */
.section--demo { background: radial-gradient(60% 60% at 15% 40%, rgba(37, 99, 235, .16), transparent 70%); }
.demo-grid { display: grid; grid-template-columns: var(--golden-minor) var(--golden-major); gap: var(--s6); align-items: start; }
.demo-intro .lead { margin: var(--s4) 0 var(--s5); }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--text-2); padding: 7px 0; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--success); }
.demo-logo { width: 144px; height: 144px; margin-top: var(--s5); box-shadow: 0 0 0 1px var(--border-strong); }

.form-card { padding: var(--s5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
    font: 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #5b6b85; }
.field input:hover, .field textarea:hover { border-color: rgba(148, 163, 184, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); background: #0c1426; }
.field input[readonly] { background: rgba(37, 99, 235, .1); border-color: rgba(96, 165, 250, .35); color: #bfdbfe; font-weight: 600; cursor: default; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; }
.form-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: 14px; }
.reassurance { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirmation { text-align: center; padding: 28px 8px; outline: none; }
.confirmation-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--success); border: 1px solid rgba(52, 211, 153, .35); }
.confirmation-icon .icon { width: 30px; height: 30px; }
.confirmation h3 { font-size: var(--fs-26); margin-bottom: 12px; }
.confirmation p { color: var(--text-2); margin-bottom: 26px; }

/* other software */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s3); }
.mini-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.mini-card:hover { border-color: rgba(96, 165, 250, .45); transform: translateY(-2px); }
.mini-card .logo-tile { width: 55px; height: 55px; flex-shrink: 0; border-radius: var(--s3); }
.mini-card strong { display: block; font-size: 15px; }
.mini-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

.section--404 { padding: 144px 0; }
.section--404 .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #040814; border-top: 1px solid var(--border); padding-top: var(--s6); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: var(--s5); padding-bottom: var(--s6); }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 320px; font-size: 15px; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; padding: 6px 0; }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.footer-contact a:hover, .footer-links a:hover { color: var(--accent); }
.footer-links { columns: 2; column-gap: 24px; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .sw-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { gap: 40px; }
}
@media (max-width: 900px) {
    .main-nav { display: none; }
    .header-actions { margin-left: auto; }
    .hero { padding: var(--s6) 0; }
    .hero-grid, .demo-grid { grid-template-columns: 1fr; }
    .hero .hero-visual { max-width: 520px; }
    .suite-panel { transform: none; }
    .hero--software .hero-visual { order: -1; justify-items: start; }
    .logo-showcase { width: 144px; }
    .feature-grid { grid-template-columns: 1fr; }
    .desc-grid { grid-template-columns: 1fr; gap: 32px; }
    .highlights { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .section { padding: var(--s6) 0; }
}
@media (max-width: 600px) {
    :root { --header-h: 64px; }
    .container { padding: 0 var(--s3); }
    .header-cta { display: none; }
    .brand-text { font-size: 13px; }
    .brand-mark { width: 36px; height: 36px; }
    .sw-grid, .why-grid { grid-template-columns: 1fr; }
    .suite-panel__grid { gap: 8px; }
    .stats { gap: 24px; }
    .form-card { padding: var(--s4); }
    .form-grid { grid-template-columns: 1fr; }
    .tablist { width: 100%; }
    .tab { flex: 1; justify-content: center; padding: 11px 12px; }
    .tab .icon { display: none; }
    .cta-band { padding: var(--s5) var(--s4); }
    .footer-grid { grid-template-columns: 1fr; }
    .lightbox { padding: 16px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; }
    .lead, .prose p { font-size: 16px; }
}

/* "Visit the website" link (software with their own site) */
.website-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.website-link span { color: var(--accent); font-weight: 600; }
.website-link:hover { color: var(--text); }
.website-link:hover span { text-decoration: underline; }

/* Description tab: extra sections (steps, lists, closing line) */
.desc-section { margin-top: var(--s5); }
.desc-section h3 { font-size: var(--fs-21); margin-bottom: 18px; padding-left: 14px; border-left: 3px solid var(--primary-2); }
.desc-text { color: var(--text-2); font-size: 18px; line-height: var(--phi); }
.desc-text + .desc-text { margin-top: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.steps li { display: flex; gap: var(--s3); padding: var(--s4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--primary-2), var(--primary)); }
.steps strong { display: block; font-size: 16px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }
.desc-items li { display: flex; gap: 12px; padding: 8px 0; color: var(--text-2); font-size: 16px; }
.desc-items .icon { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--success); }
.desc-items strong { color: var(--text); }
.closing { margin-top: var(--s5); padding: var(--s4) var(--s5); border-radius: var(--radius); font-size: 18px; font-weight: 600; line-height: 1.6;
    background: linear-gradient(120deg, rgba(37, 99, 235, .18), rgba(37, 99, 235, .04)); border: 1px solid rgba(96, 165, 250, .3); }

/* Features tab: one card per group (groups with an icon) */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); align-items: start; }
.group-grid + .feature-group { margin-top: var(--s6); }
.group-card { padding: var(--s5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.group-card:hover { border-color: var(--border-strong); }
.group-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.group-card__head .why-icon { margin: 0; flex-shrink: 0; }
.group-card h3 { font-size: var(--fs-21); }
.group-card__text { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.group-card .check-list li { align-items: flex-start; font-size: 15px; padding: 5px 0; }
.group-card .check-list .icon { margin-top: 2px; }

/* References: brand logos scrolling from right to left, above the footer */
.refs { padding: var(--s6) 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg), #040814); }
.refs-title { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s5); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee + .marquee { margin-top: 18px; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 18px; padding-right: 18px; margin: 0; list-style: none; }
.brand-logo { flex-shrink: 0; width: 104px; height: 128px; cursor: default; padding: 8px; border-radius: 16px; background: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .25s; }
.brand-logo:hover { transform: translateY(-4px); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.brand-logo:hover img { filter: none; opacity: 1; } /* grey logos, real colours on hover */
@keyframes marquee { to { transform: translateX(-33.3333%); } } /* one of the 3 copies */
@media (prefers-reduced-motion: reduce) {
    .marquee { overflow-x: auto; }
    .marquee-track { animation: none; }
    .marquee-group[aria-hidden] { display: none; }
}
@media (max-width: 900px) {
    .group-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .brand-logo { width: 84px; height: 104px; border-radius: 12px; }
    .marquee-group { gap: 12px; padding-right: 12px; }
}

/* Company and legal pages (page.php) */
.hero--page { padding: 40px 0 28px; }
.hero--page h1 { font-size: clamp(var(--fs-34), 4.6vw, var(--fs-55)); margin: 6px 0 18px; }
.hero--page .lead { max-width: 720px; }
.page-updated { margin-top: 14px; color: var(--muted); font-size: 14px; }
.section--page { padding-top: 8px; }
.page-prose h2 { font-size: var(--fs-21); margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--primary-2); }
.page-prose h2:first-child { margin-top: 0; }
.page-prose p { font-size: 17px; }
.page-quote { margin: var(--s6) 0 0; padding: var(--s5); border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(37, 99, 235, .18), rgba(37, 99, 235, .04)); border: 1px solid rgba(96, 165, 250, .3); }
.page-quote blockquote { margin: 0; font-size: var(--fs-26); font-weight: 700; letter-spacing: -.01em; }
.page-quote figcaption { margin-top: 10px; color: var(--accent); font-weight: 600; }

/* Footer: "Qui sommes-nous ?" link and legal links */
.footer-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent); font-size: 15px; font-weight: 600; }
.footer-more:hover { color: var(--text); }
.footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal nav a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer-legal nav a:hover { color: var(--accent); }

/* Main CAR-GROUP SUITE logo (designer SVG) in header and footer */
.brand-logo-img { display: block; height: 46px; width: auto; }
.footer-brand .brand-logo-img { height: 46px; }
@media (max-width: 600px) { .site-header .brand-logo-img { height: 34px; } }

/* Footer: long e-mail addresses wrap on small widths */
.footer-contact a { overflow-wrap: anywhere; }

/* Floating "back to top" button (appears after scrolling down) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 50px; height: 50px; display: grid; place-items: center;
    border: 1px solid rgba(96, 165, 250, .45); border-radius: 50%; cursor: pointer; color: #fff;
    background: linear-gradient(180deg, var(--primary-2), var(--primary)); box-shadow: 0 12px 30px -8px rgba(37, 99, 235, .8);
    opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top .icon { width: 22px; height: 22px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* References: brand popup (one floating bubble, positioned by main.js) */
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.brand-logo { cursor: pointer; }
.brand-logo.is-active { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--accent), 0 16px 34px -10px rgba(37, 99, 235, .8); }
.brand-logo.is-active img { filter: none; opacity: 1; }
.brand-logo:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.brand-tip { position: fixed; z-index: 80; width: 280px; max-width: calc(100vw - 16px); padding: 12px 14px; border-radius: 12px;
    background: #fff; color: #0b1530; font-size: 14px; line-height: 1.45; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); pointer-events: none; }
.brand-tip--short { width: auto; }
.brand-tip strong { display: block; font-size: 15px; }
.brand-tip span { display: block; margin-top: 3px; color: #334155; }
.brand-tip::after { content: ''; position: absolute; top: 100%; left: var(--arrow, 50%); margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.brand-tip--below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }
/* Same style for the small icons of the details page: "At a glance" box and next to the demo form */
.icon-box { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 10px 26px -12px rgba(37, 99, 235, .55); }
.demo-logo.icon-box { box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 5px rgba(96, 165, 250, .10), 0 18px 44px -16px rgba(37, 99, 235, .6); }
/* GOLDEN RULE everywhere, including the icon boxes of the details page (big box, "At a glance", next to the demo form):
   every logo or icon takes 61.8 % of its white box, with 19.1 % of white space on each side —
   the "harmonious" proportion of proportion.docx. No exception. */
.logo-showcase img, .icon-box img { --logo-pad: var(--logo-margin); } /* every icon, square or free shape: 61.8 % */

/* "Notre équipe" page (page.php?p=team): golden ratio — photo 144 px (Fibonacci), Fibonacci spacing */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s5) var(--s4);
    border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.team-card:hover { border-color: rgba(96, 165, 250, .45); transform: translateY(-3px); }
.team-photo { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; transform: scale(1); background: #fff;
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px rgba(96, 165, 250, .45), 0 18px 40px -16px rgba(37, 99, 235, .7); }
.team-name { margin-top: var(--s4); font-size: var(--fs-21); }
.team-role { margin-top: var(--s1); color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.team-region { margin-top: 2px; color: var(--text-2); font-size: 15px; }
.team-contact { width: 100%; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border); text-align: left; }
.team-contact li { display: flex; gap: var(--s2); align-items: flex-start; padding: 5px 0; color: var(--text-2); font-size: 14px; }
.team-contact .icon { margin-top: 3px; color: var(--accent); }
.team-contact a { overflow-wrap: anywhere; transition: color .2s; }
.team-contact a:hover { color: var(--accent); }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Small phones (iPhone SE, small Android: 320–400 px) ---------- */
@media (max-width: 600px) {
    .btn-row .btn { flex: 1 1 100%; }                       /* full-width buttons, easy to tap */
    .hero h1 { font-size: clamp(var(--fs-34), 10vw, var(--fs-42)); }
    .hero--page h1 { font-size: clamp(30px, 9vw, var(--fs-34)); }
    .section-title { font-size: clamp(24px, 7vw, var(--fs-26)); }
    .page-quote blockquote { font-size: var(--fs-21); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
    .header-inner { gap: var(--s2); }
    .site-header .brand-logo-img { height: 28px; }
    .lang-switch a { padding: 4px 7px; font-size: 12px; }
    .team-card { padding: var(--s4) var(--s3); }
    .highlights, .form-card, .group-card, .why-card { padding: var(--s4); }
}
