/* ==========================================================================
   HASS Conseil — Design System
   ========================================================================== */
:root{
  /* Palette extraite du logo HASS : bleu marine (H / HASS), cyan (traits), gris (arc), bordeaux (Mauritanie) */
  --navy: #22367a;
  --navy-dark: #141f47;
  --navy-light: #34479c;
  --accent: #0ca8e3;
  --accent-dark: #0a86b8;
  --accent-light: #dff3fb;
  --maroon: #520125;
  --maroon-dark: #3a011a;
  --gray: #646b76;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #22367a;
  --text-muted: #646b76;
  --border: #e4e7ec;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(34,54,122,.15);
  --shadow-lg: 0 25px 60px -15px rgba(34,54,122,.3);
  --container: 1180px;
  --font: 'Inter', 'Poppins', sans-serif;
  --font-head: 'Poppins', 'Inter', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5{
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
}
p{ margin: 0 0 1em; color: var(--text-muted); }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
svg{ width: 26px; height: 26px; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent{ color: var(--accent); }
.text-accent-light{ color: var(--accent); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(12,168,227,.5);
}
.btn-primary:hover{ background: var(--accent-dark); }
.btn-outline-light{
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-outline-light:hover{ background: rgba(255,255,255,.12); border-color:#fff; }
.btn-sm{ padding: 10px 20px; font-size: .85rem; }
.btn-block{ width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark{
  height: 34px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-mark.banner-logo{
  height: 32px;
  opacity: .95;
}
.logo-text{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text small{
  font-family: var(--font);
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--maroon);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav ul{ display: flex; gap: 2px; }
.nav-link{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active{ color: var(--navy); background: var(--bg-alt); }

.header-actions{ display: flex; align-items: center; gap: 14px; }

.lang-switch{
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px;
}
.lang-link{
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.lang-link:hover{ color: var(--navy); }
.lang-link.active{ background: var(--navy); color: #fff; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-alt);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display:block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy) 65%);
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-bg-shapes{ position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg-shapes .circle{
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.circle.c1{ width: 520px; height: 520px; right: -160px; top: -180px; }
.circle.c2{ width: 340px; height: 340px; right: 40px; bottom: -160px; border-color: rgba(12,168,227,.25); }
.line-grid{
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  background: rgba(12,168,227,.12);
  border: 1px solid rgba(12,168,227,.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--accent); }

.hero h1{
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 22px 0 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero-lead{
  color: rgba(255,255,255,.72);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats{ display: flex; gap: 40px; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; }
.stat-num{ font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label{ color: rgba(255,255,255,.6); font-size: .82rem; }

.hero-visual{ display: flex; justify-content: center; }
.hero-card{
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1.05;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(6px);
}
.hero-card-glow{
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(12,168,227,.35), transparent 70%);
  filter: blur(10px);
}
.hero-card-logo{
  position: relative;
  width: 62%;
  max-width: 210px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.35));
}
.hero-card-sub{
  position: relative;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  text-align: center;
  max-width: 220px;
  margin: 0;
}

/* ==========================================================================
   Sections / Banners
   ========================================================================== */
.section{ background: var(--bg); }
.section-alt{ background: var(--bg-alt); }
.section-alt .section-banner + .section-body{ background: var(--bg-alt); }

.section-banner{
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  padding: 46px 0;
}
.banner-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.banner-inner h2{
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.section-body{ padding: 60px 0 90px; }

.section-intro{
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  padding-inline-start: 20px;
  border-inline-start: 4px solid var(--accent);
  margin-bottom: 46px;
}
.section-intro.center{ margin-left: auto; margin-right: auto; text-align: center; border-inline-start: none; padding-inline-start: 0; }

.quote-bar{ display:none; }

/* ---------- Grids & Cards ---------- */
.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.align-top{ align-items: start; }

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.card-icon{
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon.icon-outline{ background: var(--bg-alt); color: var(--navy); }
.card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.card p{ margin: 0; font-size: .95rem; }

.card-top-accent{ border-top: 3px solid var(--accent); }
.card-bottom-accent{ border-bottom: 3px solid var(--accent); text-align: center; }
.card-bottom-accent .card-icon{ margin-left:auto; margin-right:auto; }

/* ---------- HPERFORM ---------- */
.block-title{
  font-size: 1.3rem;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 26px;
}
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: .97rem;
}
.check-ico{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.module-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.module-item{
  background: var(--bg-alt);
  border-inline-start: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 16px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy);
}
.tagline-italic{
  font-style: italic;
  color: var(--text-muted);
  font-size: .95rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ---------- Package ---------- */
.package-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.package-card{ flex: 1; text-align: center; }
.package-card .card-icon{ margin: 0 auto 18px; }
.package-plus{
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.banner-strip{
  background: var(--accent);
  padding: 26px 0;
  text-align: center;
}
.banner-strip p{
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}
.banner-strip .text-accent-light{ color: var(--navy-dark); }

/* ---------- Split hero (Oracle) ---------- */
.split-hero{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
}
.split-hero-left{
  background: var(--navy);
  color: #fff;
  padding: 70px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}
.split-icon{
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(12,168,227,.15);
  border: 1px solid rgba(12,168,227,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.split-icon svg{ width: 52px; height: 52px; }
.split-title{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .04em;
  margin: 0;
}
.split-hero-right{
  padding: 70px 60px;
  background: var(--bg-alt);
}
.split-hero-right h2{ margin-bottom: 34px; }
.line-item{
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.line-item:last-child{ border-bottom: 1px solid var(--border); }
.line-dot{
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 8px;
}
.line-item h4{ margin: 0 0 6px; font-size: 1.05rem; }
.line-item p{ margin: 0; font-size: .93rem; }

/* ---------- Pourquoi HASS ---------- */
.reason-list{ display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; }
.reason-item{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-inline-start: 4px solid var(--accent);
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  padding: 26px 30px;
  box-shadow: 0 4px 16px -8px rgba(34,54,122,.08);
}
.reason-icon{
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.reason-item h4{ margin: 0 0 6px; font-size: 1.1rem; }
.reason-item p{ margin: 0; }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info{ display: flex; flex-direction: column; gap: 22px; }
.contact-item{ display: flex; align-items: center; gap: 16px; }
.contact-icon{
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-label{ display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.contact-item a{ font-weight: 600; color: var(--navy); }
.contact-item a:hover{ color: var(--accent); }
.contact-item span:not(.contact-label){ font-weight: 600; color: var(--navy); }

.contact-form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group textarea{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-alt);
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12,168,227,.12);
  background: #fff;
}
.form-note{ margin: 14px 0 0; font-size: .88rem; text-align: center; color: var(--accent-dark); font-weight: 600; min-height: 1.2em; }
.form-note.error{ color: #d64545; }

.hp-field{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy-dark); color: rgba(255,255,255,.65); }
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-brand p{ color: rgba(255,255,255,.5); margin-top: 16px; max-width: 320px; font-size: .9rem; }
.footer-logo-img{ height: 52px; width: auto; }
.site-footer .logo-text{ color: #fff; }
.footer-links, .footer-contact{ display: flex; flex-direction: column; gap: 12px; }
.footer-links h5, .footer-contact h5{ color: #fff; font-size: .95rem; margin-bottom: 6px; }
.footer-links a, .footer-contact a, .footer-contact span{ color: rgba(255,255,255,.55); font-size: .9rem; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover{ color: var(--accent); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom p{ margin: 0; font-size: .82rem; text-align: center; color: rgba(255,255,255,.45); }

/* ==========================================================================
   Scroll top
   ========================================================================== */
.scroll-top{
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .25s;
  z-index: 400;
}
.scroll-top.visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover{ background: var(--accent); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .hero-card{ max-width: 260px; }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .split-hero{ grid-template-columns: 1fr; }
  .split-hero-left{ padding: 50px 30px; }
  .split-hero-right{ padding: 50px 30px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px){
  .main-nav{
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open{ max-height: 420px; }
  .main-nav ul{ flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .nav-link{ display: block; padding: 12px 14px; white-space: normal; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-sm{ display: none; }
}

@media (max-width: 760px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
  .module-grid{ grid-template-columns: 1fr; }
  .package-row{ flex-direction: column; }
  .package-plus{ transform: rotate(90deg); }
  .form-row{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; text-align: start; }
  .banner-inner h2{ font-size: 1.4rem; }
  .banner-logo{ display: none; }
}
