/* -------------------------------------------------------------
   SCIAMAP - DESIGN SYSTEM & STYLESHEET
   Inspiré par Smartfin Patrimoine, Djamo et Porteo BTP.
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

:root {
  /* Colors */
  --primary-dark: #07162c;
  --primary-dark-soft: #0c2340;
  --primary-dark-rgb: 7, 22, 44;
  --primary-light: #fafbfc;
  --white: #ffffff;
  
  --accent-gold: #c5a059;
  --accent-gold-hover: #b38d47;
  --accent-gold-soft: #fcf8ef;
  --accent-gold-rgb: 197, 160, 89;
  
  --accent-emerald: #0b3c33;
  --accent-emerald-soft: #e7f2f0;
  
  --text-main: #2d3748;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --text-white-soft: #e2e8f0;
  
  --border-color: #e2e8f0;
  --border-color-soft: #f1f5f9;
  --border-color-gold: rgba(197, 160, 89, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  --shadow-md: 0 12px 24px -4px rgba(7, 22, 44, 0.06), 0 4px 12px -2px rgba(7, 22, 44, 0.02);
  --shadow-lg: 0 24px 48px -8px rgba(7, 22, 44, 0.12), 0 8px 24px -4px rgba(7, 22, 44, 0.04);
  --shadow-gold: 0 14px 28px -4px rgba(197, 160, 89, 0.25);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
   BASE & RESET
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* Custom Selection */
::selection {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

/* -------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: clamp(42px, 5.8vw, 66px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  position: relative;
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}

h4 {
  font-size: 18px;
  font-weight: 700;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ecd39d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-navy {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------- */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section.compact {
  padding: 60px 0;
}

.bg-paper {
  background-color: var(--primary-light);
}

.bg-navy {
  background-color: var(--primary-dark);
  color: var(--white);
}

.bg-navy h2, .bg-navy h3, .bg-navy h4 {
  color: var(--white);
}

.bg-gold-soft {
  background-color: var(--accent-gold-soft);
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: 30px;
}

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

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

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

.split-asymmetric {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: stretch;
}

/* -------------------------------------------------------------
   NAVIGATION HEADER (GLASSMORPHIC)
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  pointer-events: none;
  padding: 16px 0;
  transition: var(--transition-normal);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 0 28px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  transition: var(--transition-normal);
  position: relative;
  z-index: 1;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  z-index: -1;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 110;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-emerald));
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(7, 22, 44, 0.12);
}

.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
  display: block;
  transition: var(--transition-fast);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.brand-logo:hover {
  transform: scale(1.02);
  border-color: var(--accent-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  line-height: 1.1;
}

.brand-text small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (min-width: 901px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  
  .brand {
    justify-self: start;
  }
  
  .nav-menu {
    display: contents;
  }
  
  .nav-links {
    justify-self: center;
  }
  
  .nav-btn-contact {
    justify-self: end;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  position: relative;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 50px;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-dark);
  background: rgba(7, 22, 44, 0.05);
}

.nav-links a.active {
  color: var(--white);
  background: var(--primary-dark);
  box-shadow: none;
}

.nav-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  background-color: var(--primary-dark);
  color: var(--white);
  border: 1px solid var(--primary-dark);
  cursor: pointer;
  transition: var(--transition-normal);
}

.nav-btn-contact:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav-btn-contact.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 8px;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-gold {
  color: var(--primary-dark);
  background: linear-gradient(135deg, #e5c17d 0%, var(--accent-gold) 100%);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  box-shadow: 0 18px 32px -4px rgba(197, 160, 89, 0.35);
}

.btn-navy {
  color: var(--white);
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 20px -3px rgba(7, 22, 44, 0.15);
}

.btn-navy:hover {
  background-color: var(--primary-dark-soft);
  box-shadow: 0 14px 28px -4px rgba(7, 22, 44, 0.25);
}

.btn-outline-white {
  color: var(--white);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline-gold {
  color: var(--accent-gold);
  background-color: transparent;
  border-color: var(--accent-gold);
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold-soft);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   BADGES (EYEBROW)
   ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 50px;
  margin-bottom: 20px;
}

.eyebrow-gold {
  color: var(--accent-gold);
  background-color: var(--accent-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.15);
}

.eyebrow-emerald {
  color: #125e4c;
  background-color: var(--accent-emerald-soft);
  box-shadow: inset 0 0 0 1px rgba(11, 60, 51, 0.15);
}

.eyebrow-white {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------
   HERO SECTIONS
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--primary-dark);
  padding-top: 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(11, 60, 51, 0.2) 0%, transparent 50%),
    linear-gradient(90deg, rgba(7, 22, 44, 0.95) 0%, rgba(7, 22, 44, 0.8) 50%, rgba(7, 22, 44, 0.2) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-text {
  max-width: 720px;
}

.hero-text p.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-white-soft);
  margin-top: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* Inner Page Hero */
.hero-page {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--primary-dark);
  padding-top: 100px;
}

.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 70% 30%, rgba(197, 160, 89, 0.12) 0%, transparent 45%),
    linear-gradient(to right, rgba(7, 22, 44, 0.98) 30%, rgba(7, 22, 44, 0.6) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* -------------------------------------------------------------
   METRICS SECTION
   ------------------------------------------------------------- */
.metrics-row {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  margin-bottom: 40px;
}

.metric-card {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border-color-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--primary-dark));
  opacity: 0;
  transition: var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(7, 22, 44, 0.15);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--primary-dark);
  line-height: 1;
  font-weight: 700;
}

.metric-card .number-suffix {
  color: var(--accent-gold);
}

.metric-card span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 14px;
}

.metric-card p {
  font-size: 14px;
  color: var(--text-main);
  margin-top: 8px;
}

/* -------------------------------------------------------------
   CARDS & EXPERTISES
   ------------------------------------------------------------- */
.section-header {
  max-width: 700px;
  margin-bottom: 64px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
}

.bg-navy .section-header p {
  color: var(--text-white-soft);
}

/* Service Cards */
.card-service {
  padding: 40px;
  background-color: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-lg);
}

.card-service .icon-wrapper {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background-color: var(--accent-gold-soft);
  border-radius: 14px;
  margin-bottom: 28px;
  transition: var(--transition-fast);
}

.card-service:hover .icon-wrapper {
  color: var(--white);
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.card-service h3 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.card-service p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.card-service ul {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-service li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.card-service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c5a059'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Featured Service Card (Navy style) */
.card-service.featured {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-soft) 100%);
  border-color: transparent;
  color: var(--white);
}

.card-service.featured h3 {
  color: var(--white);
}

.card-service.featured p {
  color: var(--text-white-soft);
}

.card-service.featured .icon-wrapper {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-service.featured:hover .icon-wrapper {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.card-service.featured li {
  color: var(--text-white-soft);
}

.card-service.featured li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------
   IMAGE PANELS & MESH LAYOUT
   ------------------------------------------------------------- */
.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  height: 100%;
  min-height: 450px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-grow: 1;
}

/* Floating info badge on image */
.image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.image-badge strong {
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.image-badge span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Beautiful Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checklist-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-soft);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.checklist-text {
  font-size: 15px;
  font-weight: 500;
}

/* -------------------------------------------------------------
   METHOD / TIMELINE PROCESS (Page Services/Accueil)
   ------------------------------------------------------------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 10px;
}

.process-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  background-color: var(--white);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.process-step:hover .process-number {
  color: var(--white);
  background-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   ACCORDION (FAQ)
   ------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  padding: 24px 30px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.faq-trigger h3 {
  font-size: 17px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-dark);
  margin: 0;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent-gold);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content-inner {
  padding: 0 30px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Active State Accordion */
.faq-item.active {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-soft);
}

.faq-item.active .faq-trigger h3 {
  color: var(--primary-dark);
  font-weight: 700;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* -------------------------------------------------------------
   CONTACT FORM & INFO
   ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  padding: 30px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition-normal);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-gold-soft);
  color: var(--accent-gold);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-info-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-info-text a {
  font-weight: 600;
  color: var(--primary-dark);
}

.contact-info-text a:hover {
  color: var(--accent-gold);
}

/* Elegant Form */
.contact-form-wrapper {
  padding: 44px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-dark));
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  font-size: 15px;
  color: var(--text-main);
  background-color: var(--primary-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

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

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* -------------------------------------------------------------
   VALEURS & CERTIFICATE STYLING (À Propos)
   ------------------------------------------------------------- */
.card-value {
  padding: 34px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card-value:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: var(--shadow-lg);
}

.card-value-number {
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 14px;
  line-height: 1;
}

.card-value h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.card-value p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Certificate Layout for Administrative info */
.certificate-card {
  background-color: var(--white);
  border: 2px solid var(--accent-gold);
  padding: 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.certificate-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  pointer-events: none;
}

.certificate-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.certificate-logo {
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

.certificate-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.certificate-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.certificate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.certificate-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.certificate-value {
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: right;
}

/* -------------------------------------------------------------
   FOOTER (RICH FOOTER)
   ------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--text-white-soft);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-column-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
}

.footer-column h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-white-soft);
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.newsletter-form {
  display: flex;
  margin-top: 16px;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 10px 14px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn-newsletter {
  padding: 10px 18px;
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-form .btn-newsletter:hover {
  background-color: var(--accent-gold-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* -------------------------------------------------------------
   MEDIA QUERIES (RESPONSIVE)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-column-newsletter {
    grid-column: span 2;
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .split-asymmetric {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .metrics-row {
    margin-top: -40px;
  }
  
  .hero {
    padding-top: 90px;
  }

  .hero-page {
    padding-top: 90px;
  }

  .hero-inner {
    padding: 60px 0;
  }
  
  /* Header navigation mobile styling */
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 99;
    overflow-y: auto;
    pointer-events: auto;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 20px;
    padding: 10px 24px;
    text-align: center;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-menu .nav-btn-contact {
    width: auto;
    min-width: 200px;
    margin-top: 10px;
    padding: 14px 28px;
    font-size: 16px;
    text-align: center;
  }
  
  /* Hamburger animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .image-wrapper {
    min-height: 320px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 80px;
  }

  .hero-page {
    padding-top: 80px;
  }

  .hero-inner {
    padding: 50px 0;
  }
  
  .metrics-row {
    margin-top: -30px;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
  
  .certificate-card {
    padding: 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-column-newsletter {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   PREMIUM ANIMATIONS & EFFECTS
   ------------------------------------------------------------- */

/* Button shine sweep reflection */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover::after {
  left: 125%;
}

/* Image Hover Zoom */
.image-wrapper {
  overflow: hidden;
}

.image-wrapper img {
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Hero Entrance Fade-in keyframes */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text .eyebrow,
.hero-text h1,
.hero-text p.lead,
.hero-text .hero-actions {
  opacity: 0;
  animation: heroFadeInUp 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-text .eyebrow {
  animation-delay: 0.15s;
}

.hero-text h1 {
  animation-delay: 0.3s;
}

.hero-text p.lead {
  animation-delay: 0.45s;
}

.hero-text .hero-actions {
  animation-delay: 0.6s;
}

/* Scroll reveal utility states */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: 
    opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left {
  transform: translateX(-45px);
}

.reveal-right {
  transform: translateX(45px);
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* Pulse animation on gold accent elements */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
  }
}

.btn-gold:hover {
  animation: pulseGlow 1.5s infinite;
}

/* -------------------------------------------------------------
   PREMIUM REFONTE STYLES (Inspiration Smartfin)
   ------------------------------------------------------------- */

/* Background dot grid pattern */
.bg-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 160, 89, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* Glow halos container and circles */
.glow-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.09;
  pointer-events: none;
}

.glow-navy {
  background-color: var(--primary-dark);
}

.glow-gold {
  background-color: var(--accent-gold);
}

.glow-emerald {
  background-color: var(--accent-emerald);
}

/* Live pulsing dot inside eyebrows */
.ping-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
}

.ping-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-gold);
  animation: badgePing 1.8s ease-in-out infinite;
}

.eyebrow-emerald .ping-dot {
  background-color: #125e4c;
}
.eyebrow-emerald .ping-dot::after {
  background-color: #125e4c;
}

.eyebrow-white .ping-dot {
  background-color: var(--white);
}
.eyebrow-white .ping-dot::after {
  background-color: var(--white);
}

@keyframes badgePing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Premium Image container with relative positioning for floating cards */
.image-container-premium {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Floating Card Statistics */
.floating-card-stat {
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(7, 22, 44, 0.08);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: floatStat 4s ease-in-out infinite;
  pointer-events: none;
}

.floating-card-stat.pos-top-left {
  top: 20px;
  left: -20px;
}

.floating-card-stat.pos-bottom-right {
  bottom: 30px;
  right: -20px;
  animation-delay: 2s;
}

.floating-card-stat.pos-top-right {
  top: 20px;
  right: -20px;
}

.floating-card-stat.pos-bottom-left {
  bottom: 30px;
  left: -20px;
  animation-delay: 2s;
}

.floating-card-stat .icon-box-small {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--accent-gold);
}

.floating-card-stat .icon-box-small.emerald {
  background: var(--accent-emerald-soft);
  color: #125e4c;
}

.floating-card-stat .text-box {
  display: flex;
  flex-direction: column;
}

.floating-card-stat .text-box .label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.floating-card-stat .text-box .value {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 3px;
  line-height: 1.1;
}

@keyframes floatStat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Specific styling for immatriculation / identity card */
.certificate-premium {
  border: 1px solid rgba(197, 160, 89, 0.25) !important;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-gold-soft) 100%) !important;
  position: relative;
}

.certificate-premium::after {
  content: "OFFICIEL";
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(197, 160, 89, 0.05);
  transform: rotate(-15deg);
  pointer-events: none;
  font-family: Geist, "Geist Fallback", system-ui, sans-serif;
}

/* Adjust timeline connection line */
.process-timeline::before {
  background: linear-gradient(to right, var(--accent-gold), var(--accent-emerald), var(--primary-dark)) !important;
}

/* Hide floating cards on small screens to avoid clipping */
@media (max-width: 900px) {
  .floating-card-stat {
    display: none !important;
  }
  .hero-showcase-wrapper {
    display: none !important;
  }
}

