/* ════════════════════════════════════════════
   FORENSIA — style.css (feuille de style unique)
   Thème clair · bleu marine du logo + gris-bleu + accents orange
   ────────────────────────────────────────────
   ▸ POUR CHANGER LES COULEURS : modifiez uniquement
     les variables du bloc :root ci-dessous.
     Tout le site se met à jour automatiquement.
   ════════════════════════════════════════════ */

:root {
  /* — Fonds — */
  --bg:          #f7f8fa;   /* fond général */
  --bg-soft:     #eef1f5;   /* bandeaux doux */
  --card:        #ffffff;   /* cartes */
  --card-hover:  #f0f4f8;   /* survol des cartes */
  --panel:       #dde4eb;   /* entête + pied de page (gris-bleu clair) */

  /* — Texte — */
  --navy:        #122446;   /* bleu marine du logo : titres forts, marque */
  --ink:         #1d3050;   /* titres */
  --body:        #445162;   /* texte courant */
  --muted:       #66738a;   /* texte secondaire */

  /* — Bleu-gris (couleur structurelle) — */
  --slate:       #466080;
  --slate-dark:  #2c4368;
  --slate-light: #8da2bb;
  --logo-blue:   #2563b0;   /* bleu vif des pixels du logo */

  /* — Orange (accent, par petites touches) — */
  --orange:      #d9783c;
  --orange-soft: #e89048;
  --orange-text: #b05e22;
  --orange-dark: #9c5119;

  /* — Lignes — */
  --line:        rgba(45,67,104,0.15);
  --line-soft:   rgba(45,67,104,0.09);
  --panel-line:  rgba(18,36,70,0.16);
}

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

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px; line-height: 1.4; overflow-x: hidden;
}
a { color: inherit; }

/* ── NAVIGATION (gris-bleu clair) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 4rem;
  background: rgba(221, 228, 235, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-line);
  flex-wrap: wrap; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.nav-logo .logo-icon { height: 52px; width: auto; display: block; }
.nav-logo-name {
  font-family: 'Instrument Sans', sans-serif; font-weight: 600;
  font-size: 1.12rem; letter-spacing: 0.26em; color: var(--navy);
}
.nav-logo-text {
  font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate-dark);
  border-left: 1px solid var(--panel-line); padding-left: 0.85rem; line-height: 1.5;
}
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
nav ul a {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-dark); text-decoration: none; transition: color 0.3s;
}
nav ul a:hover { color: var(--orange-text); }
nav ul a.active { color: var(--navy); font-weight: 500; }
nav ul a.nav-cta { border: 1px solid var(--orange); padding: 0.55rem 1.1rem; color: var(--orange-dark); transition: all 0.3s; }
nav ul a.nav-cta:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ── BOUTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  color: #2a1c0f; padding: 0.9rem 2rem;
  font-family: 'DM Mono', monospace; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(157,81,25,0.4); transition: all 0.3s; cursor: pointer;
}
.btn-primary:hover { background: linear-gradient(135deg, #f09a52, #d9783c); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(217,120,60,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--slate-dark); padding: 0.9rem 2rem;
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-soft); transform: translateY(-2px); }

/* ── HERO (accueil) — logo en majesté à droite ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 0 4rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 78% 42%, rgba(37,99,176,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 65%, rgba(18,36,70,0.06) 0%, transparent 70%),
    linear-gradient(160deg, #eef1f5 0%, #f7f9fb 100%);
}
.hero-watermark {
  display: block; position: absolute; right: 4.5%; top: 50%;
  transform: translateY(-50%); width: min(33vw, 460px); z-index: 1;
  filter: drop-shadow(0 22px 44px rgba(18,36,70,0.16));
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-tag {
  font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.25em;
  color: var(--orange-text); text-transform: uppercase; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem; animation: fadeUp 0.8s ease both;
}
.hero-tag::before { content: ''; width: 40px; height: 1px; background: var(--orange); }
h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400; line-height: 1.05; color: var(--navy); letter-spacing: -0.01em;
  margin-bottom: 1.5rem; animation: fadeUp 0.8s 0.15s ease both;
}
h1 em { font-style: normal; background: linear-gradient(180deg, #2563b0, #122446); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 540px; line-height: 1.50; margin-bottom: 3rem; animation: fadeUp 0.8s 0.3s ease both; }
.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; animation: fadeUp 0.8s 0.45s ease both; }

/* ── PAGE HERO (pages internes) ── */
.page-hero {
  position: relative; padding: 11rem 4rem 5rem; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 82% 30%, rgba(37,99,176,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 70% 40%, rgba(18,36,70,0.05) 0%, transparent 70%),
    linear-gradient(160deg, #eef1f5 0%, #f7f9fb 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.breadcrumb { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--orange-text); }
.breadcrumb span { color: var(--orange-text); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.2rem; animation: none; }
.page-hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 640px; line-height: 1.5; }
.page-hero-sub strong { color: var(--ink); font-weight: 600; }
.page-watermark { display: none; }

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 4rem; }
.section-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--orange-text); display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--orange); }
h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; }
h2 em { font-style: normal; background: linear-gradient(180deg, #2563b0, #122446); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 3rem; }
.prose p { color: var(--body); line-height: 1.6; margin-bottom: 1.2rem; font-size: 0.97rem; max-width: 720px; }
.prose p strong { color: var(--navy); font-weight: 600; }
.section-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ── CARTES (services & liens) ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--card); padding: 2.5rem; position: relative; overflow: hidden; transition: background 0.4s; text-decoration: none; display: block; }
.card:hover { background: var(--card-hover); }
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--orange), var(--orange-soft)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.card:hover::after { transform: scaleX(1); }
.card-icon { width: 44px; height: 44px; margin-bottom: 1.5rem; color: var(--slate); }
.card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--navy); margin-bottom: 0.8rem; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }
.card-ref { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--orange-text); letter-spacing: 0.1em; margin-top: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }

/* ── DIPLÔMES ── */
.diplomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.diploma { background: var(--card); padding: 2.5rem; position: relative; }
.diploma-icon { width: 40px; height: 40px; color: var(--slate); margin-bottom: 1.5rem; }
.diploma-type { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 0.6rem; }
.diploma h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--navy); line-height: 1.25; margin-bottom: 0.8rem; }
.diploma .uni { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.diploma .uni svg { width: 16px; height: 16px; color: var(--slate); flex-shrink: 0; }

/* ── OUTILS ── */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tool { background: var(--card); padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.4s; }
.tool:hover { background: var(--card-hover); }
.tool-name { font-family: 'DM Mono', monospace; font-size: 0.95rem; color: var(--navy); letter-spacing: 0.02em; }
.tool-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.tool-tag { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); margin-top: auto; padding-top: 0.6rem; }

/* ── LISTE À PUCES ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0; }
.feature-list li { background: var(--card); padding: 1.2rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem; font-size: 0.9rem; color: var(--body); line-height: 1.5; }
.feature-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 0.5rem; flex-shrink: 0; }

/* ── PROCESS ── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 3rem; }
.process-steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.step { padding: 0 1.5rem; text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--orange); background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--orange-text); position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(217,120,60,0.12); }
.step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500; color: var(--navy); margin-bottom: 0.6rem; }
.step p { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, #ebf0f5, #f7f9fb); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cta-banner .section-inner { padding: 5rem 4rem; }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.8; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.contact-info p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 2.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--body); text-decoration: none; transition: color 0.3s; }
.contact-link:hover { color: var(--orange-text); }
.contact-link-icon { width: 36px; height: 36px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--slate); flex-shrink: 0; transition: all 0.3s; }
.contact-link:hover .contact-link-icon { border-color: var(--orange); color: var(--orange-text); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
input, textarea, select { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 0.8rem 1rem; font-family: 'Instrument Sans', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.3s, box-shadow 0.3s; width: 100%; }
input::placeholder, textarea::placeholder { color: #9aa8b6; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217,120,60,0.12); }
textarea { resize: vertical; min-height: 130px; }
select option { background: #fff; }

/* ── PIED DE PAGE (gris-bleu clair) ── */
footer { border-top: 1px solid var(--panel-line); padding: 3rem 4rem; background: var(--panel); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-logo-img { height: 110px; width: auto; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.85rem; color: var(--body); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 1.2rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--body); text-decoration: none; margin-bottom: 0.7rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--orange-text); }
.footer-bottom { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--panel-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom span { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.08em; color: var(--muted); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-tag, h1, .hero-sub, .hero-cta { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  .hero-watermark { width: 28vw; right: 3%; opacity: 0.9; }
}
@media (max-width: 980px) {
  nav { padding: 0.6rem 1.5rem; }
  nav ul { gap: 1.2rem; width: 100%; justify-content: flex-start; }
  .nav-logo-text { display: none; }
  .nav-logo .logo-icon { height: 44px; }
  .hero-watermark { display: none; }
  .section-inner, .cta-banner .section-inner { padding: 4.5rem 1.5rem; }
  .hero, .page-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .page-hero { padding-top: 9rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  nav ul { gap: 0.8rem; }
  nav ul a { font-size: 0.66rem; }
  .nav-logo-name { font-size: 0.95rem; letter-spacing: 0.18em; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
