/* ============================================================
   PROST — Couche de design "premium" (chargée après style.css)
   Ne supprime rien : affine les composants existants et définit
   les classes utilisées par les pages mais absentes de style.css.
   ============================================================ */
:root {
    --ink-700: #1f2a3d;
    --gold: #c9a24b;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(7, 18, 51, .06), 0 1px 3px rgba(7, 18, 51, .06);
    --shadow-md: 0 10px 30px rgba(7, 18, 51, .09);
    --shadow-lg: 0 24px 60px rgba(7, 18, 51, .20);
    --ease: cubic-bezier(.22, .61, .36, 1);
}
html { scroll-behavior: smooth; }
body { background: #f6f8fc; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(0, 51, 204, .35); outline-offset: 2px; border-radius: 6px; }
::selection { background: #cfdcff; color: var(--navy-900); }

/* ---------- Navigation ---------- */
.navbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); transition: box-shadow .25s var(--ease); }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(7, 18, 51, .08); }
.nav-links a, .nav-dropdown-toggle { position: relative; }
.nav-links > a.active::after, .nav-dropdown-toggle.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--blue-accent);
}
.nav-dropdown-menu { border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-soft); }
.icon-btn { transition: background .15s, color .15s; }
.icon-btn:hover { background: #eef3ff; color: var(--blue-accent); }

/* ---------- Boutons ---------- */
.btn { border-radius: 10px; letter-spacing: .01em; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent, .btn-primary { box-shadow: 0 6px 18px rgba(0, 51, 204, .22); }
.btn-accent:hover, .btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 51, 204, .32); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #eef3ff; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(900px 480px at 85% -10%, rgba(0,51,204, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(201, 162, 75, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 58%, var(--navy-700) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); text-wrap: balance; }
.hero h1 span { background: linear-gradient(90deg, #ffffff, #ffffff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { max-width: 560px; color: #e3ebfa; }
.hero-sm .container { padding: 72px 24px 76px; }
.hero-sm h1 { max-width: 820px; }
.hero-panel { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-stats { flex-wrap: wrap; gap: 18px 34px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 560px; }
.pillars div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 14px 14px; font-size: 14px; color: #e3ebfa; }
.pillars strong { display: block; color: #fff; font-size: 15.5px; margin-bottom: 2px; }

/* ---------- Sections et cartes ---------- */
.section-head h2 { font-size: clamp(25px, 3vw, 34px); text-wrap: balance; }
.section-head .eyebrow, .eyebrow { letter-spacing: .12em; }
.cat-card, .product-card, .value-card, .form-card { border-radius: var(--radius); }
.product-card { transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.form-card { box-shadow: var(--shadow-sm); }
input, select, textarea { max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-accent) !important; box-shadow: 0 0 0 3px rgba(0, 51, 204, .12); outline: none; }
table { max-width: 100%; }
.table-scroll, .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Blocs "solutions" (solutions.php, accueil) ---------- */
.two-col-even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.num-badge { display: inline-block; font-size: 13.5px; font-weight: 800; letter-spacing: .1em; color: var(--blue-accent); background: #e9efff; padding: 6px 14px; border-radius: 30px; margin-bottom: 16px; }
.num-badge.gold { color: #8a6a1c; background: #f7ecd0; }
.h2-lg { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); margin: 0 0 16px; line-height: 1.18; text-wrap: balance; }
.prose-lg { font-size: 16px; line-height: 1.8; color: var(--ink-600); margin: 0 0 14px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px 14px; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy-800); display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.tile i { font-size: 24px; color: var(--blue-accent); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c8d5f5; }
.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-col { background: #fff; border: 1px solid var(--border-soft); border-top: 3px solid var(--blue-accent); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.service-col h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--navy-900); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 16px; color: var(--ink-600); }
.check-list i { color: var(--success); font-weight: 800; margin-top: 2px; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.sector-card { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector-card .ico { width: 46px; height: 46px; border-radius: 12px; background: #eef3ff; color: var(--blue-accent); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px; }
.sector-card .idx { position: absolute; top: 18px; right: 20px; font-weight: 900; font-size: 26px; color: #e3e9f6; }
.sector-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--navy-900); }
.sector-card p { margin: 0; font-size: 15px; color: var(--ink-600); }
.sector-note { text-align: center; margin: 28px 0 0; color: var(--ink-600); font-size: 15.5px; font-style: italic; }
.section-dark { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #e3ebfa; }
.section-dark .eyebrow { color: #ffffff; }
.steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; position: relative; }
.step { text-align: center; position: relative; }
.step .dot { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255,255,255, .6); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step strong { font-size: 14px; font-weight: 700; color: #dbe5fb; }
.steps-note { text-align: center; max-width: 720px; margin: 34px auto 0; color: #e3ebfa; font-size: 16px; }
.cta-band { background: linear-gradient(135deg, var(--blue-accent), var(--navy-700)); color: #fff; border-radius: 22px; padding: 52px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-band p { margin: 0 auto 26px; max-width: 560px; color: #dbe5fb; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.identity-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.identity-card + .identity-card { margin-top: 14px; }
.identity-card strong { display: block; color: var(--navy-900); }
.identity-card span { color: var(--ink-600); font-size: 15.5px; }
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.vm-card { background: #fff; border: 1px solid var(--border-soft); border-left: 4px solid var(--blue-accent); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.vm-card h3 { margin: 0 0 10px; font-size: 14.5px; letter-spacing: .14em; color: var(--blue-accent); }
.vm-card p { margin: 0; color: var(--ink-600); line-height: 1.75; }

/* ---------- Carte d'implantation (SVG) ---------- */
.map-box { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .grid-line { stroke: rgba(255,255,255, .12); stroke-width: 1; }
.map-svg .land { fill: rgba(255,255,255, .16); stroke: rgba(255,255,255, .35); stroke-width: 1; }
.map-svg .route { fill: none; stroke: #ffffff; stroke-width: 2.5; stroke-dasharray: 7 7; animation: dash 1.6s linear infinite; }
.map-svg .halo { fill: rgba(255,255,255, .15); }
.map-svg .node { fill: #ffffff; stroke: #fff; stroke-width: 2; }
.map-svg .node.gold { fill: var(--gold); }
.map-svg text { fill: #fff; font: 700 15px var(--font-sans); }
.map-svg text.sub { fill: #a9bce0; font-weight: 500; font-size: 13.5px; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* ---------- Apparition progressive (activée seulement si JS actif) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .map-svg .route { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Bouton retour en haut ---------- */
#back-top { position: fixed; left: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; z-index: 90; }
#back-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Pied de page ---------- */
footer.site-footer { background: linear-gradient(180deg, var(--navy-950), #030617); }
footer.site-footer a { transition: color .15s; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .offices { margin-top: 16px; font-size: 14.5px; line-height: 1.7; color: #a9b6cf; }
footer.site-footer .offices b { color: #fff; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); row-gap: 22px; } }
@media (max-width: 980px) {
    .two-col-even { grid-template-columns: 1fr; gap: 32px; }
    .service-cols, .vm-grid { grid-template-columns: 1fr; }
    .hero .container { padding-top: 72px; padding-bottom: 64px; }
    .nav-links > a.active::after, .nav-dropdown-toggle.active::after { display: none; }
    .section { padding: 60px 0; }
}
@media (max-width: 640px) {
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .pillars { grid-template-columns: 1fr; }
    .cta-band { padding: 38px 22px; border-radius: 18px; }
    .hero-actions .btn, .btn-row .btn, .cta-band .btn { width: 100%; justify-content: center; text-align: center; }
    .container { padding-left: 18px; padding-right: 18px; }
    #back-top { bottom: 84px; }
}
@media print { .navbar, #chat-widget, #back-top, .announcement-bar, footer.site-footer { display: none !important; } .js .reveal { opacity: 1; transform: none; } }
