/* ADEP Group — modern visual layer */
:root {
  --primary: #061b2b;
  --primary-mid: #0a3048;
  --primary-light: #105675;
  --accent: #079cae;
  --accent-dark: #06798b;
  --accent-glow: rgba(7, 156, 174, .12);
  --accent-warm: #20b7c7;
  --accent-warm-dk: #079cae;
  --text: #102b3a;
  --text-muted: #5d7480;
  --text-light: #8ba1aa;
  --border: #dbe8ec;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --bg-subtle: #eaf3f6;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(7, 27, 36, .05);
  --shadow: 0 12px 32px rgba(7, 27, 36, .08);
  --shadow-md: 0 20px 48px rgba(7, 27, 36, .1);
  --shadow-lg: 0 30px 80px rgba(7, 27, 36, .14);
  /* Keep legacy page components on the same brand palette. */
  --green: var(--accent);
  --green-dark: var(--accent-dark);
  --green-light: #5ccbd7;
  --blue: var(--primary);
  --light: var(--bg-subtle);
  --gray: var(--text-muted);
  --off-white: var(--bg-alt);
  --white: var(--bg);
  --light-steel: var(--bg-subtle);
  --concrete: var(--text-muted);
  --steel: var(--primary-light);
  color-scheme: light;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

::selection { color: #fff; background: var(--accent-dark); }

h1, h2, h3, h4, .heading, .section-title, .s-title {
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: -.035em;
}

header {
  top: 12px;
  left: 50%;
  width: min(calc(100% - 32px), 1380px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 32px rgba(7, 27, 36, .08);
}

header.scrolled { background: rgba(255, 255, 255, .94); }
.nav-inner { height: 68px; padding: 0 22px; }
.logo { gap: 10px; }
.logo img { height: 46px; width: 46px; border-radius: 12px; }
.brand-name {
  color: var(--primary);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand-name b { color: var(--accent-dark); font-weight: 500; }
nav { gap: 0; }
nav a {
  padding: 10px 12px;
  color: #405a62;
  font-size: .72rem;
  letter-spacing: .06em;
}
.nav-cta {
  margin-left: 8px;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  background: var(--primary) !important;
  box-shadow: none;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.float-wa {
  width: 56px;
  height: 56px;
  right: 22px;
  bottom: 22px;
  border: 4px solid #fff;
  animation: none;
}

.breadcrumb {
  margin-top: 0;
  padding: 100px 40px 16px;
  background: #edf5f5;
  border: 0;
}

.breadcrumb-inner { max-width: 1240px; }

/* Product and article heroes */
.hero-produit {
  padding: 90px 40px 110px;
  background:
    radial-gradient(circle at 82% 22%, rgba(32, 183, 199, .25), transparent 28%),
    radial-gradient(circle at 5% 90%, rgba(34, 142, 203, .12), transparent 22%),
    linear-gradient(135deg, #061b2b 0%, #0a3650 100%);
}
.hero-produit::before {
  opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.hero-produit-inner { max-width: 1240px; gap: 80px; }
.hero-produit-badge {
  color: #86e2ea;
  background: rgba(8, 169, 187, .15);
  border-color: rgba(142, 232, 239, .25);
  padding: 8px 14px;
  letter-spacing: .08em;
}
.hero-produit h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-produit .subtitle { color: #86e2ea; letter-spacing: .04em; }
.hero-produit p { max-width: 690px; color: rgba(255,255,255,.7); font-size: 1rem; }
.hero-visual-box {
  border-radius: 28px;
  padding: 20px;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
.spec-item { padding: 22px; border-radius: 16px; }
.spec-item .val { font-family: inherit; color: #86e2ea; }
.btn-primary, .btn-wa, .btn-article {
  border-radius: 14px;
  padding: 14px 22px;
  text-transform: none;
  letter-spacing: 0;
}

section.p-section { padding: 110px 40px; }
.p-inner { max-width: 1240px; }
.section-label span { letter-spacing: .1em; }
.section-title { font-size: clamp(2rem, 4vw, 3.6rem); max-width: 760px; }
.section-sub { font-size: 1.02rem; }

.avantages-grid { gap: 16px; }
.av-card {
  min-height: 220px;
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.av-card::after { display: none; }
.av-card:hover { border-color: rgba(8,169,187,.4); transform: translateY(-5px); }
.av-icon { border-radius: 14px; }
.av-card h3 { font-size: 1rem; letter-spacing: -.02em; }

.etapes-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.etape {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.etape:last-child { border-bottom: 1px solid var(--border); }
.etape:hover { padding-left: 26px; border-color: rgba(8,169,187,.4); box-shadow: var(--shadow); }
.etape-num { width: 48px; height: 48px; border-radius: 14px; background: var(--primary); box-shadow: none; }
.specs-table { border-radius: 18px; box-shadow: var(--shadow-sm); }
.specs-table th { background: var(--primary); }
.app-chip { border-radius: 999px; background: #fff; }
.cta-section { padding: 100px 40px; background: var(--primary); }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.05em; }
footer { background: #04151c; }

/* Blog */
.featured-article { border-radius: 28px; box-shadow: var(--shadow-sm); }
.featured-body { padding: 56px; }
.featured-body h2 { font-size: 1.7rem; }
.articles-grid { gap: 18px; }
.article-card { border-radius: 22px; box-shadow: var(--shadow-sm); }
.article-img { height: 230px; }

/* Homepage */
body.home-page .hero {
  min-height: 940px;
  padding-top: 88px;
  background:
    radial-gradient(circle at 78% 28%, rgba(32, 183, 199, .25), transparent 30%),
    radial-gradient(circle at 10% 86%, rgba(34, 142, 203, .13), transparent 25%),
    linear-gradient(135deg, #061b2b 0%, #0a3048 62%, #075466 100%);
}
body.home-page .hero::before { background: none; }
body.home-page .hero-grid-bg {
  opacity: .4;
  background-size: 56px 56px;
  mask-image: linear-gradient(135deg, black, transparent 75%);
}
body.home-page .hero-accent-line, body.home-page .hero-particles { display: none; }
body.home-page .hero-inner {
  width: 100%;
  max-width: 1320px;
  grid-template-columns: 1.12fr .88fr;
  gap: 72px;
  padding: 150px 40px 100px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 14px;
  color: #a8edf2;
  background: rgba(8,169,187,.12);
  border: 1px solid rgba(163,237,241,.22);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-warm); }
body.home-page .hero h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 5vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-transform: none;
}
body.home-page .hero h1 em {
  color: #78dce6;
  font-style: normal;
  border: 0;
  text-decoration: none;
}
body.home-page .hero > * p, body.home-page .hero-inner > div > p { max-width: 680px; color: rgba(255,255,255,.7); font-size: 1.07rem; }
.btn-accent, .btn-outline-white {
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.btn-accent { background: var(--accent-warm); color: #fff; box-shadow: none; }
.btn-accent:hover { background: #31c6d5; }
body.home-page .hero-stats { gap: 10px; margin-top: 42px; }
body.home-page .stat-card {
  padding: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
}
body.home-page .stat-card strong { color: #fff; }

body.home-page .hero-right {
  min-height: 570px;
  padding: 318px 18px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(to top, rgba(3,22,29,.98) 4%, rgba(3,22,29,.2) 62%, rgba(3,22,29,.08)), url('../images/safi-step.jpg') center/cover;
  box-shadow: 0 40px 100px rgba(0,0,0,.25);
}
body.home-page .hero-right::before {
  content: 'Ingénierie • Fabrication • Installation';
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(5,25,33,.58);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(14px);
  font-size: .72rem;
  font-weight: 700;
}
body.home-page .hero-card {
  position: static;
  width: auto;
  transform: none !important;
  min-height: 96px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
  backdrop-filter: blur(16px);
}
body.home-page .hero-card:hover { transform: translateY(-3px) !important; }
body.home-page .hero-card-icon { width: 40px; height: 40px; border-radius: 11px; }
body.home-page .hero-card-text strong { color: var(--primary); font-size: .72rem; line-height: 1.2; }
body.home-page .hero-card-text span { color: var(--text-muted); font-size: .59rem; line-height: 1.35; }

.trust-bar { border: 0; background: #dff5f8; }
.trust-inner { max-width: 1240px; }
.trust-item { border-color: rgba(7,27,36,.14); }
.trust-number, .trust-label { color: var(--primary); }

body.home-page .products, body.home-page .applications, body.home-page .realisations, body.home-page .contact { background: #fff; }
body.home-page .process, body.home-page .why, body.home-page .actualites { background: var(--bg-alt); }
body.home-page .applications .s-title { color: var(--text); }
body.home-page .applications .s-sub { color: var(--text-muted); }
body.home-page .applications .section-num { color: rgba(7, 156, 174, .09); }
body.home-page .applications::before {
  background: radial-gradient(circle at 82% 8%, rgba(7, 156, 174, .08), transparent 30%);
}
body.home-page .products, body.home-page .process, body.home-page .applications,
body.home-page .why, body.home-page .realisations, body.home-page .actualites, body.home-page .contact { padding: 120px 40px; }
body.home-page .s-inner { max-width: 1240px; }
body.home-page .s-header { margin-bottom: 54px; }
body.home-page .s-title { font-size: clamp(2.4rem, 4.5vw, 4.4rem); line-height: 1; }
body.home-page .s-sub { font-size: 1.02rem; }
body.home-page .section-num { color: rgba(8,169,187,.09); font-size: 7rem; }

body.home-page .products-grid { gap: 16px; }
body.home-page .product-card {
  min-height: 390px;
  padding: 30px;
  border-radius: 24px;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
body.home-page .product-card:hover { transform: translateY(-6px); border-color: rgba(8,169,187,.4); box-shadow: var(--shadow-md); }
body.home-page .product-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--primary); color: #78dce6; }
body.home-page .product-card h3 { font-size: 1.2rem; }
body.home-page .tag { border-radius: 999px; }
body.home-page .product-link { color: var(--accent-dark); }

body.home-page .process-grid { gap: 12px; }
body.home-page .process-step {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
body.home-page .step-num { color: var(--accent); font-size: 2.8rem; }

body.home-page .apps-grid { gap: 16px; }
body.home-page .app-card { min-height: 430px; border-radius: 26px; }
body.home-page .app-card::after { background: linear-gradient(to top, rgba(5,25,33,.95), rgba(5,25,33,.05)); }
body.home-page .app-card-content { padding: 30px; }

body.home-page .why-inner { gap: 80px; }
body.home-page .why-visual { border-radius: 30px; background: var(--primary); padding: 46px; }
body.home-page .why-item-icon { border-radius: 14px; background: #e6f6f7; color: var(--accent-dark); }

body.home-page .real-grid, body.home-page .news-grid { gap: 18px; }
body.home-page .real-card, body.home-page .news-card { border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
body.home-page .real-img, body.home-page .news-img { height: 250px; }
body.home-page .real-body, body.home-page .news-body { padding: 26px; }

body.home-page .contact-grid { gap: 90px; }
body.home-page .contact-form {
  padding: 34px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
body.home-page input, body.home-page select, body.home-page textarea { border-radius: 12px; background: var(--bg-alt); }
body.home-page .submit-btn { border-radius: 14px; background: var(--primary); }
body.home-page .submit-btn:hover { background: var(--accent-dark); }
.form-help {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

/* Normalize legacy component colors across every page. */
.bg-light { background: var(--bg-alt) !important; }
.product-subtitle, .product-link, .news-link, .read-link,
.section-label span, .article-source i { color: var(--accent-dark); }
.section-label-bar { background: var(--accent); }
.tag, .real-tag, .news-cat, .article-tag, .featured-tag {
  color: var(--accent-dark);
  background: #e2f5f7;
  border-color: #bfe7eb;
}
.real-img-label, .article-date { background: rgba(6, 27, 43, .78); color: #fff; }
.contact-item-icon, .app-icon, .why-item-icon { color: var(--accent-dark); background: #e2f5f7; }
.app-card .app-icon {
  color: #fff;
  background: rgba(6, 27, 43, .58);
  border-color: rgba(255,255,255,.22);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.spec-box, .equip-card, .acc-card, .real-photo { border-color: var(--border); }
.norm-badge, .danger-box {
  color: var(--accent-dark) !important;
  background: #eaf7f8 !important;
  border-color: #bfe7eb !important;
}
.danger-box h3 { color: var(--accent-dark) !important; }
.danger-tag {
  color: var(--accent-dark) !important;
  background: #d9f0f3 !important;
}

@media (max-width: 1050px) {
  .brand-name { display: none; }
  nav a { padding: 10px 8px; font-size: .66rem; }
  body.home-page .hero-inner { gap: 36px; }
  body.home-page .hero-right { min-height: 520px; padding-top: 280px; }
}

@media (max-width: 768px) {
  header { top: 8px; width: calc(100% - 16px); border-radius: 15px; }
  nav.open { top: 74px; left: 8px; right: 8px; border-radius: 16px; padding: 14px 20px; }
  .breadcrumb { padding: 96px 20px 14px; }
  .hero-produit { padding: 70px 24px 80px; }
  .hero-produit h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  section.p-section { padding: 78px 22px; }
  .etapes-list { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  body.home-page .hero { min-height: auto; }
  body.home-page .hero-inner { grid-template-columns: 1fr; padding: 130px 22px 72px; }
  body.home-page .hero h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  body.home-page .hero-right { min-height: 540px; }
  body.home-page .products, body.home-page .process, body.home-page .applications,
  body.home-page .why, body.home-page .realisations, body.home-page .actualites, body.home-page .contact { padding: 82px 22px; }
  body.home-page .section-num { display: none; }
  body.home-page .why-inner { gap: 40px; }
  body.home-page .why-visual { padding: 30px; }
}

@media (max-width: 480px) {
  body.home-page .hero-right { min-height: auto; padding-top: 250px; grid-template-columns: 1fr 1fr; }
  body.home-page .hero-card { min-height: 92px; padding: 9px; }
  body.home-page .hero-card-icon { display: none; }
  body.home-page .hero-stats { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .featured-body { padding: 28px; }
}
