/* ============================================================
   FOCAL Advisory — Design system du site
   Repris et prolongé du portfolio de Yohan Fournier
   ============================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

:root {
  --navy:    #1c2b3a;
  --navy2:   #243648;
  --teal:    #7eb8c4;
  --teal2:   #5aa0b0;
  --gold:    #c4a96b;
  --cream:   #faf9f6;
  --stone:   #f0ece3;
  --muted:   #6b5e45;
  --text:    #1a1a1a;
  --textlt:  #4a4a4a;
  --border:  #ddd4c4;
  --error:   #b3423e;
  --ok:      #3f7d5c;
  --r: 6px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--teal2); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--teal2);
  outline-offset: 2px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28,43,58,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid rgba(126,184,196,0.2);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.current { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(28,43,58,0.99);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(126,184,196,0.2);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 14px 24px; border-bottom: 1px solid rgba(126,184,196,0.08); }
}

/* ── HERO (page d'accueil) ── */
.hero {
  min-height: 92vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 140px 80px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,184,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content:''; display:block; width:32px; height:1px; background:var(--teal); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-title span { color: var(--teal); }
.hero-text {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: var(--r);
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal2); border-color: var(--teal2); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border-color: rgba(126,184,196,0.4); }
.btn-outline:hover { border-color: var(--teal); background: rgba(126,184,196,0.08); }

.hero-stats { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(126,184,196,0.25);
  border-radius: var(--r);
  padding: 20px 24px;
}
.stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ── EN-TÊTE DE PAGE SECONDAIRE (à propos / contact / mentions) ── */
.page-header {
  background: var(--navy);
  padding: 150px 80px 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,169,107,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-eyebrow { font-size: 12px; letter-spacing: 1.5px; color: var(--teal); margin-bottom: 14px; }
.page-header-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700; color: #fff; max-width: 700px; }
.page-header-text { font-size: 15.5px; color: rgba(255,255,255,0.75); max-width: 640px; margin-top: 16px; font-weight: 300; line-height: 1.7; }

/* ── SECTIONS COMMUNES ── */
section.block { padding: 90px 80px; }
section.block.alt { background: var(--stone); }
.section-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.section-title span { color: var(--teal2); }
.section-lead { font-size: 15.5px; color: var(--textlt); max-width: 680px; line-height: 1.75; margin-bottom: 48px; }

/* ── PILIERS / ACTIVITÉS ── */
.piliers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pilier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  border-top: 3px solid var(--teal);
}
.pilier-icon { font-size: 26px; margin-bottom: 16px; }
.pilier-card h3 { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--navy); margin-bottom: 12px; font-weight: 700; }
.pilier-card p { font-size: 14.5px; color: var(--textlt); line-height: 1.65; margin-bottom: 14px; }
.pilier-card ul { list-style: none; }
.pilier-card ul li {
  font-size: 13.5px;
  color: var(--textlt);
  padding: 3px 0 3px 16px;
  position: relative;
}
.pilier-card ul li::before { content:'▸'; position:absolute; left:0; color:var(--teal2); font-size:10px; top:8px; }

/* ── ACTEURS (badges) ── */
.acteurs-row { display: flex; flex-wrap: wrap; gap: 12px; }
.acteur-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
}

/* ── REPÈRES / CHIFFRES ── */
.reperes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.repere-card { text-align: center; padding: 10px; }
.repere-num { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--teal2); font-weight: 700; }
.repere-label { font-size: 13px; color: var(--textlt); margin-top: 6px; }

/* ── RÉALISATIONS (liste) ── */
.real-list { list-style: none; max-width: 760px; }
.real-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--textlt);
  line-height: 1.6;
}
.real-list li:last-child { border-bottom: none; }
.real-list li::before { content:'●'; position:absolute; left:0; top:17px; color: var(--teal); font-size: 9px; }
.real-list li strong { color: var(--navy); font-weight: 500; }

/* ── BANDEAU CTA ── */
.cta-band {
  background: var(--navy);
  padding: 70px 80px;
  text-align: center;
}
.cta-band-title { font-family: 'Playfair Display', serif; font-size: 30px; color: #fff; margin-bottom: 14px; }
.cta-band-text { font-size: 15px; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto 32px; }

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; }
.contact-icon { font-size: 20px; }
.contact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 14.5px; color: var(--navy); margin-top: 2px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 36px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; color: var(--navy); font-weight: 500; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  background: var(--cream);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal2);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-submit { width: 100%; border: none; }

.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

.alert { border-radius: var(--r); padding: 16px 20px; font-size: 14.5px; margin-bottom: 28px; }
.alert-ok { background: rgba(63,125,92,0.1); border: 1px solid rgba(63,125,92,0.35); color: var(--ok); }
.alert-error { background: rgba(179,66,62,0.08); border: 1px solid rgba(179,66,62,0.35); color: var(--error); }
.alert ul { margin: 6px 0 0 18px; }

/* ── FOOTER ── */
footer {
  background: #111d26;
  padding: 40px 80px 28px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 17px; color: #fff; display: flex; align-items: center; gap: 9px; }
.footer-brand img { height: 26px; width: auto; display: block; }
.footer-brand span { color: var(--teal); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── PAGE MENTIONS LÉGALES ── */
.legal-content { max-width: 760px; }
.legal-content h2 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14.5px; color: var(--textlt); margin-bottom: 12px; line-height: 1.7; }
.legal-note {
  background: var(--stone);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 24px 0;
}

/* ── FICHES DE COMPÉTENCE ── */
.fiche-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 80px;
  margin-top: 60px;
  background: var(--stone);
  border-bottom: 1px solid var(--border);
}
.fiche-nav + .page-header { padding-top: 60px; }
.fiche-nav a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
}
.fiche-nav a:hover { color: var(--teal2); border-color: var(--teal2); }
.fiche-nav a.current { color: #fff; background: var(--navy); border-color: var(--navy); }

.offer-box {
  background: var(--navy);
  border-radius: var(--r);
  padding: 36px 40px;
  max-width: 820px;
}
.offer-box h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; margin-bottom: 16px; }
.offer-box ul { list-style: none; }
.offer-box ul li {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  padding: 8px 0 8px 26px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.offer-box ul li:last-child { border-bottom: none; }
.offer-box ul li::before { content:'✓'; position:absolute; left:0; top:8px; color: var(--gold); font-weight: 700; }
.offer-box ul li strong { color: var(--teal); font-weight: 500; }

.offer-highlight {
  margin-top: 20px;
  background: rgba(196,169,107,0.12);
  border: 1px solid rgba(196,169,107,0.35);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: 14.5px;
  color: #fff;
  line-height: 1.6;
}
.offer-highlight strong { color: var(--gold); }

/* ── HUB COMPÉTENCES (page competences.html) ── */
.focal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.focal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.focal-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.focal-letter { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--teal2); font-weight: 700; line-height: 1; margin-bottom: 10px; }
.focal-card h3 { font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.focal-card p { font-size: 12.5px; color: var(--textlt); line-height: 1.5; margin-bottom: 14px; }
.focal-card a { font-size: 12.5px; font-weight: 500; }

/* ── CARTOGRAPHIE DES ACTEURS ── */
.carto-wrap { max-width: 560px; margin: 10px auto 0; }
.carto-svg { width: 100%; height: auto; display: block; }
.carto-link { stroke: var(--teal2); stroke-width: 2; stroke-dasharray: 4 5; opacity: 0.55; }
.carto-center { fill: var(--navy); }
.carto-center-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  fill: #fff;
}
.carto-center-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  fill: var(--teal);
  letter-spacing: 0.5px;
}
.carto-node {
  fill: #fff;
  stroke: var(--teal2);
  stroke-width: 2;
}
.carto-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: var(--navy);
}
.carto-label-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  fill: var(--textlt);
}

/* Liste de repli pour mobile : la cartographie SVG devient illisible en dessous de 640px */
.carto-mobile-list { display: none; }
.carto-mobile-center {
  background: var(--navy);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  border-radius: 30px;
  padding: 12px 20px;
  max-width: 220px;
  margin: 10px auto 20px;
}
.carto-mobile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.carto-mobile-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
}

@media (max-width: 640px) {
  .carto-wrap { display: none; }
  .carto-mobile-list { display: block; }
}

/* ── FOCAL : CINQ COMPÉTENCES (page d'accueil) ── */
.focal-card-clickable {
  display: block;
  border-top: 3px solid var(--teal);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.focal-card-clickable:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(28,43,58,0.1);
}
.focal-card-clickable p { min-height: 55px; }
.focal-card-link { font-size: 12.5px; font-weight: 500; color: var(--teal2); }

/* ── DÉROULÉ (étapes numérotées) ── */
.process-list { list-style: none; counter-reset: step; max-width: 720px; }
.process-list li {
  position: relative;
  padding: 4px 0 22px 46px;
  counter-increment: step;
  font-size: 15px;
  color: var(--textlt);
  line-height: 1.65;
}
.process-list li:last-child { padding-bottom: 0; }
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px; top: 30px;
  width: 2px; height: calc(100% - 26px);
  background: var(--border);
}
.process-list li strong { color: var(--navy); }

@media (max-width: 980px) {
  .fiche-nav { padding: 14px 24px; }
  .offer-box { padding: 26px 22px; }
  .focal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .focal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 120px 24px 50px; }
  .hero-title { font-size: 40px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 calc(50% - 8px); }
  .page-header { padding: 120px 24px 50px; }
  .page-header-title { font-size: 32px; }
  section.block { padding: 60px 24px; }
  .piliers-grid { grid-template-columns: 1fr; }
  .reperes-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 24px; }
  footer { padding: 32px 24px 20px; }
}
