/*
Theme Name: Bahcrint
Theme URI: https://bahcrint.com
Author: Bahcrint / Anthoni JOURSON
Author URI: https://bahcrint.com
Description: Thème WordPress sur mesure pour Bahcrint — Ingénierie Système & Innovation Technologique. Design élégant avec typographie Cormorant Garamond, palette dorée et animations subtiles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Propriétaire — tous droits réservés
License URI: https://bahcrint.com
Text Domain: bahcrint
Tags: one-page, responsive, custom-menu, contact-form, rtl-language-support
*/

/* ═══════════════════════════════════════════
   BAHCRINT — style.css (WordPress Theme)
   ═══════════════════════════════════════════ */

/* ── Reset & variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0d0f14;
  --paper:  #f5f2ec;
  --warm:   #faf8f4;
  --accent: #c8a96e;
  --mid:    #6b6b7a;
  --light:  #e8e4dc;
  --rule:   #d4cec4;
  --deep:   #1a1c24;
  --deep2:  #12131a;
  --nav-h:  72px;
  --radius: 4px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Accessibilité ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── WordPress admin bar compensation ── */
.admin-bar { --nav-h: 104px; }
.admin-bar header { top: 32px; }

/* ── Curseur custom (desktop hover) ── */
@media (hover: hover) {
  body { cursor: none; }
  .cursor {
    position: fixed; width: 7px; height: 7px;
    background: var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transition: transform .15s; mix-blend-mode: multiply;
  }
  .cursor-ring {
    position: fixed; width: 30px; height: 30px;
    border: 1px solid var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transition: transform .35s; opacity: .45;
  }
}

/* ── Bannière RGPD ── */
.rgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--deep2); color: var(--paper);
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.rgpd-banner.visible { transform: translateY(0); }
.rgpd-banner p { font-size: .82rem; color: rgba(245,242,236,.65); max-width: 60ch; }
.rgpd-banner a { color: var(--accent); }
.rgpd-btns { display: flex; gap: .8rem; flex-shrink: 0; }
.rgpd-accept, .rgpd-refuse {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem 1.2rem; border: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.rgpd-accept { background: var(--accent); color: var(--ink); }
.rgpd-accept:hover { background: #d4b87a; }
.rgpd-refuse { background: rgba(255,255,255,.1); color: rgba(245,242,236,.6); }
.rgpd-refuse:hover { background: rgba(255,255,255,.18); }

/* ── Header / Nav ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; }

nav {
  height: var(--nav-h);
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
nav::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(245,242,236,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  position: relative; display: flex; align-items: center;
  text-decoration: none; height: 56px;
}
.nav-logo img { height: 56px; width: auto; display: block; }
.site-name-text {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--ink); text-decoration: none;
  letter-spacing: .06em;
}

.nav-links {
  position: relative; display: flex;
  gap: 2rem; list-style: none;
}
.nav-links li a,
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.nav-links li a:hover,
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  position: relative;
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  padding: .55rem 1.2rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--ink); }

/* Hamburger */
.nav-burger {
  position: relative; display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px; z-index: 10;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all .3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* Drawer mobile */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--paper); z-index: 190;
  flex-direction: column; padding: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; }
.nav-drawer ul li a {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink);
  text-decoration: none;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
  transition: color .2s;
}
.nav-drawer ul li a:hover { color: var(--accent); }
.drawer-cta {
  display: block; margin-top: 2rem;
  font-family: 'DM Mono', monospace;
  font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 1rem; text-align: center; text-decoration: none;
  transition: background .2s;
}
.drawer-cta:hover { background: var(--accent); color: var(--ink); }

/* ── Main content padding ── */
main { padding-top: var(--nav-h); }

/* ── Séparateur ── */
.rule {
  height: 1px; background: var(--rule);
  margin: 0 4rem; position: relative; overflow: hidden;
}
.rule::after {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 35%; height: 100%; background: var(--accent);
  animation: scan 5s ease-in-out infinite;
}

/* ── Sections communes ── */
section { padding: 6rem 4rem; }

.tag {
  font-family: 'DM Mono', monospace;
  font-size: .56rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2rem; display: block;
}

h2.st {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 300; line-height: 1.12;
  letter-spacing: -.02em; margin-bottom: 2.5rem;
}
h2.st em { font-style: italic; color: var(--accent); }

.btn-primary {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.8rem; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--accent); color: var(--ink); }

.btn-ghost {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase;
  background: transparent; color: var(--mid);
  padding: .85rem 1.8rem; text-decoration: none;
  border: 1px solid var(--rule);
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding: 0;
}
.hero-left {
  padding: 6rem 4rem;
  display: flex; flex-direction: column;
  justify-content: center; gap: 1.5rem;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
h1.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -.03em;
}
h1.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 1.05rem; color: var(--mid);
  font-weight: 300; line-height: 1.85;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-right {
  background: var(--deep);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 480px;
}
.hero-geo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: .18; animation: spin 40s linear infinite;
}
.hero-right-inner {
  position: relative; z-index: 1;
  padding: 3rem; max-width: 380px;
}
.hero-quote {
  font-size: 1.05rem; font-weight: 300; font-style: italic;
  color: rgba(245,242,236,.7); line-height: 1.65; margin-bottom: 2.5rem;
}
.hero-quote strong { font-weight: 400; color: rgba(245,242,236,.9); }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.stat-n {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-l {
  font-family: 'DM Mono', monospace;
  font-size: .52rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(245,242,236,.35);
  margin-top: .3rem;
}

/* ── Expertise ── */
.schema-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; margin-top: 3.5rem; align-items: center; }
.schema-visual {
  position: relative; width: 260px; height: 260px;
  margin: 0 auto;
}
.orbit {
  position: absolute; inset: 0;
  border: 1px solid rgba(200,169,110,.2);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.orbit-2 { inset: 30px; animation-duration: 28s; animation-direction: reverse; }
.schema-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; z-index: 2;
  width: 110px; height: 110px;
  border: 1px solid var(--accent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--paper);
}
.schema-center-label {
  font-family: 'Syne', sans-serif;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); line-height: 1.3;
}
.schema-center-sub {
  font-family: 'DM Mono', monospace;
  font-size: .44rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-top: .2rem;
}
.node {
  position: absolute;
  background: var(--warm); border: 1px solid var(--rule);
  padding: .6rem .9rem; text-align: center; min-width: 90px;
}
.node-label { font-family: 'Syne', sans-serif; font-size: .7rem; font-weight: 600; color: var(--ink); display: block; }
.node-sub { font-family: 'DM Mono', monospace; font-size: .42rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); margin-top: .15rem; display: block; }
.node-mecanique { top: -22px; left: 50%; transform: translateX(-50%); }
.node-logiciel  { bottom: -22px; left: 50%; transform: translateX(-50%); }
.node-electronique { top: 50%; right: -2.6rem; transform: translateY(-50%); }
.node-qualite { top: 50%; left: -2.6rem; transform: translateY(-50%); }

.schema-text p { font-size: .96rem; color: var(--mid); font-weight: 300; line-height: 1.85; margin-bottom: 1.2rem; }
.schema-text strong { color: var(--ink); font-weight: 400; }

.pillars-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.pillar {
  padding: 1.2rem;
  border: 1px solid var(--rule);
  background: var(--warm);
  transition: border-color .2s;
}
.pillar:hover { border-color: var(--accent); }
.pillar h3 { font-family: 'Syne', sans-serif; font-size: .78rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.pillar p { font-size: .78rem; font-weight: 300; color: var(--mid); line-height: 1.6; }

/* ── Secteurs ── */
.secteurs { background: var(--warm); }
.secteurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 3rem; }
.sect-card { background: var(--warm); padding: 2.2rem 1.8rem; transition: background .3s; }
.sect-card:hover { background: var(--paper); }
.sect-icon { margin-bottom: 1.2rem; display: block; line-height: 0; }
.sect-icon svg { width: 80px; height: 52px; display: block; transition: opacity .3s; }
.sect-card:hover .sect-icon svg { opacity: .85; }
.sect-card h3 { font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.sect-card p { font-size: .84rem; font-weight: 300; color: var(--mid); line-height: 1.7; }

/* ── À propos ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3.5rem; align-items: start; }
.about-portrait {
  background: var(--deep); aspect-ratio: 3/4;
  display: flex; align-items: flex-end; padding: 2rem;
  position: relative; overflow: hidden;
}
.about-portrait::before {
  content: 'AJ'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Syne', sans-serif; font-size: 6rem; font-weight: 800;
  color: rgba(200,169,110,.07);
}
.about-portrait-caption {
  position: relative; z-index: 1;
  font-family: 'DM Mono', monospace; font-size: .5rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,242,236,.3);
}
.about-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; margin-bottom: 1.5rem; }
.about-text h2 em { font-style: italic; color: var(--accent); }
.about-text p { font-size: .96rem; color: var(--mid); font-weight: 300; line-height: 1.85; margin-bottom: 1rem; }
.about-text strong { color: var(--ink); font-weight: 400; }

.valeurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.valeur { padding: 1.5rem; border-left: 2px solid var(--accent); }
.valeur h3 { font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.valeur p { font-size: .8rem; font-weight: 300; color: var(--mid); line-height: 1.65; }

/* Timeline */
.tl { margin-top: 2rem; }
.tl-item { display: flex; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.tl-year { font-family: 'Syne', sans-serif; font-size: .72rem; font-weight: 700; color: var(--accent); min-width: 3rem; }
.tl-body { font-size: .86rem; font-weight: 300; line-height: 1.65; color: var(--mid); }
.tl-body strong { color: var(--ink); font-weight: 400; }

/* ── Approche ── */
.approche { background: var(--warm); }
.approche-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6rem; margin-top: 3.5rem; align-items: start; }
.approche-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.approche-frame { background: var(--deep); padding: 3rem; position: relative; overflow: hidden; }
.approche-frame::before {
  content: 'BAHCRINT'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800;
  color: rgba(255,255,255,.02); letter-spacing: .25em; white-space: nowrap;
}
.approche-quote {
  font-size: 1.05rem; font-weight: 300; font-style: italic; line-height: 1.65;
  color: rgba(245,242,236,.58); position: relative; z-index: 1; margin-bottom: .8rem;
}
.approche-quote::before {
  content: '"'; font-size: 3rem; font-family: 'Cormorant Garamond', serif;
  color: var(--accent); opacity: .3; line-height: 0; display: block; margin-bottom: .9rem;
}
.approche-attr { font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); position: relative; z-index: 1; }
.approche-desc { margin-top: 1.6rem; font-size: .92rem; color: var(--mid); line-height: 1.85; font-weight: 300; }

.steps { list-style: none; }
.step { display: flex; gap: 1.8rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); }
.step:last-child { border-bottom: none; }
.step-n { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--light); line-height: 1; min-width: 2.4rem; transition: color .3s; }
.step:hover .step-n { color: var(--accent); }
.step h3 { font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.step p { font-size: .86rem; font-weight: 300; line-height: 1.75; color: var(--mid); }

/* ── Actualités ── */
.actus { background: var(--ink); color: var(--paper); }
.actus .tag { color: var(--accent); }
.actus h2.st { color: var(--paper); }
.actus h2.st em { color: var(--accent); }
.actus-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05); margin-top: 3.5rem;
}
.actu-card { background: var(--ink); padding: 2.2rem; transition: background .3s; }
.actu-card:hover, .actu-card.featured { background: var(--deep); }
.actu-type { font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.actu-card h3 { font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 600; color: var(--paper); margin-bottom: .65rem; line-height: 1.4; }
.actu-card p { font-size: .84rem; font-weight: 300; line-height: 1.7; color: rgba(245,242,236,.38); margin-bottom: 1.3rem; }
.actu-link {
  font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s;
}
.actu-link:hover { gap: .8rem; }
.actu-link::after { content: '→'; }

/* ── Contact ── */
.contact { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6rem; margin-top: 3.5rem; align-items: start; }
.contact-intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.3rem; }
.contact-intro h2 em { font-style: italic; color: var(--accent); }
.contact-intro p { font-size: .98rem; color: var(--mid); font-weight: 300; line-height: 1.85; margin-bottom: 2rem; }
.ci-list { list-style: none; }
.ci { display: flex; gap: 1.2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.ci-lbl { font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); min-width: 4.5rem; }
.ci-val { font-size: .9rem; color: var(--mid); }
.ci-val a { color: var(--mid); text-decoration: none; }
.ci-val a:hover { color: var(--accent); text-decoration: underline; }

.form-group { margin-bottom: 1.2rem; }
.form-label { font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mid); display: block; margin-bottom: .4rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--warm); border: 1px solid var(--rule);
  color: var(--ink); padding: .8rem .9rem;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1rem;
  outline: none; transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); background: var(--paper); }
.form-input.error, .form-textarea.error, .form-select.error { border-color: #cc2200; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-rgpd { display: flex; align-items: flex-start; gap: .75rem; }
.form-rgpd input[type="checkbox"] { margin-top: .25rem; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.form-rgpd label { font-size: .82rem; color: var(--mid); line-height: 1.5; cursor: pointer; }
.form-rgpd a { color: var(--accent); }

#formMessage { font-size: .9rem; padding: .8rem 0; min-height: 1.5rem; }
#formMessage.success { color: #2a7a2a; }
#formMessage.error-msg { color: #cc2200; }

.btn-submit {
  font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; background: var(--ink); color: var(--paper);
  padding: .95rem 2rem; border: none; cursor: pointer; width: 100%;
  margin-top: .5rem; transition: background .2s, color .2s;
}
.btn-submit:hover { background: var(--accent); color: var(--ink); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ── Footer ── */
footer {
  background: var(--deep2); padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-logo-link { display: flex; align-items: center; text-decoration: none; }
.footer-logo-link img { height: 32px; width: auto; display: block; }
.footer-logo-text {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  font-weight: 800; color: var(--paper); letter-spacing: .06em;
  text-decoration: none;
}
.f-copy { font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .12em; color: rgba(255,255,255,.18); text-transform: uppercase; }
.f-links { display: flex; gap: 1.8rem; list-style: none; }
.f-links a { font-family: 'DM Mono', monospace; font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.22); text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--accent); }

/* ── Pages légales ── */
.legal-page { max-width: 720px; margin: 0 auto; padding: 8rem 2rem 6rem; }
.legal-page h1 { font-size: clamp(1.8rem,3vw,2.5rem); font-weight:300; margin-bottom:2rem; }
.legal-page h1 em { font-style:italic; color:var(--accent); }
.legal-page h2 { font-family:'Syne',sans-serif; font-size:1rem; font-weight:600; margin:2rem 0 .6rem; color:var(--ink); }
.legal-page p, .legal-page li { font-size:.96rem; font-weight:300; line-height:1.85; color:var(--mid); margin-bottom:.8rem; }
.legal-page ul { padding-left:1.5rem; margin-bottom:1rem; }
.legal-page a { color:var(--accent); }
.legal-page .update { font-family:'DM Mono',monospace; font-size:.6rem; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); margin-bottom:2rem; display:block; }

/* ── Page 404 ── */
.error-page { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:2rem; }
.error-code { font-family:'Syne',sans-serif; font-size:8rem; font-weight:800; color:var(--light); line-height:1; margin-bottom:1rem; }
.error-page h1 { font-size:2rem; font-weight:300; margin-bottom:1rem; }
.error-page h1 em { font-style:italic; color:var(--accent); }
.error-page p { color:var(--mid); font-size:1rem; margin-bottom:2rem; max-width:40ch; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan { 0% { left: -60%; } 100% { left: 160%; } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive tablette ── */
@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 0 2rem; }
  section { padding: 5rem 3rem; }
  .rule { margin: 0 3rem; }
  .schema-layout, .about-grid { gap: 3rem; }
  .approche-layout, .contact-layout { gap: 3rem; }
  .secteurs-grid { grid-template-columns: 1fr 1fr; }
  .valeurs-grid { grid-template-columns: 1fr 1fr; }
  .actus-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: .55rem; }
}

/* ── Responsive mobile ── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 1.2rem; }
  .nav-logo { height: 46px; }
  .nav-logo img { height: 46px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }
  section { padding: 4rem 1.4rem; }
  .rule { margin: 0 1.4rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.4rem 3rem; }
  h1.hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-desc { max-width: 100%; font-size: 1rem; }
  .hero-right { min-height: 280px; }
  .hero-right-inner { padding: 1.6rem; }
  .hero-quote { font-size: .95rem; margin-bottom: 1.5rem; }
  .stat-n { font-size: 1.6rem; }
  .schema-layout, .about-grid, .approche-layout, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .schema-visual { max-width: 260px; margin: 0 auto; }
  .node { min-width: 80px; padding: .55rem .8rem; }
  .node-label { font-size: .68rem; }
  .node-electronique { right: -1.8rem; }
  .node-qualite { left: -1.8rem; }
  .pillars-mini { grid-template-columns: 1fr; }
  .secteurs-grid, .actus-grid { grid-template-columns: 1fr; }
  .valeurs-grid { grid-template-columns: 1fr 1fr; }
  .approche-sticky { position: relative; top: auto; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.4rem; }
  .f-links { justify-content: center; flex-wrap: wrap; }
  .rgpd-banner { flex-direction: column; }
}

@media (max-width: 400px) {
  .valeurs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-n { font-size: 1.4rem; }
}
