/* real-ec.com · couleurs prises dans le logo (#080878 marine, #f86000 orange) */
:root {
  --navy: #0b1278;
  --navy-deep: #070b4d;
  --orange: #f26a0f;
  --orange-deep: #d45808;
  --ink: #14162b;
  --muted: #5b5f73;
  --line: #e3e5ee;
  --paper: #ffffff;
  --mist: #f4f5fa;
  --max: 1180px;
  --radius: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; color: var(--navy-deep); }
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.nav .btn { color: #fff; padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 700; color: var(--navy); padding: 10px; cursor: pointer; }

/* Héros */
.hero { position: relative; color: #fff; background: var(--navy-deep) center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,11,77,.94) 0%, rgba(11,18,120,.78) 45%, rgba(11,18,120,.25) 100%); }
.hero .wrap { position: relative; padding: 120px 24px 130px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 20px; max-width: 600px; color: #dfe3ff; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .wrap { padding: 90px 24px 80px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }

/* Chiffres */
.stats { background: var(--navy); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 44px; font-weight: 800; line-height: 1; }
.stat b span { color: var(--orange); }
.stat small { display: block; margin-top: 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #c3c9f5; }

/* Sections */
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(7,11,77,.16); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.head { max-width: 760px; margin-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.card .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff1e7; color: var(--orange); font-weight: 800; margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin: 3px 0; }
.card.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.navy h3 { color: #fff; }
.card.navy p, .card.navy ul { color: #d4d8fb; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }

/* Projets */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.project .pic { aspect-ratio: 4/3; background: var(--navy) center/cover no-repeat; }
.project .pic.blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .04em; padding: 20px; text-align: center; }
.project .body { padding: 24px 24px 28px; }
.project .where { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.project p { color: var(--muted); margin: 0; }
.project-long { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.project-long:first-of-type { border-top: 0; }
.project-long ul { color: var(--muted); padding-left: 18px; }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 14px; }

/* Certifications */
.certs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
.certs img { height: 92px; width: auto; object-fit: contain; }

/* Postes */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.job { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.job .loc { font-size: 14px; color: var(--orange); font-weight: 700; }
.job p { color: var(--muted); flex: 1; }
.job .btn { align-self: flex-start; }

/* Bandeau d'appel */
.cta { background: var(--orange); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 64px 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #fff3ea; font-size: 18px; }
.cta .btn { background: #fff; color: var(--navy); }
.cta .btn:hover { background: var(--navy); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-grid .card a { font-weight: 700; font-size: 18px; text-decoration: none; }

/* Pied de page */
.foot { background: var(--navy-deep); color: #c3c9f5; padding: 64px 0 28px; font-size: 15px; }
.foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot .logo-card { display: inline-block; background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.foot .logo-card img { height: 44px; width: auto; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: 13px; }

/* Petits écrans */
@media (max-width: 960px) {
  .split, .project-long { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .cards, .cards.four, .projects, .contact-grid { grid-template-columns: 1fr 1fr; }
  .foot .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(7,11,77,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .brand img { height: 38px; }
  .hero .wrap { padding: 80px 16px 90px; }
  .page-hero .wrap { padding: 64px 16px 56px; }
  .hero p { font-size: 18px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.14); }
  .section { padding: 64px 0; }
  .cards, .cards.four, .projects, .contact-grid, .jobs, .foot .grid { grid-template-columns: 1fr; }
  .certs { gap: 28px; }
  .certs img { height: 70px; }
  .cta .wrap { padding: 48px 16px; }
}
