/* ============================================
   Agence Ossao — V3 "Bold / Poster"
   Noir + orange, typo grotesque, blocs pleins,
   bordures franches, ombres dures.
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --line: #2e2e2e;
  --text: #f5f5f2;
  --text-muted: #adada6;
  --text-faint: #6d6d67;
  --orange: #f4a261;
  --orange-ink: #0a0a0a;
  --sans: 'Fraunces', 'Playfair Display', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 560; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.hl {
  background: var(--orange);
  color: var(--orange-ink);
  padding: 0 8px;
  display: inline-block;
  transform: rotate(-1deg);
}

/* ---------- Header ---------- */

.v3-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.v3-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.v3-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.v3-brand .mark {
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: var(--orange-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
}

.v3-links { display: flex; align-items: center; gap: 34px; }

.v3-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.v3-links a:hover { color: var(--orange); }

.v3-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--orange);
  color: var(--orange-ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--orange);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.v3-cta:hover { background: transparent; color: var(--orange); }

.v3-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .v3-links {
    position: fixed;
    inset: 74px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 30px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--line);
  }
  .v3-links.open { transform: translateY(0); }
  .v3-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .v3-cta { display: none; }
  .v3-toggle { display: block; }
}

/* ---------- Hero ---------- */

.v3-hero { padding: 90px 0 0; overflow: hidden; }

.v3-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 26px;
}

.v3-label::before { content: '●'; font-size: 0.6rem; }

.v3-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 980px;
}

.v3-hero .lead {
  max-width: 520px;
  margin-top: 30px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.v3-hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.btn-v3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--text);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-v3-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--orange-ink);
}
.btn-v3-primary:hover { background: transparent; color: var(--orange); }

.btn-v3-ghost { background: transparent; color: var(--text); }
.btn-v3-ghost:hover { background: var(--text); color: var(--bg); }

/* Marquee strip */
.v3-marquee {
  margin-top: 80px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  white-space: nowrap;
}

.v3-marquee-track {
  display: inline-flex;
  gap: 40px;
  padding: 16px 0;
  animation: v3scroll 22s linear infinite;
}

.v3-marquee span {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 40px;
}

@keyframes v3scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section wrapper ---------- */

.v3-section { padding: 100px 0; border-top: 2px solid var(--line); }

.v3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }

.v3-head-left { display: flex; align-items: center; gap: 20px; }

.v3-num-badge {
  width: 54px;
  height: 54px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 640px;
}

.v3-head .intro { max-width: 340px; font-size: 0.95rem; }

/* ---------- Stat strip ---------- */

.v3-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--line);
}

.v3-stats > div {
  padding: 34px 30px;
  border-right: 2px solid var(--line);
}
.v3-stats > div:last-child { border-right: none; }

@media (max-width: 700px) {
  .v3-stats { grid-template-columns: 1fr; }
  .v3-stats > div { border-right: none; border-bottom: 2px solid var(--line); }
  .v3-stats > div:last-child { border-bottom: none; }
}

.v3-stats .val { font-family: var(--sans); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--orange); }
.v3-stats .lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Expertise cards ---------- */

.v3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.v3-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  background: var(--bg-card);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.v3-card:hover { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.v3-card:hover p { color: var(--orange-ink); }
.v3-card:hover .v3-card-tag { color: var(--orange-ink); }
.v3-card:hover .card-link-v3 { color: var(--orange-ink); }

.v3-card-tag {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 18px;
  transition: color 0.2s ease;
}

.v3-card h3 { font-size: 1.25rem; margin-bottom: 12px; text-transform: none; }
.v3-card p { font-size: 0.92rem; margin-bottom: 0; }

.card-link-v3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

.v3-feature-list { margin-top: 16px; }

.v3-feature-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.v3-feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  transition: color 0.2s ease;
}

.v3-card:hover .v3-feature-list li { color: var(--orange-ink); }
.v3-card:hover .v3-feature-list li::before { color: var(--orange-ink); }

.v3-card.ghost {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-faint);
}
.v3-card.ghost:hover { background: var(--bg-card); border-color: var(--line); color: var(--text-faint); }
.v3-card.ghost:hover p { color: var(--text-faint); }
.v3-card.ghost h3 { color: var(--text-muted); font-size: 1.1rem; text-transform:none; }

/* ---------- Réalisations ---------- */

.v3-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.v3-project-card { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }

.v3-project-visual {
  height: 180px;
  background: repeating-linear-gradient(45deg, var(--bg-card) 0 12px, #191919 12px 24px);
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v3-project-visual svg { width: 32px; height: 32px; stroke: var(--text-faint); }

.v3-project-body { padding: 24px 24px 26px; }

.v3-project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange-ink);
  background: var(--orange);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.v3-project-body h3 { font-size: 1.1rem; margin-bottom: 8px; text-transform: none; }
.v3-project-body p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Certifications ---------- */

.v3-cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.v3-cert-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 40px 24px 32px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.v3-cert-card:hover { border-color: var(--orange); }

.v3-cert-logo {
  max-height: 96px;
  max-width: 200px;
  width: auto;
  margin: 0 auto 28px;
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.v3-cert-card:hover .v3-cert-logo {
  filter: none;
  opacity: 1;
}

.v3-cert-card .cert-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 2px solid var(--line);
  padding-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Boîte à outils ---------- */

.v3-tools { border-top: 2px solid var(--line); }

.v3-tool-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 2px solid var(--line);
  align-items: center;
}

@media (max-width: 700px) { .v3-tool-row { grid-template-columns: 1fr; gap: 12px; } }

.v3-tool-row .cat {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.v3-tool-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.v3-tool-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.v3-tool-pill:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Contact / closing ---------- */

.v3-contact {
  background: var(--orange);
  color: var(--orange-ink);
  padding: 110px 0;
  text-align: center;
}

.v3-contact .v3-label { color: var(--orange-ink); justify-content: center; display: flex; }

.v3-contact h2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 820px;
  margin: 0 auto 36px;
  color: var(--orange-ink);
}

.v3-contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-v3-dark {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--text);
}
.btn-v3-dark:hover { background: transparent; border-color: var(--orange-ink); color: var(--orange-ink); }

.btn-v3-outline-dark { border-color: var(--orange-ink); color: var(--orange-ink); }
.btn-v3-outline-dark:hover { background: var(--orange-ink); color: var(--orange); }

.v3-contact-email {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
}

.v3-note { font-size: 0.8rem; margin-top: 14px; opacity: 0.7; }

/* ---------- Page Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form { display: flex; flex-direction: column; }

.v3-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.v3-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.v3-field input,
.v3-field textarea {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.v3-field input::placeholder,
.v3-field textarea::placeholder { color: var(--text-faint); }

.v3-field input:focus,
.v3-field textarea:focus { outline: none; border-color: var(--orange); }

.v3-field textarea { resize: vertical; min-height: 150px; }

.contact-form .btn-v3 {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--body);
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .v3-card { padding: 26px 26px; }
.contact-info .v3-card h3 { font-size: 1.1rem; margin-bottom: 8px; text-transform: none; }
.contact-info .v3-card p { font-size: 0.88rem; margin-bottom: 0; }
.contact-info .v3-card a:hover { color: var(--orange); }

/* ---------- Page légale ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 44px;
  margin-bottom: 16px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--text); }

/* ---------- Footer ---------- */

.v3-footer { padding: 30px 0; }

.v3-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.v3-footer a { color: var(--text-faint); }
.v3-footer a:hover { color: var(--orange); }
.v3-footer .footer-links { display: flex; gap: 22px; }

/* ---------- Curseur personnalisé ---------- */

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--orange);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .cursor-ring.is-hovered {
    width: 58px;
    height: 58px;
    background: rgba(244, 162, 97, 0.14);
  }

  .cursor-ring.is-hidden,
  .cursor-dot.is-hidden { opacity: 0; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
