@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Inter:wght@300;400;500;600&display=swap');

:root {

    --navy: #1a2942;
    --navy-2: #2c4257;
    --navy-dark: #0f1b2d;
    --blue: #3d6b96;
    --blue-light: #eaf1f8;
    --orange: #f5941f;
    --orange-dark: #d97e0f;
    --bg: #fdfbf6;
    --bg-alt: #f4f0e6;
    --text: #1a2942;
    --text-muted: #5b6472;
    --border: #e6e1d4;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(26, 41, 66, 0.08);
    --shadow-sm: 0 4px 14px rgba(26, 41, 66, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.15; color: var(--navy); font-family: 'DM Sans', 'Inter', system-ui, sans-serif; letter-spacing: -.02em; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.icon-sm { width: 1em; height: 1em; }
.icon-xs { width: .85em; height: .85em; }
.highlight { color: var(--blue); }
.highlight-orange { color: var(--orange); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-whatsapp { background: var(--orange); color: #fff; }
.btn-whatsapp:hover { background: var(--orange-dark); }
.btn-cta { background: var(--orange); color: #fff; }
.btn-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #c0392b; color: #fff; padding: 8px 14px; font-size: .8rem; }
.btn-secondary { background: #eef1f4; color: var(--text); }

/* Topbar */
.topbar { background: var(--navy-dark); color: #cfd7e2; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #cfd7e2; margin-right: 18px; }
.topbar-address { opacity: .85; }
.topbar-right { display: flex; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.header-logo img { height: 42px; width: auto; }
.header-nav { display: flex; gap: 22px; flex: 1; font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-action-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); }

/* Hero */
.hero { padding: 56px 0 60px; background: var(--bg); }
/* Hero — fond couleur branding */
.hero.hero--bg-brand {
    background: linear-gradient(135deg, #0F1F59 0%, #162880 60%, #0f1e42 100%);
    position: relative;
    overflow: hidden;
}
.hero.hero--bg-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37,99,235,.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 80% 20%, rgba(245,158,11,.10) 0%, transparent 55%);
    pointer-events: none;
}
.hero.hero--bg-brand .hero-copy h1,
.hero.hero--bg-brand .hero-copy { color: #fff; }
.hero.hero--bg-brand .hero-copy h1 { color: #fff; }
.hero.hero--bg-brand .eyebrow { background: rgba(255,255,255,.12); color: #e0e7ff; border: 1px solid rgba(255,255,255,.2); }
.hero.hero--bg-brand .hero-subtitle { color: rgba(255,255,255,.75); }
.hero.hero--bg-brand .hero-trust { color: rgba(255,255,255,.8); }
.hero.hero--bg-brand .hero-trust .icon { color: var(--orange); }
.hero.hero--bg-brand .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.hero.hero--bg-brand .btn-outline:hover { background: rgba(255,255,255,.16); }
.hero.hero--bg-brand .highlight { color: var(--orange); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-copy, .hero-visual, .whyus-copy, .whyus-media, .contact-info, .contact-form-card, .cta-copy, .cta-actions { min-width: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); color: var(--blue);
    padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .82rem; margin-bottom: 18px;
}
.eyebrow-dark { background: rgba(245,148,31,.15); color: var(--orange); }
.hero-copy h1 { font-size: 2.6rem; margin-bottom: .4em; }

/*
 * Styles du titre Hero — moteur extensible.
 * Chaque style est un bloc autonome sous `.hero-title-style-{cle}` ; le déclenchement se fait
 * soit via `.hero-copy.revealed` (styles CSS purs, se jouent une fois quand la section entre
 * dans l'écran — voir assets/js/reveal.js), soit via assets/js/hero-title-styles.js pour les
 * styles qui doivent recomposer le texte en mots/lettres (stagger-reveal, typewriter).
 * Pour ajouter un nouveau style : un bloc CSS ici + une option dans admin/tabs/tab_hero.php +,
 * si besoin d'un traitement JS, une branche dans assets/js/hero-title-styles.js.
 */

/* classic : aucun style particulier, c'est l'état de repli. */

/* gradient-shine : dégradé animé en continu sur la partie surlignée. */
.hero-title-style-gradient-shine .highlight {
    background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 18%, var(--orange) 42%, var(--orange) 58%, var(--blue) 82%, var(--navy) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hero-gradient-shine 6s linear infinite;
}
@keyframes hero-gradient-shine { to { background-position: -250% center; } }

/* underline-draw : soulignement qui se dessine une fois la section visible. */
.hero-title-style-underline-draw .highlight { position: relative; white-space: normal; }
.hero-title-style-underline-draw .highlight::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: .05em; height: .22em;
    background: var(--orange); opacity: .3; z-index: -1;
    transition: right 1s cubic-bezier(.65, 0, .35, 1) .3s;
}
.hero-copy.revealed .hero-title-style-underline-draw .highlight::after { right: 0; }

/* marker-highlight : surlignage façon feutre qui balaie le texte. */
.hero-title-style-marker-highlight .highlight {
    background-image: linear-gradient(100deg, rgba(245,148,31,.38) 50%, transparent 50%);
    background-size: 250% 100%; background-position: 100% 0; box-decoration-break: clone;
    padding: .02em .15em; margin: 0 -.15em; border-radius: .15em;
    transition: background-position 1.1s cubic-bezier(.65, 0, .35, 1) .3s;
}
.hero-copy.revealed .hero-title-style-marker-highlight .highlight { background-position: 0 0; }

/* stagger-reveal : chaque mot apparaît en fondu-décalé (mots découpés en JS). */
.hero-title-style-stagger-reveal .word-anim {
    display: inline-block; opacity: 0; transform: translateY(.5em);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: calc(var(--i, 0) * 55ms);
}
.hero-copy.revealed .hero-title-style-stagger-reveal .word-anim { opacity: 1; transform: translateY(0); }

/* typewriter : texte retapé lettre par lettre en JS, curseur clignotant. */
.hero-title-style-typewriter .typewriter-cursor {
    display: inline-block; width: 3px; height: .9em; background: var(--orange);
    margin-left: 2px; vertical-align: -.1em; animation: hero-caret-blink .9s steps(1) infinite;
}
@keyframes hero-caret-blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .hero-title-style-gradient-shine .highlight { animation: none; background-position: 0 center; }
    .hero-title-style-underline-draw .highlight::after { transition: none; right: 0; }
    .hero-title-style-marker-highlight .highlight { transition: none; background-position: 0 0; }
    .hero-title-style-stagger-reveal .word-anim { transition: none; opacity: 1; transform: none; }
    .hero-title-style-typewriter .typewriter-cursor { animation: none; }
}
.hero-subtitle { font-size: 1.05rem; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; font-weight: 600; color: var(--navy-2); }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--blue); }

.hero-visual { position: relative; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--navy); }
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Style d'animation "Zoom" : léger zoom-arrière (Ken Burns) à l'entrée du visuel */
.hero-slider.anim-zoom .hero-slide { transition: opacity .6s ease, transform 1.4s ease; transform: scale(1.08); }
.hero-slider.anim-zoom .hero-slide.active { transform: scale(1); }

/* Style d'animation "Glissement" : la piste défile horizontalement, un visuel à la fois */
.hero-slider.anim-slide .hero-slide-track { display: flex; width: 100%; height: 100%; transition: transform .6s ease; will-change: transform; }
.hero-slider.anim-slide .hero-slide { position: relative; inset: auto; flex: 0 0 100%; opacity: 1; transition: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slider.anim-zoom .hero-slide, .hero-slider.anim-slide .hero-slide-track { transition: none !important; }
}
.hero-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    background: rgba(255,255,255,.9); border: none; border-radius: 8px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-slider-nav.prev { left: 10px; } .hero-slider-nav.next { right: 10px; }
.hero-slider-count { position: absolute; top: 12px; right: 12px; background: rgba(15,27,45,.75); color: #fff; font-size: .75rem; padding: 4px 10px; border-radius: 999px; z-index: 3; }
.hero-slider-badge { position: absolute; left: 12px; top: 12px; max-width: 68%; background: rgba(255,255,255,.96); padding: 10px 14px; z-index: 2; border-radius: 10px; box-shadow: var(--shadow-sm); }
.badge-eyebrow { display: block; font-size: .68rem; font-weight: 800; color: var(--orange); letter-spacing: .05em; margin-bottom: 2px; }
.badge-title { font-weight: 700; font-size: .9rem; }
.hero-rating-card {
    position: absolute; left: -16px; bottom: -24px; background: #fff; box-shadow: var(--shadow);
    border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .82rem;
}
.hero-rating-icon { width: 32px; height: 32px; background: var(--orange); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hero-rating-label { color: var(--text-muted); font-size: .72rem; }
.hero-rating-value { font-weight: 800; }
.hero-rating-count { margin-left: auto; color: var(--text-muted); font-size: .72rem; }

/* Stats */
.stats { background: var(--bg-alt); padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.stat-number { font-size: 2.1rem; font-weight: 800; color: var(--navy); font-family: 'DM Sans', sans-serif; letter-spacing: -.03em; }
.stat-label { color: var(--text-muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

/* ─── Brand Logos Strip — Slider horizontal CSS infini ─── */
.brand-strip {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 0;
    width: 100%;
    /* Masques dégradés sur les bords */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.brand-strip-scroller {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: max-content !important;
    animation: brand-infinite-scroll 25s linear infinite;
    will-change: transform;
}
.brand-strip-scroller:hover {
    animation-play-state: paused;
}

@keyframes brand-infinite-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33333%); }
}

.brand-strip-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.brand-strip-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 14px 36px !important;
    border-right: 1px solid var(--border);
    height: 72px !important;
}
.brand-strip-item:last-child {
    border-right: none;
}
.brand-strip-item a,
.brand-strip-item span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.brand-strip-item img {
    height: 38px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block !important;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.brand-strip-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .brand-strip-scroller { animation: none; }
}
@media (max-width: 640px) {
    .brand-strip-item { padding: 10px 20px !important; height: 58px !important; }
    .brand-strip-item img { height: 28px !important; }
    .brand-strip-scroller { animation-duration: 18s; }
}

.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; max-width: 700px; }
.section-head.center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head h2, .page-header h1 { font-size: 2rem; }
.section-subtitle { font-size: 1rem; max-width: 620px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* Grid / cards */
.grid-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.badge-row { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.pill { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; width: 100%; }

.references-grid { grid-template-columns: repeat(4, 1fr); }
.reference-card .pill { margin-bottom: 8px; }

/* Photo cards (realisations) */
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
    background: linear-gradient(to top, rgba(15,27,45,.88), rgba(15,27,45,0));
    color: #fff;
}
.photo-card-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 800; color: var(--orange); letter-spacing: .04em; margin-bottom: 4px; }
.photo-card-overlay h4 { color: #fff; margin: 0; font-size: 1rem; }
.photo-card-overlay p { color: #e4e8ee; font-size: .82rem; margin: 6px 0 0; }
.full-listing { grid-template-columns: repeat(3, 1fr); }

/* Why us */
.whyus-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.whyus-media { position: relative; }
.whyus-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.whyus-badge {
    position: absolute; right: 16px; bottom: 16px; background: var(--blue); color: #fff;
    padding: 14px 18px; border-radius: 12px; max-width: 220px;
}
.whyus-badge strong { display: block; font-size: 1.4rem; }
.whyus-badge span { font-size: .78rem; opacity: .9; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.feature-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.feature-icon { flex: none; width: 40px; height: 40px; background: var(--blue-light); color: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feature-item h4 { margin: 0 0 4px; font-size: 1rem; }
.feature-item p { margin: 0; font-size: .88rem; }

/* Process */
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.process-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.process-icon { width: 40px; height: 40px; background: var(--blue); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.process-number { font-weight: 800; color: var(--orange); font-size: 1.3rem; }
.process-step h4 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: .85rem; margin: 0; }

/* Testimonials */
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.testimonial-card.featured { background: var(--blue); color: #fff; border-color: var(--blue); }
.testimonial-card.featured p, .testimonial-card.featured span { color: #eaf1f8; }
.testimonial-card.featured .quote-icon { color: var(--orange); }
.quote-icon { color: var(--orange); display: inline-block; margin-bottom: 10px; }
.testimonial-text { font-size: .95rem; }
.testimonial-footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 14px; margin-top: 14px; }
.testimonial-card.featured .testimonial-footer { border-color: rgba(255,255,255,.2); }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-footer strong { display: block; font-size: .9rem; color: inherit; }
.testimonial-footer span { font-size: .78rem; }

/* Partners — logo strip moderne */
.partners-grid { grid-template-columns: repeat(6, 1fr); align-items: center; --partner-logo-height: 64px; }
.partner-logo { display: flex; align-items: center; justify-content: center; height: calc(var(--partner-logo-height, 64px) + 32px); padding: 10px 16px; }
.partner-logo img { max-height: var(--partner-logo-height, 64px); width: auto; filter: grayscale(1) opacity(.6); transition: filter .3s ease, transform .3s ease; }
.partner-logo:hover img { filter: grayscale(0) opacity(1); transform: scale(1.06); }
.partners-grid.no-grayscale .partner-logo img { filter: none; }
.partners-grid.no-grayscale .partner-logo:hover img { filter: none; }

/* ─── Tech Partners & Certifications — Section Premium ─── */
.tech-partners { padding: 76px 0; background: #fff; border-top: 1px solid var(--border); }
.tech-tabs { display: flex; gap: 4px; margin-bottom: 40px; background: #f1f5f9; border-radius: 12px; padding: 4px; width: fit-content; }
.tech-tab {
    padding: 8px 20px; border-radius: 8px; font-size: .85rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
    color: var(--text-muted); background: transparent; border: none; cursor: pointer;
    transition: all .2s ease;
}
.tech-tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.tech-tab-panel { display: none; }
.tech-tab-panel.active { display: block; animation: fadeInPanel .3s ease; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ISO / Certification badges */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: #fff;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(245,158,11,.04));
    pointer-events: none;
}
.cert-card:hover { border-color: var(--orange); box-shadow: 0 12px 32px rgba(245,158,11,.12); transform: translateY(-4px); }
.cert-badge-img { width: 70px; height: 70px; object-fit: contain; }
.cert-badge-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; font-weight: 800;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 16px rgba(15,31,89,.25);
    flex-shrink: 0;
}
.cert-badge-icon.cert-icon-gold { background: linear-gradient(135deg, #92400e 0%, #d97706 100%); }
.cert-badge-icon.cert-icon-blue { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); }
.cert-name { font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.cert-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.cert-year { font-size: .72rem; font-weight: 700; color: var(--orange); letter-spacing: .05em; text-transform: uppercase; }

/* Tech partner cards */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.tech-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: #fff;
    align-items: flex-start;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.tech-card:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(37,99,235,.10); transform: translateY(-3px); }
.tech-card-logo {
    width: 52px; height: 52px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.tech-card-logo img { max-width: 42px; max-height: 36px; object-fit: contain; }
.tech-card-body { flex: 1; min-width: 0; }
.tech-card-body h4 { font-size: .95rem; margin-bottom: 4px; color: var(--navy); font-family: 'DM Sans', sans-serif; }
.tech-card-body p { font-size: .8rem; margin: 0; color: var(--text-muted); line-height: 1.45; }
.tech-pill {
    display: inline-flex; align-items: center; margin-top: 8px;
    padding: 3px 9px; border-radius: 999px;
    background: var(--blue-light); color: var(--blue);
    font-size: .68rem; font-weight: 700; letter-spacing: .03em;
}

/* CTA banner */
.cta-banner { background: var(--navy-dark); color: #fff; padding: 64px 0; border-top: 4px solid var(--orange); border-bottom: 4px solid var(--orange); }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-banner h2 { color: #fff; font-size: 2.1rem; }
.cta-banner p { color: #c3cbd6; }
.cta-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cta-trust li { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-avg { color: #9aa6b5; font-size: .78rem; text-align: center; margin: 0; }
.cta-rating { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 10px 14px; font-size: .82rem; }
.cta-rating .stars { display: flex; }
.star-icon { width: 14px; height: 14px; color: var(--orange); display: inline-flex; }
.star-icon.star-empty { color: rgba(255,255,255,.25); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.contact-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.contact-card-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.icon-blue { background: var(--blue); } .icon-orange { background: var(--orange); } .icon-slate { background: var(--navy-2); }
.contact-card-label { display: block; font-size: .68rem; color: var(--text-muted); font-weight: 700; letter-spacing: .04em; }
.contact-card strong { display: block; font-size: .95rem; }
.contact-card small { color: var(--text-muted); }
.contact-card-address { align-items: flex-start; }
.contact-card-multi { align-items: flex-start; }
.contact-card-body { display: flex; flex-direction: column; gap: 2px; }
.contact-card-line { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 700; color: var(--text); width: fit-content; }
.contact-card-line .icon { width: 12px; height: 12px; opacity: .5; transition: opacity .15s ease, transform .15s ease; }
.contact-card-line:hover { color: var(--blue); }
.contact-card-line:hover .icon { opacity: 1; transform: translateX(2px); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { display: block; }
.contact-office { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.contact-office-name { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 12px; color: var(--navy); }
.contact-office .contact-cards { margin: 0; }

.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); height: fit-content; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--navy-2); margin-bottom: 6px; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; font-size: .95rem; font-family: inherit; background: #fdfdfb;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field-hint { font-size: .75rem; color: var(--text-muted); }
.form-legal { font-size: .72rem; text-align: center; margin-top: 10px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b7c0cd; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 24px 32px; }
.footer-logo { height: 34px; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 6px; }
.footer-brand p { color: #93a0b1; font-size: .88rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a, .footer-socials span {
    width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; color: #cfd7e2; transition: background-color .2s ease, color .2s ease;
}
.footer-socials a:hover { background: var(--blue); color: #fff; }
.footer-socials span.footer-social-placeholder { opacity: .35; cursor: default; }
.footer-col h5 { color: #fff; font-size: .85rem; letter-spacing: .04em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-office-name { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #8b96a5; margin: 14px 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 18px 24px; font-size: .8rem; color: #8b96a5; flex-wrap: wrap; gap: 8px; }
.footer-legal a:hover { color: #fff; }

/* Page header (realisations.php / references.php) */
.page-header { padding-bottom: 24px; text-align: center; }
.page-header .section-subtitle { margin-left: auto; margin-right: auto; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; justify-content: center; }
.pill-filter { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .82rem; font-weight: 700; }
.pill-filter.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Quand les deux widgets flottants partagent le même côté (chat en position "droite"),
   un seul reste visible à la fois pour éviter que le widget de contact déployé
   ne passe derrière/à travers la bulle de l'assistant IA. */
.fab-widget.widget-peer-hidden, .chat-widget.widget-peer-hidden {
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease;
}

/* FAB widget — Toujours ouvert, sans bouton d'activation */
.fab-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    --fab-icon-size: 24px;
}
.fab-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.fab-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 999px;
    padding: 8px 18px 8px 8px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.fab-pill:hover {
    transform: translateX(-3px) scale(1.03);
    box-shadow: 0 14px 34px rgba(26,41,66,.16);
    background: #fafcff;
}
.fab-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: filter .18s ease;
}
.fab-icon-blue { background: var(--blue); }
.fab-icon-orange { background: var(--orange); }
.fab-icon-slate { background: var(--navy-2); }
.fab-pill:hover .fab-pill-icon {
    filter: brightness(1.12);
}
.fab-toggle {
    display: none !important; /* Masqué car le widget est toujours ouvert */
}

/* Style Responsive Mobile pour les raccourcis de contact (Dock horizontal bas d'écran) */
@media (max-width: 640px) {
    .fab-widget {
        right: 14px !important;
        bottom: 14px !important;
        left: 14px !important;
        width: calc(100% - 28px) !important;
        align-items: center !important;
    }
    .fab-options {
        flex-direction: row !important;
        justify-content: space-around !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 8px 12px !important;
        border-radius: 999px !important;
        box-shadow: 0 10px 30px rgba(15,27,45,0.18) !important;
        border: 1px solid var(--border) !important;
    }
    .fab-pill {
        flex: 1 !important;
        justify-content: center !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 6px 4px !important;
        font-size: 0.78rem !important;
        border-right: 1px solid var(--border) !important;
        border-radius: 0 !important;
    }
    .fab-pill:last-child {
        border-right: none !important;
    }
    .fab-pill:hover {
        transform: none !important;
    }
    .fab-pill-icon {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Carousel (shared, progressive enhancement) */
.grid-section.is-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.grid-section.is-carousel::-webkit-scrollbar { height: 6px; }
.grid-section.is-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.grid-section.is-carousel .carousel-slide { flex: 0 0 300px; scroll-snap-align: start; }
.carousel-wrap { position: relative; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: #fff; box-shadow: var(--shadow);
    border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.carousel-arrow.prev { left: -6px; } .carousel-arrow.next { right: -6px; }

/* Scroll-reveal animations (progressive enhancement, see assets/js/reveal.js) */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
    transition-delay: calc(var(--reveal-index, 0) * 90ms);
    will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal="zoom"].revealed { transform: scale(1); }
[data-reveal="left"] { transform: translate(-40px, 0); }
[data-reveal="left"].revealed { transform: none; }
[data-reveal="right"] { transform: translate(40px, 0); }
[data-reveal="right"].revealed { transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Hover micro-interactions */
.card, .photo-card, .testimonial-card, .process-step, .feature-item {
    transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover, .photo-card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(26,41,66,.16); }
.testimonial-card:hover, .process-step:hover, .feature-item:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(26,41,66,.1); }
.partner-logo:hover img { transform: translateY(-3px); }
.process-icon, .feature-icon { transition: transform .28s ease; }
.process-step:hover .process-icon, .feature-item:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26,41,66,.16); }
.btn:active { transform: translateY(0); }
.hero-slider-nav, .carousel-arrow { transition: transform .18s ease, background-color .18s ease; }
.hero-slider-nav:hover, .carousel-arrow:hover { transform: translateY(-50%) scale(1.1); background: #fff; }
.link-arrow, .card-link { transition: gap .2s ease; }
.link-arrow:hover, .card-link:hover { gap: 10px; }

/* Reference detail modal */
.reference-card[data-modal-trigger] { cursor: pointer; }
.reference-card[data-modal-trigger]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body.modal-open { overflow: hidden; }
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,27,45,.6); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-dialog {
    background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
    max-height: 88vh; overflow-y: auto; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.35);
    transform: scale(.94) translateY(10px); transition: transform .25s ease;
}
.modal-overlay.open .modal-dialog { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(15,27,45,.55); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--navy); }
.modal-media { aspect-ratio: 16/10; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 26px; }
.modal-body .pill { margin-bottom: 10px; }
.modal-title { margin-bottom: 10px; }
.modal-description { margin: 0; }

/* Chat widget (assistant IA) */
.chat-widget { position: fixed; left: 22px; bottom: 22px; z-index: 95; --chat-icon-size: 24px; }
.chat-widget.pos-right { left: auto; right: 22px; bottom: 96px; }
.chat-widget.pos-right .chat-panel { left: auto; right: 0; }
.chat-widget.pos-right .chat-attention-bubble { left: auto; right: 0; }
.chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; border: none;
    box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.chat-toggle:hover { background: var(--navy); transform: scale(1.07); box-shadow: 0 16px 36px rgba(15,27,45,.32); }
.chat-toggle-icon-default, .chat-toggle-icon-close {
    position: absolute; top: 50%; left: 50%; width: var(--chat-icon-size, 24px); height: var(--chat-icon-size, 24px);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .2s ease, transform .2s ease;
}
.chat-toggle .icon { width: 100%; height: 100%; display: block; }

/* Anneau de pulsation, quelques cycles au chargement pour attirer l'œil sans devenir agaçant */
.chat-toggle::before {
    content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue);
    opacity: 0; pointer-events: none;
}
.chat-widget.attention-pulse .chat-toggle::before { animation: chat-pulse-ring 1.8s ease-out 3; }
.chat-toggle.has-unread::after {
    content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--orange); border: 2px solid #fff; animation: chat-unread-pulse 1.4s ease-in-out infinite;
}
@keyframes chat-unread-pulse { 50% { transform: scale(1.25); } }
@keyframes chat-pulse-ring {
    0% { transform: scale(.85); opacity: .7; }
    100% { transform: scale(1.35); opacity: 0; }
}

.chat-attention-bubble {
    position: absolute; bottom: 70px; left: 0; width: 240px; background: #fff; border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.2); padding: 12px 32px 12px 14px; font-size: .85rem; line-height: 1.4; color: var(--text);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.chat-attention-bubble.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-attention-bubble::after {
    content: ""; position: absolute; bottom: -7px; left: 22px; width: 14px; height: 14px; background: #fff;
    transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(0,0,0,.06);
}
.chat-widget.pos-right .chat-attention-bubble::after { left: auto; right: 22px; }
.chat-attention-close {
    position: absolute; top: 6px; right: 8px; border: none; background: none; color: var(--text-muted);
    font-size: 1rem; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.chat-attention-close:hover { color: var(--text); }
.chat-toggle-icon-default { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.chat-toggle-icon-close { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.chat-widget.open .chat-toggle-icon-default { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.chat-widget.open .chat-toggle-icon-close { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* Effet flouté de fond d'écran pour le mode centré */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 45, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 94;
    transition: opacity 0.25s ease;
}

.chat-panel {
    position: absolute; bottom: 70px; left: 0; width: 340px; max-width: calc(100vw - 40px); height: 480px; max-height: 70vh;
    background: #fff; border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.28);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.chat-widget.open .chat-panel { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mode centré dynamique (Desktop) */
.chat-widget.is-centered .chat-panel {
    position: fixed !important;
    bottom: 50% !important;
    left: 50% !important;
    transform: translate(-50%, 50%) scale(1) !important;
    margin: 0 !important;
    z-index: 95 !important;
    box-shadow: 0 30px 70px rgba(15, 27, 45, 0.28) !important;
    width: 440px !important;
    max-width: 90vw !important;
    height: 520px !important;
    max-height: 80vh !important;
}
.chat-widget.is-centered .chat-panel-header {
    padding: 16px 20px !important;
}
.chat-widget.is-centered .chat-toggle {
    display: none !important; /* Masquer la bulle flottante quand le chat est centré ouvert */
}

/* Sur tablette/mobile, désactivation de l'overlay et adaptation en bottom drawer natif */
@media (max-width: 640px) {
    .chat-overlay {
        display: none !important;
    }
    .chat-widget.is-centered .chat-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 62vh !important;
        max-height: 62vh !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(15, 27, 45, 0.18) !important;
    }
}
.chat-panel-header { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; flex-shrink: 0; }
.chat-panel-header img { height: 24px; background: #fff; border-radius: 4px; padding: 3px 6px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper, #faf7f0); }
.chat-message { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; }
.chat-message-assistant { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-message-user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-message-error { background: #fde8e8; color: #8a1f1f; align-self: center; text-align: center; font-size: .82rem; }
.chat-message-escalate { background: var(--blue-light); border: 1px solid var(--blue); align-self: stretch; text-align: center; font-size: .85rem; }
.chat-message-system { background: transparent; color: var(--text-muted); align-self: center; text-align: center; font-size: .78rem; font-style: italic; max-width: 100%; }
.chat-message-admin { background: var(--navy); color: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-message-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--orange); margin-bottom: 3px; }
.chat-escalate-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.chat-escalate-actions .btn { padding: 7px 14px; font-size: .8rem; }
.chat-typing { display: flex; gap: 4px; padding: 2px 0; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: chat-typing-bounce 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.chat-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-size: .88rem; font-family: inherit; min-width: 0; }
.chat-input-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.chat-input-row button {
    width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color .18s ease;
}
.chat-input-row button:hover { background: var(--navy); }
@media (max-width: 480px) {
    .chat-widget { left: 14px; bottom: 14px; }
    .chat-widget.pos-right { left: auto; right: 14px; bottom: 86px; }
    .chat-panel { width: calc(100vw - 28px); height: 65vh; }
}

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; }
.alert-success { background: #e6f6ec; color: #1a7a3c; }
.alert-error { background: #fdeceb; color: #c0392b; }

/* Responsive */
@media (max-width: 980px) {
    .hero-inner, .whyus-inner, .contact-inner, .cta-inner { grid-template-columns: 1fr; }
    .stats-grid, .process-track { grid-template-columns: repeat(2, 1fr); }
    .grid-section, .references-grid, .full-listing, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .feature-grid { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .header-nav.open {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; padding: 16px 24px; box-shadow: var(--shadow); gap: 14px; border-top: 1px solid var(--border);
    }
    .nav-toggle { display: flex; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-tabs { width: 100%; }
}
@media (max-width: 640px) {
    .hero-copy h1 { font-size: 1.9rem; }
    .stats-grid, .grid-section, .references-grid, .full-listing, .testimonials-grid, .process-track { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .form-row { grid-template-columns: 1fr; }
    .header-actions .header-action-link, .header-actions .btn-outline { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-ctas, .cta-trust, .hero-trust { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; white-space: normal; }
    .filter-bar { justify-content: flex-start; }
    .cert-grid { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .tech-tabs { flex-wrap: wrap; }
}

