:root {
  --navy: #0a3560;
  --navy-2: #0e62a8;
  --steel: #4c6478;
  --ink: #12233a;
  --muted: #5c6b78;
  --line: #e2e7eb;
  --bg: #f2f4f5;
  --card: #ffffff;
  --accent: #0e62a8;
  --accent-dark: #0a4d85;
  --accent-2: #c12727;
  --accent-2-dark: #a01f1f;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(10, 53, 96, 0.2);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section.tight { padding: 60px 0; }

.icon { width: 26px; height: 26px; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy);
  color: #9fb4c3;
  font-size: 13px;
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.top-bar-contacts { display: flex; gap: 22px; }
.top-bar-contacts a { display: inline-flex; align-items: center; gap: 6px; color: #cdd8e0; }
.top-bar-contacts a:hover { color: #fff; }
.top-bar-contacts .icon { width: 14px; height: 14px; }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { color: #9fb4c3; display: flex; }
.top-bar-social a:hover { color: #fff; }
.top-bar-social .icon { width: 15px; height: 15px; }
@media (max-width: 760px) { .top-bar-contacts span.hide-mobile { display: none; } }
@media (max-width: 560px) { .top-bar-contacts { display: none; } .top-bar-inner { justify-content: flex-end; } }

/* ---------- Language switch ---------- */
.lang-switch { position: relative; margin-left: 4px; }
.lang-switch-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #cdd8e0; font-family: 'Barlow', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; border-radius: 5px; padding: 4px 9px; cursor: pointer;
}
.lang-switch-btn:hover { border-color: var(--accent-2); color: #fff; }
.lang-switch-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px;
  box-shadow: var(--shadow); min-width: 130px; overflow: hidden; z-index: 200;
}
.lang-switch-menu.open { display: block; }
.lang-switch-menu a { display: block; padding: 9px 14px; font-size: 13px; color: #cdd8e0; }
.lang-switch-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-switch-menu a.active { color: var(--accent-2); font-weight: 600; }

/* ---------- Modals ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 21, 35, 0.6);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative; background: var(--card); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 36px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.modal-box-small { max-width: 420px; text-align: center; }
.modal-box h3 { font-size: 26px; margin-bottom: 6px; }
.modal-subtitle { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: var(--bg); color: var(--navy);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--line); }
.modal-form { padding: 0; border: none; background: transparent; }
.lang-modal-options { display: flex; flex-direction: column; gap: 10px; }
.lang-modal-option {
  display: block; padding: 14px 18px; border-radius: 8px; border: 1.5px solid var(--line);
  font-weight: 600; color: var(--navy); transition: border-color .15s, background .15s;
}
.lang-modal-option:hover { border-color: var(--accent); background: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 53, 96, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: auto; color: #fff; flex-shrink: 0; }
.logo-text { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .3px; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: #cdd8e0; font-size: 15px; font-weight: 500;
  transition: color .15s;
}
.main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { color: #cdd8e0; font-size: 14px; font-weight: 600; display: none; }
.btn-small { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-outline-light {
  display: inline-block; padding: 14px 28px; border-radius: 6px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent;
  background: transparent; -webkit-appearance: none; appearance: none;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: inherit; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.full-width-button { width: 100%; text-align: center; border: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 76px 0; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow-line { display: flex; align-items: center; gap: 8px; color: #6fb2e6; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 44px; max-width: 620px; }
.hero .lead { color: #dbe4ea; font-size: 18px; max-width: 560px; }
.hero .support-text { color: #a9b8c4; font-size: 15px; }
.hero-actions { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -20px -20px -20px 12%;
  background: var(--accent-2);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero-visual-frame {
  position: relative; z-index: 1;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  aspect-ratio: 9/11; overflow: hidden; box-shadow: var(--shadow);
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section head ---------- */
.section-tag {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.section-tag-light { color: #6fb2e6; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 5/6; object-fit: cover; }
.about-badge {
  position: absolute; left: -22px; bottom: -22px;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
  font-family: 'Barlow Condensed', sans-serif;
}
.about-badge .num { font-size: 30px; font-weight: 700; line-height: 1; display: block; }
.about-badge .label { font-size: 12.5px; color: #d3e6f4; text-transform: uppercase; letter-spacing: .05em; }
.about-copy h2 { font-size: 30px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.value-item h4 { font-size: 17px; margin-bottom: 4px; }
.value-item p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Services (tabbed) ---------- */
.services-section { background: var(--card); }
.services-tabs { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: stretch; }
.service-tab-list { display: flex; flex-direction: column; gap: 8px; }
.service-tab-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 600; color: var(--navy);
  transition: background .15s, border-color .15s, color .15s;
}
.service-tab-btn .icon { color: var(--accent); flex-shrink: 0; }
.service-tab-btn:hover { border-color: var(--accent); }
.service-tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.service-tab-btn.active .icon { color: var(--accent-2); }

.service-tab-panels { position: relative; }
.service-tab-panel {
  display: none;
  background: var(--navy); border-radius: var(--radius); overflow: hidden;
  height: 100%;
}
.service-tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; }
.service-tab-panel img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.service-tab-copy { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; }
.service-tab-copy h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.service-tab-copy p { color: #b9c8d2; font-size: 15px; margin-bottom: 0; }

/* ---------- Réalisations ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.project-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.project-card img { aspect-ratio: 4/3; object-fit: cover; }
.project-card figcaption { padding: 16px 18px; }
.project-title { display: block; font-weight: 600; color: var(--navy); font-size: 15.5px; }
.project-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy) 65%);
  color: #fff; padding: 64px 0;
}
.cta-banner::after {
  content: ""; position: absolute; top: -40%; right: -6%; width: 46%; height: 220%;
  background: var(--accent-2); opacity: .9;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
}
.cta-banner-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: 30px; max-width: 520px; margin-bottom: 8px; }
.cta-banner p { color: #cfe0ec; margin-bottom: 0; max-width: 440px; }

/* ---------- Why us ---------- */
.why-us { background: var(--navy); color: #fff; }
.why-us .section-tag { color: #6fb2e6; }
.why-us h2 { color: #fff; }
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 54px;
}
.stat-item { background: rgba(255,255,255,0.06); padding: 26px 20px; text-align: center; }
.stat-item .stat-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 38px;
  color: var(--accent-2); line-height: 1;
}
.stat-item .stat-label { display: block; margin-top: 8px; font-size: 13px; color: #a9b8c4; text-transform: uppercase; letter-spacing: .04em; }

.why-grid-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .why-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px;
}
.why-icon { color: var(--accent-2); flex-shrink: 0; }
.why-item p { color: #cdd8e0; margin-bottom: 0; font-size: 15px; }
.why-visual img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 20px 40px -14px rgba(0,0,0,0.5); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.team-avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px; margin: 0 auto 16px;
}
.team-card h4 { font-size: 18px; margin-bottom: 4px; }
.team-card p { font-size: 14px; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--card); }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; }
.contact-details { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-details .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-details a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-msg { display: none; padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 18px; }
.form-msg:not(:empty) { display: block; }
.form-msg.success { background: #e4f5e9; color: #1e7a3c; }
.form-msg.error { background: #fbe7e5; color: #b23a2c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7c4cd; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-text { color: #fff; }
.footer-slogan { margin-top: 14px; font-size: 14px; max-width: 260px; }
.footer-col h5 { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--accent-2); }
.footer-contact li { font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-icon .icon { width: 16px; height: 16px; }
.social-icon:hover { border-color: var(--accent-2); color: var(--accent-2); }
.footer-bottom { padding: 22px 0; font-size: 13px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .contact-grid, .services-tabs, .why-grid-split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .service-tab-panel.active { grid-template-columns: 1fr; }
  .service-tab-panel img { min-height: 200px; }
  .why-visual { order: -1; }
  .about-badge { left: 16px; bottom: -18px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; padding: 20px 24px; gap: 4px; max-height: calc(100vh - 76px); overflow-y: auto;
    transform: translateY(-140%); transition: transform .25s;
    border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; }
  .header-phone { display: none !important; }
  .btn-small { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .values-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 20px 12px; }
  .stat-item .stat-num { font-size: 30px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .modal-box { padding: 24px; }
  .modal-box h3 { font-size: 22px; }
  .modal-close { top: 10px; right: 10px; }
}
@media (max-width: 420px) {
  .top-bar-social { gap: 10px; }
  .lang-switch-menu { right: -12px; }
}

/* ---------- v2: fòm, konsantman, WhatsApp ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--muted); cursor: pointer; }
.field-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent); }
.team-avatar-photo { object-fit: cover; }
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float .icon { width: 30px; height: 30px; }
