/* ============================================================
   e-neoConsultants — Feuille de style principale
   ============================================================
   Table des matières :
   1.  Variables & Reset
   2.  Typographie & Utilitaires
   3.  Boutons
   4.  Header / Navigation
   5.  Hero
   6.  À Propos
   7.  Services
   8.  Solutions Digitales
   9.  Formations
   10. Paradigme Entreprise Freedom
   11. Contact
   12. Footer
   13. Animations
   14. Responsive
   ============================================================ */

/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
  --navy:        #1a2a5e;
  --navy-dark:   #111d45;
  --orange:      #f5a623;
  --orange-dark: #e09010;
  --white:       #ffffff;
  --light:       #f8f9fa;
  --text:        #2d3748;
  --text-light:  #718096;
  --border:      #e2e8f0;
  --shadow:      0 4px 20px rgba(26,42,94,0.10);
  --shadow-lg:   0 8px 40px rgba(26,42,94,0.18);
  --radius:      12px;
  --transition:  all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }


/* ============================================================
   2. TYPOGRAPHIE & UTILITAIRES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }
.highlight { color: var(--orange); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-subtitle { margin: 0 auto; }


/* ============================================================
   3. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,0.4);
}
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
}
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }


/* ============================================================
   4. HEADER / NAVIGATION
   ============================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 20px rgba(26,42,94,0.12); }

nav.topnav {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.logo-text span { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-weight: 500; font-size: 0.88rem;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange); transition: width 0.3s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem; border-radius: 50px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 999; padding: 1.5rem 2rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem;
  padding: 0.6rem 0; display: block; border-bottom: 1px solid var(--border);
}


/* ============================================================
   5. HERO
   ============================================================ */
#accueil {
  min-height: 100vh;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpath d='M40 4L76 24v44L40 88 4 68V24z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/%3E%3C/svg%3E");
  display: flex; align-items: center; padding: 6rem 0;
  position: relative; overflow: hidden;
}
#accueil::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,166,35,0.15); color: var(--orange);
  padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--orange); }

.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem; letter-spacing: 0.03em;
}
.hero-sub .dot { color: rgba(255,255,255,0.3); margin: 0 0.4rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.35); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0%,100%{ opacity:.3 } 50%{ opacity:1 } }


/* ============================================================
   6. À PROPOS
   ============================================================ */
#a-propos { background: var(--white); }

.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: start; }

.about-left { position: sticky; top: 90px; }

.about-avatar {
  width: 100%; aspect-ratio: 1; max-width: 300px;
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a9e 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  font-size: 5rem; font-weight: 800; color: rgba(255,255,255,0.12);
}
.about-avatar::after { content: 'JM'; }
.avatar-corner {
  position: absolute; bottom: 0; right: 0; width: 35%; height: 35%;
  background: var(--orange); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.about-name { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.about-badge {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.stat-card {
  background: var(--light); border-radius: 10px; padding: 1.1rem;
  text-align: center; border-left: 3px solid var(--orange);
}
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-text { font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 0.72rem; color: var(--text-light); margin-top: 0.3rem; font-weight: 500; }

.about-bio p { margin-bottom: 1.2rem; }

.paradigme-box {
  background: linear-gradient(135deg, var(--navy), #2d4a9e);
  border-left: 4px solid var(--orange); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 1.5rem 0;
}
.paradigme-box p { color: rgba(255,255,255,0.85) !important; font-style: italic; margin: 0 !important; }
.paradigme-box strong { color: var(--orange); }

.companies { list-style: none; margin: 0.5rem 0 2rem; }
.companies li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.companies li:last-child { border-bottom: none; }
.co-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; margin-top: 0.55rem; flex-shrink: 0; }
.co-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.co-desc { font-size: 0.85rem; color: var(--text-light); }

.certs-label { font-size: 0.8rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.certs-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-tag { background: var(--navy); color: var(--white); font-size: 0.73rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 50px; }


/* ============================================================
   7. SERVICES
   ============================================================ */
#services { background: var(--light); }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }

.svc-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
  transition: var(--transition); position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--orange));
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 56px; height: 56px;
  background: rgba(26,42,94,0.07); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem;
}
.svc-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.svc-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.svc-list { list-style: none; }
.svc-list li { padding: 0.35rem 0; font-size: 0.88rem; color: var(--text-light); display: flex; align-items: flex-start; gap: 0.5rem; }
.svc-list li::before { content: '›'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

.svc-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--orange); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; margin-top: 1.2rem; transition: gap 0.2s;
}
.svc-link:hover { gap: 0.7rem; }


/* ============================================================
   8. SOLUTIONS DIGITALES
   ============================================================ */
#nos-solutions { background: var(--white); }

.solutions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }

.sol-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: var(--transition);
}
.sol-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }

.sol-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--orange), #f7bb56);
  border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.sol-icon svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sol-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.sol-desc { font-size: 0.87rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1.2rem; }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.73rem; font-weight: 600; padding: 0.28rem 0.75rem; border-radius: 50px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok  { background: rgba(16,185,129,0.1); color: #059669; }
.badge-mob { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-wip { background: rgba(245,166,35,0.15); color: #d97706; }


/* ============================================================
   9. FORMATIONS
   ============================================================ */
#formations { background: var(--light); }

.formations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); transition: var(--transition); }
.form-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.form-featured {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  position: relative; overflow: hidden;
}
.form-featured::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(245,166,35,0.08); border-radius: 50%;
}

.partner-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,166,35,0.2); color: var(--orange);
  padding: 0.35rem 0.9rem; border-radius: 50px;
  font-size: 0.77rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.4rem;
}

.form-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.form-featured .form-title { color: var(--white); }
.form-desc { font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.5rem; }
.form-featured .form-desc { color: rgba(255,255,255,0.78); }

.form-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.8rem; }
.form-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 500; padding: 0.28rem 0.75rem; border-radius: 50px; }

.modules-list { list-style: none; margin-bottom: 1.8rem; }
.modules-list li { padding: 0.45rem 0; font-size: 0.88rem; color: var(--text-light); display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--border); }
.modules-list li:last-child { border-bottom: none; }
.modules-list li::before { content: '✓'; color: var(--orange); font-weight: 700; }

.format-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.fmt { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--text-light); }
.fmt svg { width: 13px; height: 13px; stroke: var(--orange); fill: none; stroke-width: 2; }


/* ============================================================
   10. PARADIGME ENTREPRISE FREEDOM
   ============================================================ */
#paradigme {
  background: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpath d='M40 4L76 24v44L40 88 4 68V24z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1.5'/%3E%3C/svg%3E");
  color: var(--white);
}
#paradigme .section-title { color: var(--white); }

.paradigme-intro { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.paradigme-intro p { color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.8; }

.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 4rem; }

.pillar {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2.2rem 1.8rem; text-align: center; transition: var(--transition);
}
.pillar:hover { background: rgba(255,255,255,0.08); border-color: var(--orange); transform: translateY(-4px); }

.pillar-num { font-size: 2.8rem; font-weight: 800; color: var(--orange); opacity: 0.3; line-height: 1; margin-bottom: 0.8rem; }
.pillar-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem; }
.pillar-desc { font-size: 0.88rem; color: rgba(255,255,255,0.58); line-height: 1.65; }

.paradigme-cta { text-align: center; }


/* ============================================================
   11. CONTACT
   ============================================================ */
#contact { background: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }

.contact-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  border-radius: var(--radius); padding: 2.4rem; color: var(--white);
}
.contact-name { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; }
.contact-role { color: var(--orange); font-weight: 600; font-size: 0.88rem; margin-bottom: 2rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9rem; font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.contact-list li svg { width: 17px; height: 17px; stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 0.15rem; }
.contact-list a { color: rgba(255,255,255,0.82); text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--orange); }

.contact-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 1.8rem 0; }
.tva { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.cform { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.fgroup { display: flex; flex-direction: column; gap: 0.45rem; }
.fgroup label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.fgroup input,
.fgroup select,
.fgroup textarea {
  padding: 0.8rem 1rem; border: 2px solid var(--border); border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 0.88rem; color: var(--text);
  background: var(--white); transition: border-color 0.2s; outline: none;
}
.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus { border-color: var(--navy); }
.fgroup input.err,
.fgroup select.err,
.fgroup textarea.err { border-color: #e53e3e; }
.fgroup textarea { resize: vertical; min-height: 120px; }

.success-msg {
  display: none;
  background: rgba(16,185,129,0.08);
  border: 2px solid rgba(16,185,129,0.25);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.success-msg.show { display: block; }
.success-msg p { color: #059669; font-weight: 600; }
.success-msg .sub { font-weight: 400; color: var(--text-light); font-size: 0.9rem; margin-top: 0.3rem; }


/* ============================================================
   12. FOOTER
   ============================================================ */
footer { background: #0d1934; color: rgba(255,255,255,0.6); padding: 3rem 0; }

.footer-top {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 2rem; align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-logo img { height: 38px; }
.footer-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.footer-logo-text span { color: var(--orange); }

.footer-nav { display: flex; gap: 1.8rem; list-style: none; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--orange); }

.footer-social { display: flex; justify-content: flex-end; gap: 0.8rem; }
.soc-link {
  width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: var(--transition);
}
.soc-link:hover { background: var(--orange); }
.soc-link svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.footer-bottom { text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.35); }


/* ============================================================
   13. ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }


/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-left { position: static; display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
  .about-avatar { max-width: 100%; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-left { grid-template-columns: 1fr; }
  .services-grid,
  .formations-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-nav { flex-wrap: wrap; gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .form-row-2 { grid-template-columns: 1fr; }
}
