/* ============================================================
   OPL CONSEIL — Feuille de style partagée
   Palette : --navy #1a2e4a  |  --blue #1d6fa8  |  --white #fff
============================================================ */

/* ── Variables & Reset ────────────────────────────────── */
:root {
  --navy:        #1a2e4a;
  --green:       #1d6fa8;
  --green-light: #2480c0;
  --white:       #ffffff;
  --off-white:   #f7f8fa;
  --text:        #1e2d3d;
  --muted:       #6b7c93;
  --border:      #dde3ec;
  --shadow:      0 2px 20px rgba(26,46,74,.08);
  --radius:      10px;
  --max-w:       1100px;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-title:  'Poppins', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); color: var(--text); background: var(--white);
        line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── Typographie ──────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);  font-weight: 600; }
h3 { font-size: 1.1rem;  font-weight: 600; }
p  { font-size: 1rem;    color: var(--muted); }

.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: .6rem;
}

/* ── Layout ───────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Boutons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.6rem; border-radius: 6px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: all .2s; border: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-light); color: var(--white); transform: translateY(-1px);
                     box-shadow: 0 4px 12px rgba(29,111,168,.3); }
.btn-outline  { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Header ───────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#header.scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .55rem; }
.logo span { color: var(--green); }
.logo-img { height: 36px; width: auto; display: block; }

nav { display: flex; align-items: center; gap: 1.75rem; }
nav a {
  font-size: .88rem; font-weight: 500; color: var(--text);
  position: relative; transition: color .2s;
}
nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s;
}
nav a:hover           { color: var(--green); }
nav a:hover::after,
nav a.active::after   { transform: scaleX(1); }
nav a.active          { color: var(--green); }
nav a.nav-cta.active  { color: var(--white); }

.nav-linkedin {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #0077b5; transition: opacity .2s; font-size: .88rem; font-weight: 500;
}
.nav-linkedin:hover { opacity: .75; }
@media (max-width: 900px) { .nav-linkedin span { display: none; } }

/* Mobile */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all .3s; }
.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); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 1.5rem 1.5rem;
  }
  nav.open { display: flex; }
  nav a { padding: .7rem 0; width: 100%; font-size: .95rem; }
  nav a::after { display: none; }
  .nav-cta { margin-top: .5rem; }
}

/* ── En-tête de page intérieure ───────────────────────── */
.page-hero {
  padding: 96px 0 2.25rem;
  background: linear-gradient(135deg, #eef2f7 0%, #e6eef6 100%);
}
.page-hero h1 { color: var(--navy); margin-bottom: .4rem; }
.page-hero p  { font-size: 1.05rem; max-width: 560px; }

/* ── Séparateur de contenu ────────────────────────────── */
.content-section { padding: 4rem 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }

/* ── Footer ───────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 1.75rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--green); }
footer p { font-size: .78rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .78rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ── Scroll to top ────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 42px; height: 42px; background: var(--green); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; z-index: 50;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-2px); }

/* ── Animations fade-up ───────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }

/* ════════════════════════════════════════════════════════
   INDEX — Hero
════════════════════════════════════════════════════════ */
#hero {
  padding: 96px 0 28px;
  background: linear-gradient(135deg, #eef2f7 0%, #e6eef6 100%);
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,111,168,.07) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content h1     { color: var(--navy); margin-bottom: 1rem; }
.hero-content h1 em  { font-style: normal; color: var(--green); }
.hero-tagline { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; max-width: 480px; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 2.5rem; }

.hero-photo-wrap { display: flex; justify-content: center; position: relative; }
.hero-photo-wrap::before {
  content: ''; position: absolute; inset: -14px; border-radius: 24px;
  border: 2px dashed rgba(29,111,168,.25);
}
.photo-profil {
  width: 270px; height: auto; border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(26,46,74,.15);
}
.photo-placeholder {
  width: 270px; height: 270px; border-radius: 50%;
  background: linear-gradient(135deg, #c8d8e8, #a8c4b8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  border: 4px solid var(--white); box-shadow: 0 8px 32px rgba(26,46,74,.15); color: var(--navy);
}
.photo-placeholder svg  { opacity: .35; }
.photo-placeholder span { font-size: .72rem; opacity: .45; font-weight: 500; }

.services-preview-grid { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-tagline, .hero-actions { max-width: 100%; justify-content: center; }
  .hero-photo-wrap { order: -1; }
  .services-preview-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* ════════════════════════════════════════════════════════
   APROPOS
════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: 4rem; }
.about-photo-wrap { position: relative; height: 100%; }
.about-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }
.about-content h2 { color: var(--navy); margin-bottom: 1.25rem; }
.about-content p  { margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.about-content p strong { color: var(--text); font-weight: 600; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ════════════════════════════════════════════════════════
   PRESTATIONS
════════════════════════════════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
  gap: 1.25rem; margin-bottom: 2.25rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green); transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,46,74,.1); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 44px; height: 44px; background: rgba(29,111,168,.1); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; color: var(--green);
}
.service-card h3 { color: var(--navy); margin-bottom: .6rem; }
.service-card p  { font-size: .875rem; line-height: 1.75; }

.method-block { background: var(--navy); border-radius: 14px; padding: 2.75rem; }
.method-header { text-align: center; margin-bottom: 2.25rem; }
.method-header h3 { font-family: var(--font-title); font-size: 1.4rem; color: var(--white); margin-bottom: .4rem; }
.method-header p  { color: rgba(255,255,255,.55); }
.method-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.method-step  { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-family: var(--font-title); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.method-step h4 { color: var(--white); font-size: .95rem; margin-bottom: .4rem; }
.method-step p  { color: rgba(255,255,255,.55); font-size: .83rem; }
@media (max-width: 600px) {
  .method-steps { grid-template-columns: 1fr; }
  .method-block { padding: 2rem 1.5rem; }
}

/* ════════════════════════════════════════════════════════
   BLOG
════════════════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.25rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,46,74,.1); }
.blog-card-img {
  height: 140px; background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.12);
}
.blog-card-body { padding: 1.4rem; }
.blog-meta { font-size: .72rem; color: var(--muted); margin-bottom: .4rem; }
.blog-card-body h3 { color: var(--navy); margin-bottom: .4rem; font-size: .95rem; line-height: 1.4; }
.blog-card-body p  { font-size: .83rem; line-height: 1.65; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: .25rem;
  color: var(--green); font-size: .8rem; font-weight: 500; margin-top: .9rem;
}
.blog-empty { text-align: center; padding: 3rem; color: var(--muted); grid-column: 1/-1; }

/* Vue article */
#article-view { display: none; max-width: 700px; margin: 0 auto; }
#article-view.visible { display: block; }
#blog-list.hidden { display: none; }
.article-back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--green); font-size: .875rem; font-weight: 500;
  margin-bottom: 2rem; cursor: pointer; transition: opacity .2s;
}
.article-back:hover { opacity: .75; }
#article-content h1     { color: var(--navy); font-size: 1.65rem; margin-bottom: .5rem; }
#article-content .article-meta { color: var(--muted); font-size: .8rem; margin-bottom: 2rem; display: block; }
#article-content h2     { color: var(--navy); margin: 1.75rem 0 .6rem; font-size: 1.2rem; }
#article-content h3     { color: var(--navy); margin: 1.25rem 0 .5rem; }
#article-content p      { color: var(--text); margin-bottom: 1rem; line-height: 1.85; }
#article-content ul,
#article-content ol     { margin: .75rem 0 1rem 1.4rem; }
#article-content li     { margin-bottom: .35rem; color: var(--text); line-height: 1.7; }
#article-content strong { font-weight: 600; color: var(--navy); }
#article-content em     { font-style: italic; }
#article-content blockquote {
  border-left: 3px solid var(--green); padding: .75rem 1.2rem; margin: 1.5rem 0;
  background: rgba(29,111,168,.05); border-radius: 0 var(--radius) var(--radius) 0;
}
#article-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
#article-content code {
  background: var(--off-white); padding: .1em .4em; border-radius: 4px;
  font-size: .88em; font-family: monospace;
}

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h2    { color: var(--navy); margin-bottom: .9rem; }
.contact-info > p   { margin-bottom: 2rem; }
.contact-links      { display: flex; flex-direction: column; gap: .9rem; }
.contact-link {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; font-weight: 500; color: var(--text); transition: color .2s;
}
.contact-link:hover { color: var(--green); }
.contact-link-icon {
  width: 38px; height: 38px; background: var(--off-white); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy);
}
.contact-form { display: flex; flex-direction: column; gap: .9rem; }
.form-group   { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .83rem; font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea {
  padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  resize: vertical; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,111,168,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-success {
  display: none; padding: .9rem;
  background: rgba(29,111,168,.08); border: 1px solid var(--green); border-radius: 6px;
  color: var(--green); font-size: .875rem; text-align: center;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row     { grid-template-columns: 1fr; }
}
