/* ============================================================
   URBI ORBI ENERGIES
   Navy #0A1E3F · Blue #0077C8 · Green #2BAA4B
   Orange #F7941D · Gray #6C757D
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #fff; overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── PHOTO LOGO OVERLAY ── */
.act-photo,
.apropos-photo,
.parc-photo { position: relative; overflow: hidden; }

.photo-logo {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 72px;
  height: auto;
  opacity: 0.70;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 3;
}
.act-section:hover .photo-logo,
.apropos-section:hover .photo-logo,
.parc-section:hover .photo-logo { opacity: 0.90; }

/* ── TYPO ── */
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; line-height: 1.18; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #0077C8; margin-bottom: 14px; }
p  { line-height: 1.78; color: #4a5568; font-size: 1rem; }

.eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F7941D;
  margin-bottom: 16px;
}
.eyebrow.light { color: rgba(255,255,255,0.5); }

/* ── TAGS ── */
.act-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.act-tag.blue   { background: #0077C8; color: #fff; }
.act-tag.green  { background: #2BAA4B; color: #fff; }
.act-tag.gray   { background: #6C757D; color: #fff; }
.act-tag.orange { background: #F7941D; color: #fff; }

/* ── BUTTONS ── */
.btn-prim {
  display: inline-block;
  background: #F7941D;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding: 15px 38px;
  border-radius: 3px;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  border: none; cursor: pointer;
}
.btn-prim:hover {
  background: #e07c0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247,148,29,0.35);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 13px 36px;
  border-radius: 3px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.22s, background 0.22s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-full { width: 100%; text-align: center; display: block; }


/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: #0A1E3F;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 96px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-wrap img { height: 88px; width: auto; object-fit: contain; }
.nav-links {
  display: flex; align-items: center; gap: 40px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.4px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #F7941D; }
.nav-btn {
  background: #F7941D !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 3px;
}
.nav-btn:hover { background: #e07c0a !important; color: #fff !important; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.25s; }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,63,0.90) 0%, rgba(10,30,63,0.65) 55%, rgba(10,30,63,0.40) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  width: 100%; padding-top: 96px;
}
.tag-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-body h1 { color: #fff; max-width: 700px; margin-bottom: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 48px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-sub strong { color: #F7941D; font-weight: 700; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-anchor {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2.4s ease-in-out infinite;
}
.hero-anchor svg { width: 28px; height: 28px; opacity: 0.5; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }


/* ════════════════════════════════════════
   KPI BAND
════════════════════════════════════════ */
.kpi-band { background: #0A1E3F; border-bottom: 1px solid rgba(255,255,255,0.07); }
.kpi-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-left: 1px solid rgba(255,255,255,0.07);
}
.kpi {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 6px;
}
.kpi strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: #fff;
}
.kpi span { font-size: 0.8rem; color: rgba(255,255,255,0.45); }


/* ════════════════════════════════════════
   ACTIVITÉS — sections alternées
════════════════════════════════════════ */
.act-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.act-section.reverse { }

.act-photo {
  position: relative; overflow: hidden;
}
.act-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: transform 0.6s ease;
}
.act-section:hover .act-photo img { transform: scale(1.04); }

/* Place photo left or right */
.act-photo.left  { order: 1; }
.act-text.right  { order: 2; }
.act-photo.right { order: 2; }
.act-text.left   { order: 1; }

.act-text {
  background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 64px;
}
.act-section.reverse .act-text { background: #f7f8fc; }

.act-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 4.5rem; font-weight: 800;
  color: rgba(0,119,200,0.07);
  line-height: 1;
  display: block;
  margin-bottom: -12px;
}
.act-text h2 { color: #0A1E3F; margin-bottom: 18px; }
.act-text p  { margin-bottom: 22px; max-width: 420px; }
.act-text ul { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.act-text ul li {
  font-size: 0.93rem; color: #4a5568;
  padding-left: 20px; position: relative; line-height: 1.6;
}
.act-text ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 7px; height: 1.5px;
  background: #F7941D;
}

/* Solar — pleine largeur */
.act-full-solar {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
}
.solar-media {
  position: absolute; inset: 0;
}
.solar-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.solar-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,63,0.92) 0%, rgba(10,30,63,0.70) 55%, rgba(10,30,63,0.40) 100%);
}
.solar-content {
  position: relative; z-index: 2;
  max-width: 560px;
  padding: 80px 32px;
}
.solar-content h2  { color: #fff; margin-bottom: 16px; }
.solar-content p   { color: rgba(255,255,255,0.72); margin-bottom: 20px; }
.solar-content ul  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.solar-content ul li {
  font-size: 0.93rem; color: rgba(255,255,255,0.65);
  padding-left: 20px; position: relative;
}
.solar-content ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 7px; height: 1.5px; background: #F7941D;
}


/* ════════════════════════════════════════
   À PROPOS
════════════════════════════════════════ */
.apropos-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.apropos-photo { position: relative; overflow: hidden; }
.apropos-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.apropos-content {
  background: #0A1E3F;
  display: flex; align-items: center;
}
.apropos-inner {
  padding: 80px 64px;
  max-width: 540px;
}
.apropos-inner h2     { color: #fff; margin-bottom: 20px; }
.apropos-inner p      { color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.competences          { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.comp-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.92rem; color: rgba(255,255,255,0.7);
}
.comp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #F7941D; flex-shrink: 0; margin-top: 6px;
}


/* ════════════════════════════════════════
   NOTRE PARC
════════════════════════════════════════ */
.parc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.parc-photo { position: relative; overflow: hidden; }
.parc-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.parc-content {
  background: #f7f8fc;
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.parc-content h2 { color: #0A1E3F; margin-bottom: 10px; }
.parc-content > p { margin-bottom: 36px; }
.parc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dot-list { display: flex; flex-direction: column; gap: 10px; }
.dot-list li {
  font-size: 0.9rem; color: #4a5568;
  padding-left: 18px; position: relative; line-height: 1.55;
}
.dot-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%; background: #0077C8;
}


/* ════════════════════════════════════════
   RÉFÉRENCES
════════════════════════════════════════ */
.refs-section { background: #0A1E3F; padding: 96px 0; }
.refs-head {
  text-align: center; margin-bottom: 56px;
}
.refs-head h2 { color: #fff; margin-bottom: 12px; }
.refs-head p  { color: rgba(255,255,255,0.5); max-width: 480px; margin: 0 auto; }

.refs-grid {
  display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
}
.ref-logo {
  background: #fff;
  border-radius: 10px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 100px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ref-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.ref-logo img {
  max-width: 130px;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-section { padding: 96px 0; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
}
.contact-left h2   { color: #0A1E3F; margin-bottom: 40px; }
.contact-details   { display: flex; flex-direction: column; gap: 28px; }
.cd-row            { display: flex; flex-direction: column; gap: 4px; }
.cd-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #F7941D;
}
.cd-val            { font-size: 0.93rem; color: #3a4560; line-height: 1.7; }
.cd-val a          { color: #0077C8; transition: color 0.2s; }
.cd-val a:hover    { color: #F7941D; }

/* Form */
.contact-form {
  background: #f7f8fc;
  padding: 48px;
  border-radius: 4px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.f-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #0A1E3F;
}
.f-field input,
.f-field select,
.f-field textarea {
  padding: 13px 16px;
  border: 1.5px solid #dde3ef;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem; color: #1a1a2e;
  background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  border-color: #0077C8;
  box-shadow: 0 0 0 3px rgba(0,119,200,0.09);
}
.f-field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.74rem; color: #9aa3b5;
  margin-top: 14px; text-align: center;
}


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: #060e1e; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 56px;
  padding: 72px 32px 56px;
  max-width: 1200px; margin: 0 auto;
}
.footer-logo {
  height: 100px; width: auto; object-fit: contain;
  margin-bottom: 18px;
}
.footer-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: #F7941D; margin-bottom: 8px;
}
.footer-addr { font-size: 0.8rem; color: rgba(255,255,255,0.28); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 6px;
}
.footer-col a    { font-size: 0.87rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: #F7941D; }
.footer-col span { font-size: 0.87rem; color: rgba(255,255,255,0.55); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
}
.footer-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bar span { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-bar a    { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bar a:hover { color: #F7941D; }


/* ════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════ */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 44px; height: 44px;
  background: #0A1E3F; color: #fff; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover   { transform: translateY(-2px); background: #F7941D; border-color: #F7941D; }


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .act-section,
  .apropos-section,
  .parc-section { grid-template-columns: 1fr; }

  .act-photo.left, .act-text.right,
  .act-photo.right,.act-text.left  { order: unset; }
  .act-section { grid-template-rows: 380px auto; }
  .act-photo { height: 380px; }
  .act-text { padding: 52px 40px; }
  .act-num  { font-size: 3rem; }

  .apropos-photo { height: 400px; }
  .apropos-inner { padding: 56px 40px; max-width: 100%; }

  .parc-photo   { height: 360px; }
  .parc-content { padding: 52px 40px; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; gap: 28px;
    position: fixed; inset: 0; background: #0A1E3F;
    padding: 120px 40px 40px; z-index: 99; align-items: flex-start;
  }
  .nav-links.open    { display: flex; }
  .nav-links a       { font-size: 1.1rem; }
  .burger            { display: flex; z-index: 101; }
  .hero-ctas         { flex-direction: column; align-items: flex-start; }
  .kpi-grid          { grid-template-columns: 1fr 1fr; }
  .act-section       { grid-template-rows: 300px auto; }
  .act-photo         { height: 300px; }
  .act-text          { padding: 40px 28px; }
  .solar-content     { padding: 56px 28px; }
  .parc-cols         { grid-template-columns: 1fr; gap: 24px; }
  .f-row             { grid-template-columns: 1fr; }
  .contact-form      { padding: 28px; }
  .footer-inner      { grid-template-columns: 1fr; gap: 36px; padding: 48px 28px 40px; }
  .footer-bar .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .kpi-grid  { grid-template-columns: 1fr; }
  .refs-grid { gap: 8px; }
  .ref-logo  { padding: 14px 22px; font-size: 0.8rem; }
}
