/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600;700&display=swap");

/* Global variables */
:root {
  --color-primary: #0c305c;
  --color-primary-dark: #061a33;
  --color-accent: #e6b68a;
  --color-bg: #f5f6fb;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(7, 24, 55, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ---------- Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1f4f8f 0, #020617 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  letter-spacing: 0.6rem;
  color: #ffffff;
  position: relative;
  text-transform: uppercase;
}

.preloader-logo span {
  font-weight: 700;
}

.preloader-logo::before,
.preloader-logo::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 80px;
  background: rgba(255, 255, 255, 0.55);
  top: 50%;
  transform: translateY(-50%);
}

.preloader-logo::before {
  right: 100%;
  margin-right: 24px;
}

.preloader-logo::after {
  left: 100%;
  margin-left: 24px;
}

.preloader-logo {
  animation: glow 1.6s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2),
      0 0 18px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.4rem;
  }
  to {
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.7);
    letter-spacing: 0.75rem;
  }
}

/* ---------- Layout ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 26, 51, 0.94);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo {
  height: 42px;
  width: auto;
}

.navbar-brand-text {
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.1;
}

.navbar-brand-text strong {
  display: block;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.navbar-menu a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), #ffffff);
  transition: width 0.25s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

/* Dropdown for "Nos Services" */

.nav-item-has-children {
  position: relative;
}

.nav-item-has-children > button {
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 0.93rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.35rem 0;
}

.nav-item-has-children > button i {
  font-size: 0.78rem;
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 260px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  padding: 0.6rem 0.3rem;
  display: none;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--color-text);
  font-size: 0.9rem;
}

.nav-dropdown a i {
  color: var(--color-primary);
}

.nav-dropdown a:hover {
  background: #f3f4ff;
}

.nav-item-has-children.open .nav-dropdown {
  display: block;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: #e5e7eb;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Banner / Hero ---------- */

.page-hero {
  position: relative;
  color: #ffffff;
  padding: 90px 0 80px;
  overflow: hidden;
}

.page-hero.home {
  padding: 110px 0 100px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(3, 18, 41, 0.86),
      rgba(12, 48, 92, 0.9)
    ),
    url("../assets/img/banner-accueil.png") center/cover no-repeat;
  z-index: -2;
}

/* page-specific backgrounds via body class */
body.page-a-propos .page-hero::before {
  background: linear-gradient(
      135deg,
      rgba(3, 18, 41, 0.82),
      rgba(12, 48, 92, 0.9)
    ),
    url("../assets/img/banner-a-propos.png") center/cover no-repeat;
}

body.page-nos-solutions .page-hero::before {
  background: linear-gradient(
      135deg,
      rgba(3, 18, 41, 0.85),
      rgba(12, 48, 92, 0.92)
    ),
    url("../assets/img/banner-vision.png") center/cover no-repeat;
}

body.page-nos-services .page-hero::before,
body.page-service .page-hero::before {
  background: linear-gradient(
      135deg,
      rgba(3, 18, 41, 0.88),
      rgba(12, 48, 92, 0.95)
    ),
    url("../assets/img/banner-nos-services.png") center/cover no-repeat;
}

body.page-contact .page-hero::before {
  background: linear-gradient(
      135deg,
      rgba(3, 18, 41, 0.87),
      rgba(12, 48, 92, 0.97)
    ),
    url("../assets/img/banner-generic-services.png") center/cover no-repeat;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 2.5rem;
}

.page-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  margin: 0 0 0.75rem;
}

.page-hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 1.1rem;
}

.page-hero p {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #e5e7eb;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.hero-pill i {
  font-size: 0.78rem;
  color: var(--color-accent);
}

/* Hero CTA buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.btn-outline {
  border: 1px solid rgba(226, 232, 240, 0.7);
  color: #e5e7eb;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.6);
}

.btn i {
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 70px 0;
}

.section-alt {
  background: #ffffff;
}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.section-lead {
  font-size: 0.96rem;
  color: var(--color-muted);
  max-width: 48rem;
}

/* 2-column content */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.93rem;
  color: var(--color-muted);
}

/* Icon circle */

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 182, 138, 0.12);
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

/* Service list */

.service-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-left: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.service-list li i {
  color: var(--color-accent);
  margin-top: 0.2rem;
}

/* Definition list */

.bullet-list {
  margin: 0.7rem 0 0;
  padding-left: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

/* CTA strip */

.section-cta-strip {
  background: var(--color-primary);
  color: #ffffff;
  padding: 40px 0;
}

.section-cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  justify-content: space-between;
}

.section-cta-strip h2 {
  margin: 0;
  font-size: 1.3rem;
}

.section-cta-strip p {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* Founder */

.founder-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.founder-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.7);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.contact-item i {
  margin-top: 0.2rem;
  color: var(--color-accent);
}

.contact-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */

footer {
  padding: 25px 0 18px;
  background: #020617;
  color: #9ca3af;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .navbar-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(6, 26, 51, 0.98);
    flex-direction: column;
    padding: 0.8rem 1.2rem 1rem;
    transform: translateY(-8px);
    display: none;
  }

  .navbar-menu.open {
    display: flex;
  }

  .nav-item-has-children {
    width: 100%;
  }

  .nav-item-has-children > button {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0.2rem 0 0.4rem;
    background: transparent;
  }

  .nav-dropdown a {
    color: #e5e7eb;
    padding-left: 1.4rem;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 80px 0 70px;
  }

  .page-hero-title {
    font-size: 2.1rem;
  }
}
.nav-dropdown{
  display:none;
}

.nav-dropdown.show{
  display:block;
}
