/* ============================================================
   AVELSEN — Feuille de style principale
   Modifier les couleurs : section :root ci-dessous
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:        #0D2B5B;
  --navy-hover:  #1A3F7A;
  --orange:      #00CED1;
  --orange-hover:#00B5B8;
  --orange-bg:   #E6FAFA;
  --bg:          #FFFFFF;
  --gray-bg:     #F8FAFC;
  --border:      #E2E8F0;
  --text:        #0F172A;
  --muted:       #64748B;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:   0 8px 32px rgba(13,43,91,0.12);
  --shadow-lg:   0 16px 48px rgba(13,43,91,0.16);
  --radius:      12px;
  --radius-sm:   8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { color: var(--muted); line-height: 1.8; }
a  { color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.section    { padding: 6.5rem 0; }
.section--gray { background: var(--gray-bg); }

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 1rem 2.5rem;
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--navy) !important; color: white !important;
  padding: 0.55rem 1.35rem; border-radius: 6px;
  font-size: 0.85rem !important; transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--orange) !important; color: white !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero--inner {
  min-height: 520px;
  height: 68vh;
}
.hero--inner h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(13,43,91,0.97) 0%, rgba(13,43,91,0.78) 60%, rgba(0,206,209,0.12) 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,206,209,0.07) 0%, transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 {
  color: white; max-width: 720px;
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero p {
  color: rgba(255,255,255,0.68); max-width: 520px;
  margin: 1.5rem 0 2.75rem; font-size: 1.075rem; line-height: 1.75;
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem;
  opacity: 0.9;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 2.5rem; height: 2px; background: var(--orange);
  border-radius: 2px;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ---- BOUTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.825rem 1.85rem; border-radius: 7px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: all 0.22s; cursor: pointer; border: none; font-family: var(--font);
  letter-spacing: -0.01em;
}
.btn-white   { background: white; color: var(--navy); }
.btn-white:hover { background: rgba(255,255,255,0.92); box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }
.btn-orange  { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-hover); box-shadow: 0 4px 14px rgba(0,206,209,0.35); }
.btn-outline-white {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.45); }
.btn-dark  { background: var(--navy); color: white; }
.btn-dark:hover { background: var(--navy-hover); box-shadow: 0 4px 14px rgba(13,43,91,0.3); }
.arrow { transition: transform 0.2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- SECTION LABEL ---- */
.label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--orange); margin-bottom: 0.9rem;
}
.label::before { content: ''; display: block; width: 1.5rem; height: 2px; background: var(--orange); border-radius: 1px; }
.section-intro { max-width: 560px; margin-bottom: 3.5rem; }
.section-intro h2 { margin-bottom: 0.85rem; }
.section-intro p { font-size: 1rem; }

/* ---- CALLOUT CHIFFRES ---- */
.callout-band { background: var(--navy); padding: 0; }
.callout-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.callout-item {
  padding: 3.25rem 3rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s;
}
.callout-item:last-child { border-right: none; }
.callout-item:hover { background: rgba(255,255,255,0.04); }
.callout-num {
  font-size: 3.75rem; font-weight: 800; color: var(--orange);
  line-height: 1; letter-spacing: -0.03em;
}
.callout-label { color: rgba(255,255,255,0.5); font-size: 0.825rem; margin-top: 0.5rem; font-weight: 400; }

/* ---- MARKET CARDS ---- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.market-card {
  background: white; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.market-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.market-card-bar {
  width: 36px; height: 3px; background: var(--orange);
  margin-bottom: 1.35rem; border-radius: 2px;
}
.market-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.65rem; letter-spacing: -0.01em; }
.market-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.8; margin: 0; }

/* ---- CARDS EXPERTISES ---- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.expertise-card {
  display: block; text-decoration: none; color: var(--text);
  background: white; border-radius: var(--radius);
  overflow: hidden; transition: all 0.28s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.expertise-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.expertise-card:hover::after { transform: scaleX(1); }
.card-img {
  width: 100%; height: 200px; object-fit: cover;
  display: block; transition: transform 0.5s ease;
}
.expertise-card:hover .card-img { transform: scale(1.04); }
.expertise-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-body { padding: 2rem; }
.card-ico {
  width: 42px; height: 42px; background: var(--orange-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.expertise-card h3 { color: var(--navy); margin-bottom: 0.65rem; font-size: 1.1rem; }
.expertise-card p  { font-size: 0.875rem; margin-bottom: 1.35rem; line-height: 1.75; }
.card-cta { font-size: 0.8rem; font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---- APPROCHE / MISSIONS ---- */
.approche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5rem; align-items: center; }
.approche-img  { width: 100%; border-radius: var(--radius); height: 400px; object-fit: cover; display: block; box-shadow: var(--shadow-md); }
.approche-quote {
  font-size: 1.2rem; font-weight: 400; color: var(--text); line-height: 1.7;
  border-left: 3px solid var(--orange); padding-left: 1.5rem; margin: 1.75rem 0;
  font-style: italic;
}
.approche-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.75rem; }
.approche-item  { display: flex; gap: 1rem; align-items: flex-start; }
.a-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; margin-top: 0.6rem; flex-shrink: 0; }
.approche-item p { font-size: 0.9rem; color: var(--text); line-height: 1.75; }
.approche-item strong { color: var(--navy); font-weight: 600; }

/* ---- SECTEURS ---- */
.sectors { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2.25rem; }
.sector {
  padding: 0.5rem 1.25rem; border: 1.5px solid var(--border);
  border-radius: 100px; font-size: 0.85rem; color: var(--muted); font-weight: 500;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.sector:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }

/* ---- MISSIONS (pages métier) ---- */
.missions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.mission-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mission-card-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.mission-card-body { padding: 1.65rem; }
.mission-tag {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: var(--orange-bg); color: var(--orange);
  border-radius: 4px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.9rem;
}
.mission-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.6rem; }
.mission-card p  { font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.75; }
.uc-stack   { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  padding: 0.2rem 0.7rem; background: var(--gray-bg);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.7rem; color: var(--muted); font-weight: 500;
}

/* ---- PROFILS ---- */
.profils-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.profil-card {
  background: white; border-radius: var(--radius);
  padding: 1.65rem 1.35rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: all 0.22s;
}
.profil-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.profil-ico {
  width: 46px; height: 46px; background: var(--orange-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
  color: var(--orange);
}
.profil-card h4 { font-size: 0.875rem; color: var(--navy); margin-bottom: 0.45rem; }
.profil-card p  { font-size: 0.78rem; line-height: 1.65; }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--navy);
  background-size: cover; background-position: center;
  position: relative; padding: 7rem 0; text-align: center; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,91,0.94) 0%, rgba(13,43,91,0.85) 100%);
  z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: white; margin-bottom: 0.85rem; }
.cta-band p  { color: rgba(255,255,255,0.6); max-width: 440px; margin: 0 auto 2.5rem; font-size: 1rem; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; font-size: 0.825rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; color: var(--text);
  background: white; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(0,206,209,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; }

.ci-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.ci-ico {
  width: 44px; height: 44px; background: var(--orange-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-item h5 { font-size: 0.68rem; color: var(--muted); font-weight: 700; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.1em; }
.ci-item p  { font-size: 0.9rem; color: var(--text); }

/* ---- FOOTER ---- */
footer { background: var(--navy); padding: 4rem 0 1.75rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.825rem; margin-top: 1.25rem; max-width: 240px; line-height: 1.7; }
.footer-col h5 {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3); margin-bottom: 1.1rem; font-weight: 700;
}
.footer-col a {
  display: block; text-decoration: none;
  color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 1.75rem;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

/* ---- BANDE TOP ---- */
.orange-bar { height: 3px; background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 50%, var(--navy) 100%); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,.68,0,1), transform 0.6s cubic-bezier(.22,.68,0,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .expertise-grid  { grid-template-columns: 1fr; }
  .market-grid     { grid-template-columns: 1fr; }
  .approche-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .missions-grid   { grid-template-columns: 1fr; }
  .profils-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .callout-inner   { grid-template-columns: 1fr; }
}

/* ===== BURGER MENU ===== */
.nav-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px 4px; z-index: 200;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 700px) {
  .nav-burger { display: flex; }
  nav { position: relative; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border); gap: 0; z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 0.9rem 1.75rem; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text); }
  .nav-links li:last-child a { border-bottom: none; }
  .btn-nav { margin: 0.75rem 1.75rem 0 !important; display: inline-block !important; width: auto !important; text-align: center !important; }
  .hero { min-height: 75vh; }
  .section { padding: 4.5rem 0; }
  .container { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
}
