/* ============================================================
   COFIJEF – Cabinet d'Expertise Comptable
   style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700;800;900&family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red:    #C8272D;
  --navy:   #1B2A4A;
  --gray:   #F7F7F7;
  --gray2:  #F0F0EE;
  --text:   #333333;
  --light:  #777777;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Typography helpers ────────────────────────────────────── */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: .5rem;
}
.section-title.small-caps {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1rem;
}
.red-line {
  width: 40px; height: 3px;
  background: var(--red);
  margin: .8rem 0 1.8rem;
}
.red-line.center { margin: .8rem auto 1.8rem; }
.blue-line {
  width: 40px; height: 3px;
  background: var(--navy);
  margin: .8rem 0 1.8rem;
}
.blue-line.center { margin: .8rem auto 1.8rem; }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.nav-left { display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-accueil {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .88rem;
  color: var(--navy); position: relative; padding-bottom: 4px; transition: color .2s;
}
.nav-accueil::after {
  content: '';
  position: absolute; bottom: -8px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-accueil.active { color: var(--red); }
.nav-accueil.active::after { transform: scaleX(1); }
.nav-accueil:hover { color: var(--red); }
.nav-accueil:hover::after { transform: scaleX(1); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .88rem;
  color: var(--navy); position: relative; padding-bottom: 4px; transition: color .2s;
}
nav:not(.scrolled) .nav-links a { color: #fff; }
nav:not(.scrolled) .nav-accueil { color: #fff; }
nav:not(.scrolled) .nav-links a.active { color: #fff; }
nav:not(.scrolled) .nav-links a:hover { color: rgba(255,255,255,.75); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -8px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-mobile-accueil { display: none; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9rem;
  padding: 13px 30px; border-radius: 3px;
  transition: background .2s, transform .2s; border: none; cursor: pointer;
}
.btn:hover { background: #a51f24; transform: translateY(-2px); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: #0f1e38; }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ── HERO SLIDER ───────────────────────────────────────────── */
.hero {
  position: relative; margin-top: 0;
  height: 100vh; min-height: 520px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(100%) brightness(1.55);
  transform: scale(1.05); transition: transform 7s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
/* Overlay très pâle — filigrane style Bittini */
.hero-overlay { position: absolute; inset: 0; background: rgba(10,18,52,0.6); }
/* Fondu bas vers blanc */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 5;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 10%; max-width: 100%;
  width: 100%; text-align: center;
}
.hero-content h1 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.5rem); color: #fff;
  text-transform: uppercase; letter-spacing: 2px; line-height: 1.1;
  margin-bottom: 1.3rem;
}
.hero-content p {
  font-size: .88rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.88); margin-bottom: 2.2rem; line-height: 1.9;
}

.hero-content--center {
  text-align: center;
  max-width: 100%;
  padding: 0 15%;
}
.hero-content--center h1 { letter-spacing: 3px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px;
  background: rgba(255,255,255,.75); border: none; border-radius: 50%;
  font-size: 1.1rem; color: var(--navy); cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; border: none;
  transition: background .25s, transform .25s;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }

/* ── EXPERTISES HOME ───────────────────────────────────────── */
.section { padding: 80px 8%; }
.section.bg-gray { background: var(--gray); }

.exp-home { background: var(--gray); padding: 80px 8%; text-align: center; }
.exp-home .intro-text {
  max-width: 760px; margin: 0 auto 3.5rem;
  color: #555; line-height: 1.85; font-size: .95rem;
}
.exp-cards-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2rem; max-width: 950px; margin: 0 auto 2.5rem;
}
.exp-card {
  background: #fff; border-radius: 5px; padding: 2.5rem 1.5rem; text-align: center;
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
  transition: transform .28s, box-shadow .28s;
}
.exp-card:hover { transform: translateY(-7px); box-shadow: 0 10px 28px rgba(0,0,0,.13); }
.exp-card-icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--navy); margin: 0 auto 1.3rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff; transition: background .25s;
}
.exp-card:nth-child(3) .exp-card-icon { background: var(--red); }
.exp-card:hover .exp-card-icon { background: var(--red); }
.exp-card h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--navy); margin-bottom: .5rem;
}
.exp-card p { font-size: .87rem; color: #666; line-height: 1.75; }

/* ── CTA BAND ──────────────────────────────────────────────── */
.cta-band {
  background: #fff; padding: 65px 8%;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band-text h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1.55rem; color: var(--navy); max-width: 560px; line-height: 1.4;
}
.cta-band-text span { color: var(--red); display: block; }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-section {
  background: #fff;
  padding: 80px 8%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-text p { color: #555; line-height: 1.9; font-size: .95rem; margin-bottom: 1.2rem; }
.stats-row { display: flex; gap: 3.5rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid #ddd; justify-content: center; }
.stat-item h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 4rem; color: var(--navy); line-height: 1;
}
.stat-item p { color: #666; font-size: .85rem; line-height: 1.5; margin-top: .3rem; }
.about-photo { border-radius: 6px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.about-photo img { width: 100%; height: auto; object-fit: contain; transition: transform .4s; }
.about-photo:hover img { transform: scale(1.04); }

/* ── REVIEWS ───────────────────────────────────────────────── */
.reviews-section { background: var(--gray); padding: 80px 8%; text-align: center; border-top: 1px solid #eee; }
.reviews-header { margin-bottom: 1rem; }
.global-stars { color: #f5a623; font-size: 1.5rem; margin-bottom: .3rem; }
.global-note { font-size: .85rem; color: #888; }
.review-cta { display: inline-flex; align-items: center; margin-top: 1.2rem; font-size: .88rem; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; max-width: 1080px; margin: 0 auto;
}
.review-card {
  background: #fff; border-radius: 6px; padding: 1.8rem;
  text-align: left; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .25s; display: flex; flex-direction: column; gap: .5rem;
}
.review-card:hover { transform: translateY(-4px); }
.review-stars { color: #f5a623; font-size: .95rem; }
.review-text { font-size: .9rem; color: #555; line-height: 1.75; font-style: italic; flex: 1; }
.review-author { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.review-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .85rem; color: var(--navy); }
.review-date { font-size: .75rem; color: #aaa; }

/* ── ARTICLES ──────────────────────────────────────────────── */
.articles-section { padding: 80px 8%; background: #fff; border-top: 1px solid #eee; }
.articles-section .section-header { text-align: center; margin-bottom: .5rem; }
.articles-section .section-sub { text-align: center; color: #666; font-size: .93rem; margin-bottom: 2.5rem; }
.filter-tabs { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.filter-tab {
  padding: 8px 20px; border-radius: 30px; border: 2px solid #ddd;
  background: #fff; font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 600;
  color: #777; cursor: pointer; transition: all .2s;
}
.filter-tab:hover, .filter-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.article-card {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.article-card.hidden { display: none !important; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.article-thumb { height: 175px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-thumb img { transform: scale(1.07); }
.article-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.article-badge {
  display: inline-block; font-size: .7rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: .6rem;
}
.badge-fiscalite  { background: #fde8e9; color: var(--red); }
.badge-social     { background: #e8edf5; color: var(--navy); }
.badge-comptabilite { background: #e8f5ee; color: #1a7a4a; }
.badge-creation   { background: #fef3e0; color: #c47a00; }
.badge-actualites { background: #f0e8f5; color: #6a1a8a; }
.article-date { font-size: .77rem; color: #bbb; margin-bottom: .4rem; }
.article-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .97rem; color: var(--navy); margin-bottom: .6rem; line-height: 1.4; flex: 1;
}
.article-excerpt { font-size: .86rem; color: #666; line-height: 1.75; }
.article-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--red); font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: .84rem; margin-top: 1rem; transition: gap .2s;
}
.article-link:hover { gap: .7rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer { background: var(--navy); color: #aaa; padding: 60px 8% 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: 3rem; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: #fff; font-size: .9rem; margin-bottom: 1.2rem; letter-spacing: .5px;
}
.footer-col p, .footer-col li { font-size: .84rem; line-height: 2; }
.footer-col a { color: var(--red); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col ul li { cursor: default; }
.footer-col ul li a { color: #aaa; }
.footer-col ul li a:hover { color: #fff; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo-box {
  width: 46px; height: 46px; background: var(--red); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-box span { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; }
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; font-size: .95rem; }

.footer-contact-row { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .6rem; font-size: .84rem; }
.fc-icon { color: var(--red); font-size: 1rem; margin-top: 2px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 25px; font-size: .78rem; color: #555; flex-wrap: wrap; gap: .8rem;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #fff; }

/* nav blanc forcé sur pages sans hero */
body.page-nav nav { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
/* Sur pages internes (fond nav blanc), liens en navy — sinon blanc sur blanc */
body.page-nav nav .nav-links a,
body.page-nav nav .nav-accueil { color: var(--navy); }
body.page-nav nav .nav-links a.active { color: var(--red); }
body.page-nav nav .nav-links a:hover { color: var(--red); }

/* ============================================================
   PAGE HERO (pages internes)
   ============================================================ */
.page-hero {
  margin-top: 80px; background: #fff;
  padding: 65px 8%; border-bottom: none;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 2.5rem; color: var(--navy); margin-bottom: .5rem;
}
.page-hero p { color: #666; font-size: .95rem; max-width: 600px; line-height: 1.8; }

/* ============================================================
   EXPERTISES PAGE
   ============================================================ */
.exp-page-tabs {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin: 2rem 0; max-width: 900px;
}
.exp-page-tab {
  background: var(--red); color: #fff;
  padding: .9rem 1.5rem; border-radius: 4px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  text-align: center; display: flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .2s; cursor: pointer;
}
.exp-page-tab:hover { background: #a51f24; transform: translateY(-2px); }
.exp-intro-quote {
  text-align: center; max-width: 680px; margin: 1rem auto 0;
  color: #666; font-style: italic; line-height: 1.85; font-size: .93rem;
}

.exp-detail {
  padding: 80px 8%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.exp-detail.reverse { direction: rtl; }
.exp-detail.reverse > * { direction: ltr; }
.exp-detail.bg-gray { background: var(--gray); direction: ltr; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

.exp-detail-icon { font-size: 2.5rem; color: var(--red); margin-bottom: 1rem; }
.exp-detail h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .95rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--navy); margin-bottom: .5rem;
}
.exp-detail p { color: #555; line-height: 1.9; font-size: .93rem; margin-bottom: 1rem; }
.exp-detail p strong { color: var(--navy); }
.exp-detail ul { list-style: disc; padding-left: 1.3rem; color: #555; font-size: .9rem; line-height: 2.1; }

.exp-photo {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,.13);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: default;
}
.exp-photo:hover {
  transform: perspective(800px) rotateY(-7deg) rotateX(3deg) scale(1.03);
  box-shadow: 22px 22px 44px rgba(0,0,0,.18);
}
.exp-detail.reverse .exp-photo:hover {
  transform: perspective(800px) rotateY(7deg) rotateX(3deg) scale(1.03);
}
.exp-photo img { width: 100%; height: 360px; object-fit: cover; }

/* ── PAGE HERO SMALL (expertises) ───────────────────────────── */
.page-hero--small { padding: 14px 8%; }
.page-hero--small h1 { font-size: 1.8rem; margin-bottom: .2rem; }
.page-hero--small .blue-line { margin: .4rem 0 0; }

/* ── EXPERTISES TWO-PANEL LAYOUT ────────────────────────────── */
.exp-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 780px;
  background: var(--gray2);
  padding: 20px;
  gap: 16px;
}

.exp-cards-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.exp-card-thumb {
  height: 162px;
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.exp-card-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(27,42,74,.72);
  transition: background .25s;
}
.exp-card-thumb:hover::before,
.exp-card-thumb.active::before { background: rgba(200,39,45,.82); }
a.exp-card-thumb { display: block; text-decoration: none; }

.exp-card-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 1rem 1.4rem; gap: .8rem;
}
.exp-card-thumb-overlay h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .88rem; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; flex: 1;
}
.exp-card-arrow { color: #fff; font-size: .85rem; opacity: .8; }

/* Detail panel */
.exp-detail-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.exp-overview { display: flex; flex-direction: column; height: 100%; }
.exp-overview-text { padding: 2rem 2.5rem; overflow-y: auto; flex: 1; }
.exp-overview-text p { color: #555; line-height: 1.85; font-size: .9rem; margin-bottom: 1rem; }

/* Slim header banner (replaces big photo) */
.exp-slim-header {
  background: var(--navy);
  padding: 1.1rem 2.5rem;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 1rem;
}
.exp-slim-header h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .92rem; text-transform: uppercase; letter-spacing: 2px;
  color: #fff; margin: 0;
}
.exp-slim-header .exp-slim-line {
  width: 3px; height: 20px; background: var(--red); border-radius: 2px; flex-shrink: 0;
}
.exp-overview-list { list-style: none; padding: 0; margin: .8rem 0 1.2rem; }
.exp-overview-list li {
  padding: .3rem 0 .3rem 1.2rem;
  position: relative; color: var(--red); font-weight: 600;
}
.exp-overview-list li::before {
  content: '■'; position: absolute; left: 0;
  color: var(--red); font-size: .5rem; top: .55rem;
}

.exp-content { display: flex; flex-direction: column; height: 100%; }
.exp-content-header {
  height: 220px; flex-shrink: 0;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
}
.exp-content-header-title {
  background: rgba(27,42,74,.88);
  color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .95rem; text-transform: uppercase; letter-spacing: 2px;
  padding: .8rem 2rem; width: 100%;
}
.exp-content-body { padding: 2rem 2.5rem; overflow-y: auto; flex: 1; }
.exp-content-body p { color: #555; line-height: 1.8; font-size: .87rem; margin-bottom: .8rem; }
.exp-content-body h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--red); font-size: .98rem; margin: 1.2rem 0 .5rem;
}
.exp-content-body h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--navy); font-size: .88rem; margin: 1rem 0 .4rem;
  text-decoration: underline;
}
.exp-content-body ul { list-style: none; padding: 0; margin-bottom: .8rem; }
.exp-content-body ul li {
  padding: .2rem 0 .2rem 1.3rem;
  position: relative; color: #555; font-size: .86rem; line-height: 1.55;
}
.exp-content-body ul li::before {
  content: '■'; position: absolute; left: 0;
  color: var(--red); font-size: .45rem; top: .6rem;
}

/* ── DOCUMENTATION TABS ────────────────────────────────────── */
.doc-wrapper { padding: 1rem 1.2rem; }
.doc-tabs { display: flex; flex-wrap: wrap; border: 1px solid #d0d4dc; border-bottom: none; }
.doc-tab {
  padding: .5rem .75rem; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: .74rem; border-right: 1px solid #d0d4dc; border-bottom: 1px solid #d0d4dc;
  background: #f5f6f8; color: #555; cursor: pointer; transition: all .15s; text-align: center;
}
.doc-tab:last-child { border-right: none; }
.doc-tab:hover { background: #e8ebf0; color: var(--navy); }
.doc-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-panel { border: 1px solid #d0d4dc; padding: 1rem 1.2rem; max-height: 530px; overflow-y: auto; }
.doc-section-heading {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  color: var(--navy); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: .8rem; padding-bottom: .3rem; border-bottom: 2px solid var(--red);
  display: inline-block;
}
/* Accordion */
.doc-group { margin-bottom: .3rem; }
.doc-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .8rem; cursor: pointer; border: 1px solid #d0d4dc;
  background: #fff; transition: background .15s; user-select: none;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .82rem; color: var(--text);
}
.doc-group-header:hover { background: #f0f2f6; }
.doc-group.open .doc-group-header { background: #f0f2f6; border-bottom-color: transparent; }
.doc-group-chevron { color: var(--navy); font-size: .65rem; transition: transform .2s; flex-shrink: 0; }
.doc-group.open .doc-group-chevron { transform: rotate(90deg); }
.doc-group-body { display: none; border: 1px solid #d0d4dc; border-top: none; padding: .6rem .9rem .7rem 1rem; }
.doc-group.open .doc-group-body { display: block; }
/* List items */
.doc-items { list-style: none; padding: 0 0 0 .2rem; margin: 0; }
.doc-items li { display: flex; align-items: flex-start; gap: .45rem; padding: .15rem 0; }
.doc-items li::before { content: '■'; color: var(--navy); font-size: .38rem; margin-top: .44rem; flex-shrink: 0; }
.doc-items a { color: var(--navy); font-size: .8rem; text-decoration: underline; transition: color .2s; }
.doc-items a:hover { color: var(--red); }
/* Sub-groups (within accordion body) */
.doc-subgroup { margin-bottom: .65rem; }
.doc-subgroup-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .74rem;
  color: var(--navy); padding: .22rem .5rem; background: #edf0f6;
  border-left: 3px solid var(--navy); margin-bottom: .28rem;
}
/* Plain list (no accordion – for tabs with no groups) */
.doc-plain { list-style: none; padding: 0; }
.doc-plain li { display: flex; align-items: flex-start; gap: .45rem; padding: .22rem 0; }
.doc-plain li::before { content: '■'; color: var(--navy); font-size: .38rem; margin-top: .44rem; flex-shrink: 0; }
.doc-plain a { color: var(--navy); font-size: .83rem; text-decoration: underline; transition: color .2s; }
.doc-plain a:hover { color: var(--red); }
/* Documents pas encore disponibles */
.doc-nolink { color: #9aa2b1 !important; text-decoration: none !important; cursor: default; }
.doc-nolink:hover { color: #9aa2b1 !important; }
/* Références sectors */
.ref-sectors { list-style: none; padding: .3rem 0; }
.ref-sectors li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.ref-sectors li::before { content: '■'; color: #2e7bb8; font-size: .5rem; flex-shrink: 0; }
.ref-sectors li span { font-size: .9rem; color: var(--navy); font-weight: 500; font-family: 'Montserrat', sans-serif; }
/* Recrutement */
.job-card {
  border: 1px solid #d0d4dc; border-radius: 6px; padding: 1.2rem 1.5rem; margin-bottom: 1rem;
}
.job-card-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem;
  color: var(--navy); margin-bottom: .6rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.job-card p { color: #555; font-size: .88rem; line-height: 1.75; margin-bottom: .4rem; }
.job-card p:last-child { margin-bottom: 0; }
.job-tag {
  display: inline-block; background: #edf0f6; color: var(--navy); font-size: .74rem;
  font-family: 'Montserrat', sans-serif; font-weight: 600; padding: .2rem .55rem;
  border-radius: 3px; margin: .2rem .1rem 0 0;
}
/* ── RECRUTEMENT FORM ──────────────────────────────────────── */
.recruit-form-box {
  margin-top: 1.2rem; border: 1px solid #d0d4dc; border-radius: 6px; padding: 1.2rem 1.5rem;
}
.recruit-form-box h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem;
  color: var(--navy); margin-bottom: .9rem;
}
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.rf-field { margin-bottom: .6rem; }
.rf-row input, .rf-row select, .rf-field input, .rf-field select,
.recruit-form-box textarea {
  width: 100%; padding: .48rem .7rem; border: 1px solid #d0d4dc; border-radius: 4px;
  font-family: 'Open Sans', sans-serif; font-size: .82rem; color: var(--text);
  background: #fff; transition: border-color .2s;
}
.rf-row input:focus, .rf-row select:focus,
.rf-field input:focus, .rf-field select:focus,
.recruit-form-box textarea:focus { outline: none; border-color: var(--navy); }
.recruit-form-box textarea { resize: vertical; }
.rf-file-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; flex-wrap: wrap; }
.rf-file-label {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .78rem;
  color: var(--navy); white-space: nowrap;
}
.rf-file-input { font-size: .78rem; color: #555; }
.rf-btn {
  background: var(--navy); color: #fff; border: none; padding: .55rem 1.5rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .82rem;
  border-radius: 4px; cursor: pointer; transition: background .2s; letter-spacing: .5px;
}
.rf-btn:hover { background: var(--red); }

/* ── SITE-WIDE SIDEBAR LAYOUT (Documentation / Références / Recrutement) ── */
.site-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--gray2);
  padding: 20px;
  gap: 16px;
  min-height: 712px;
  margin-top: 80px;
}
.site-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  padding: 2.5rem;
  overflow-y: auto;
}
.site-content h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--navy); margin-bottom: .5rem;
}
.site-content .exp-slim-header h2 { color: #fff; font-size: .92rem; margin: 0; }
.site-content p { color: #555; line-height: 1.85; font-size: .93rem; margin-bottom: 1rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  padding: 70px 8%; display: grid;
  grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-info h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 2.2rem; color: var(--navy); line-height: 1.3; margin-bottom: .5rem;
}
.contact-info > p { color: #555; line-height: 1.85; font-size: .93rem; margin: 1.2rem 0; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; font-size: .92rem; color: #555; }
.ci-icon { color: var(--red); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.ci-text strong { color: var(--navy); display: block; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .2rem; }

.contact-form-box {
  background: var(--gray); border-radius: 8px;
  padding: 2.5rem; box-shadow: 0 4px 18px rgba(0,0,0,.07);
}
.contact-form-box h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--navy); font-size: 1.2rem; margin-bottom: .3rem;
}
.contact-form-box p { color: #888; font-size: .85rem; margin-bottom: 1.8rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: .78rem; color: var(--navy); margin-bottom: .4rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 13px; border: 2px solid #e5e5e5; border-radius: 4px;
  font-size: .92rem; font-family: 'Open Sans', sans-serif;
  transition: border-color .2s; outline: none; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; margin-top: .5rem; font-size: .95rem; padding: 14px; }

.map-wrapper { margin-top: 0; }
.map-wrapper iframe { width: 100%; height: 360px; border: none; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.1); }

/* ============================================================
   LE CABINET PAGE
   ============================================================ */
.cabinet-layout {
  padding: 80px 8%; display: grid;
  grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.cabinet-text p { color: #555; line-height: 1.9; font-size: .95rem; margin-bottom: 1.2rem; }
.cabinet-text h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.cabinet-stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid #ddd;
  justify-items: center; text-align: center;
}
.cab-stat h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 3.5rem; color: var(--navy); line-height: 1;
}
.cab-stat p { color: #666; font-size: .84rem; line-height: 1.5; margin-top: .3rem; }
.cabinet-photo { border-radius: 8px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.cabinet-photo img { width: 100%; height: 520px; object-fit: cover; }

.valeurs-section { background: var(--gray); padding: 70px 8%; text-align: center; border-top: 1px solid #eee; }
.valeurs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin-top: 3rem; }
.valeur-card { padding: 2rem 1rem; }
.valeur-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.valeur-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-size: 1rem; }
.valeur-card p { font-size: .87rem; color: #666; line-height: 1.75; }

/* ============================================================
   MON COMPTE PAGE
   ============================================================ */
.account-page {
  margin-top: 80px; min-height: calc(100vh - 80px);
  background: var(--gray); display: flex; align-items: center; justify-content: center;
  padding: 60px 5%;
}
.account-card {
  background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 3rem; width: 100%; max-width: 440px;
}
.account-card .card-logo { text-align: center; margin-bottom: 1.5rem; }
.account-card .card-logo .logo-box { margin: 0 auto; }
.account-card h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--navy); font-size: 1.5rem; text-align: center; margin-bottom: .4rem;
}
.account-card > p { text-align: center; color: #999; font-size: .88rem; margin-bottom: 2rem; }
.form-forgot { text-align: center; margin-top: 1rem; font-size: .82rem; color: #aaa; }
.form-forgot a { color: var(--red); }
.form-divider { text-align: center; color: #ccc; margin: 1.2rem 0; font-size: .85rem; position: relative; }
.form-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #eee; z-index: 0; }
.form-divider span { background: #fff; position: relative; z-index: 1; padding: 0 .8rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .exp-cards-row  { grid-template-columns: 1fr; }
  .reviews-grid   { grid-template-columns: 1fr 1fr; }
  .articles-grid  { grid-template-columns: 1fr 1fr; }
  .about-section  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .exp-detail     { grid-template-columns: 1fr; gap: 2rem; }
  .exp-detail.reverse { direction: ltr; }
  .cabinet-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .valeurs-grid   { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .section        { padding: 55px 5%; }
  .nav-links      { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: #fff; padding: 1rem 5%; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-hamburger  { display: flex; }
  .nav-accueil    { display: none; }
  .nav-mobile-accueil { display: block; }
  .reviews-grid   { grid-template-columns: 1fr; }
  .articles-grid  { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .valeurs-grid   { grid-template-columns: 1fr; }
  .cabinet-stats-row { grid-template-columns: 1fr 1fr; }
  .cta-band       { flex-direction: column; text-align: center; }
  .hero-content   { padding: 0 5%; }
  .hero-content h1 { font-size: 1.9rem; }
  .exp-page-tabs  { flex-direction: column; }
  .form-row       { grid-template-columns: 1fr; }
  .exp-detail     { padding: 55px 5%; }
  .page-hero      { padding: 50px 5%; }
  .page-hero h1   { font-size: 1.8rem; }
  .about-section  { padding: 55px 5%; }
  .stats-row      { flex-direction: column; gap: 1.5rem; }
  .contact-layout { padding: 55px 5%; }
  .exp-layout     { grid-template-columns: 1fr; height: auto; min-height: 0; padding: 12px; gap: 12px; }
  .site-layout    { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
}
