/* ===========================================================
   EGA-PRES SARL — Site vitrine
   Palette : bleu marine (#14365c) + vert (#7ab648)
   =========================================================== */

:root {
  --navy: #14365c;
  --navy-dark: #0e2740;
  --navy-light: #1b4a7a;
  --green: #7ab648;
  --green-dark: #5c9e2f;
  --ink: #1a2b3c;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --border: #e3e9ef;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 54, 92, .10);
  --shadow-lg: 0 20px 50px rgba(20, 54, 92, .16);
  --radius: 16px;
  --maxw: 1180px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title .accent { color: var(--green-dark); }

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(122,182,72,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ================= HEADER / NAV ================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(20,54,92,.08); border-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; flex: none; }
/* En-tête : emblème recadré depuis le logo complet */
.brand-emblem {
  width: 56px; height: 56px; flex: none;
  background-image: url('../assets/logo.png');
  background-repeat: no-repeat;
  background-size: 200% 200%;
  background-position: 50% 28%;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.brand-text .name { font-weight: 700; font-size: 1.28rem; color: var(--navy); letter-spacing: .5px; white-space: nowrap; }
.brand-text .name span { color: var(--green-dark); font-weight: 700; }
.brand-text .tag {
  font-size: .58rem;
  letter-spacing: .8px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 10px 22px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .3s; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 78px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(122,182,72,.22), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(27,74,122,.5), transparent 40%);
}
.hero-topo {
  position: absolute; right: -5%; top: 0; bottom: 0;
  width: 55%;
  opacity: .10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Ccircle cx='200' cy='200' r='40'/%3E%3Ccircle cx='200' cy='200' r='80'/%3E%3Ccircle cx='200' cy='200' r='120'/%3E%3Ccircle cx='200' cy='200' r='160'/%3E%3Ccircle cx='200' cy='200' r='200'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 500px;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(122,182,72,.16);
  border: 1px solid rgba(122,182,72,.4);
  color: #d6ecc2;
  padding: 8px 18px; border-radius: 50px;
  font-size: .82rem; font-weight: 500; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--green); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-tags span { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-tags svg { flex: none; }

/* ================= SERVICES ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--navy-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; margin-bottom: 22px;
}
.service-card:nth-child(even) .service-icon { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.service-card h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.about-visual .big-logo {
  width: 58%;
  background: #fff;
  border-radius: 50%;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  position: relative;
  z-index: 2;
}
.about-visual .glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,182,72,.35), transparent 70%);
  top: -40px; right: -40px;
}
.about-text .eyebrow { text-align: left; }
.about-text h2 { text-align: left; }
.about-text > p { color: var(--muted); margin-bottom: 26px; font-size: 1.03rem; }
.about-list { display: grid; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(122,182,72,.15); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.about-list strong { color: var(--navy); display: block; }
.about-list span { color: var(--muted); font-size: .93rem; }

/* ================= STATS ================= */
.stats {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 64px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 700; color: var(--green); line-height: 1; }
.stat .label { color: rgba(255,255,255,.8); font-size: .95rem; margin-top: 8px; }

/* ================= IMMOBILIER ================= */
.immo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.immo-card {
  background: #fff; border-radius: var(--radius);
  padding: 40px 30px; text-align: center;
  border: 1px solid var(--border);
  transition: transform .28s, box-shadow .28s;
}
.immo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.immo-card .immo-icon {
  width: 70px; height: 70px; margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(122,182,72,.14); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.immo-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 10px; }
.immo-card p { color: var(--muted); font-size: .96rem; }

/* ================= ENGAGEMENTS ================= */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value {
  text-align: center; padding: 34px 22px;
  border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value .v-icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.value h4 { color: var(--navy); margin-bottom: 8px; font-size: 1.08rem; }
.value p { color: var(--muted); font-size: .9rem; }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info h2 { text-align: left; }
.contact-info .eyebrow { text-align: left; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(20,54,92,.07); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-item .ci-value { font-weight: 600; color: var(--navy); }
.contact-item a.ci-value:hover { color: var(--green-dark); }

.contact-socials { display: flex; gap: 12px; margin-top: 30px; }
.contact-socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.contact-socials a:hover { background: var(--green); transform: translateY(-3px); }

.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  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: .88rem; font-weight: 500; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: .95rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg-soft);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(122,182,72,.15); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ================= FOOTER ================= */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer .brand-text .name { color: #fff; }
.footer .brand-text .tag { color: rgba(255,255,255,.55); }
.footer-brand {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.footer-brand img { height: 74px; width: auto; display: block; }
.footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 600; }
.footer-col p { font-size: .92rem; margin-bottom: 18px; max-width: 300px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { font-size: .92rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
}

/* ================= REVEAL ANIMATION ================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE ================= */

/* ---- Tablette paysage / petits écrans : masquer la baseline ---- */
@media (max-width: 1024px) {
  .brand-text .tag { display: none; }
  .nav-links { gap: 24px; }
}

/* ---- Tablette (portrait) & mobile : menu hamburger ---- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 78px; right: 0;
    width: 78%; max-width: 340px; height: calc(100vh - 78px);
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 36px 32px; gap: 22px;
    transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
    overflow-y: auto;
  }
  .nav-links a { font-size: 1.05rem; width: 100%; }
  .nav-links .nav-cta { width: 100%; justify-content: center; margin-top: 6px; }
  .nav-links.open { transform: translateX(0); }
  .burger { display: flex; }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
}

/* ---- Tablette : grilles 2 colonnes, sections empilées ---- */
@media (max-width: 960px) {
  .services-grid, .immo-grid, .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 34px; }
  .about-visual { min-height: 300px; order: -1; }
  .section { padding: 72px 0; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
}

/* ---- Tablette étroite : footer 2 colonnes ---- */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

/* ---- Mobile Android (téléphones) : tout en 1 colonne ---- */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .services-grid, .immo-grid, .values-grid, .stats-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-col:first-child { grid-column: auto; }
  .stats-grid { gap: 28px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.02rem; }
  .hero .badge { font-size: .74rem; padding: 7px 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-tags { gap: 8px 18px; }
  .section-head { margin-bottom: 40px; }
  .service-card, .immo-card { padding: 30px 24px; }
  .contact-form { padding: 26px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brand-text .name { font-size: 1.15rem; }
  .brand img { height: 46px; }
}

/* ---- Très petits écrans (≤360px) ---- */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.85rem; }
  .stat .num { font-size: 2.2rem; }
  .nav { height: 70px; }
  .header .nav { height: 70px; }
}
