/* ============ RESET & VARIABLES ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --border: #1f1f1f;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --font-title: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
  --radius: 12px;
  --container: 1140px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ BOUTONS ============ */
.btn {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  white-space: nowrap;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--text);
  opacity: 1;
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.nav__logo span {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.nav__links a:not(.btn) {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

.nav__links a.is-active {
  color: var(--text);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  padding: 200px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.hero__tag {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #ffffff, #777777);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ EN-TÊTE DE PAGE INTERNE ============ */
.page-hero {
  padding: 180px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #ffffff, #777777);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============ STATS ============ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
}

.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ============ SECTIONS ============ */
.section {
  padding: 120px 0;
}

.section__tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 500;
  margin-bottom: 56px;
}

.section--alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.section__more {
  text-align: center;
  margin-top: 48px;
}

/* ============ CTA ============ */
.cta {
  padding: 110px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ============ SERVICES ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--bg-soft);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: #3a3a3a;
  transform: translateY(-4px);
}

.card__num {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ============ RÉALISATIONS ============ */
.works {
  display: grid;
  /* s'adapte au nombre de projets : 3 colonnes en desktop, 2 puis 1 en dessous */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.work {
  display: block;
}

.work__img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0e0e0e, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: var(--font-title);
  font-size: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.work:hover .work__img {
  border-color: #3a3a3a;
}

/* Chaque vignette reprend la direction artistique du site présenté */
.work__name {
  display: block;
  padding: 0 18px;
  text-align: center;
  line-height: 1.1;
  transition: transform 0.5s ease;
}

.work:hover .work__name {
  transform: scale(1.05);
}

/* Pons 360 — noir et orange, typo sport */
.work__img--pons {
  background: radial-gradient(ellipse at 50% 118%, rgba(255, 95, 31, 0.30), transparent 64%), #080808;
}

.work__img--pons .work__name {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #ffffff;
}

.work__img--pons em {
  font-style: normal;
  color: #ff5f1f;
}

/* Simensis Production — noir et crème, serif éditorial */
.work__img--simensis {
  background: radial-gradient(ellipse at 50% -10%, rgba(245, 245, 240, 0.11), transparent 62%), #080808;
}

.work__img--simensis .work__name {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #f5f5f0;
}

.work__img--simensis em {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-weight: 400;
  font-size: 0.66em;
  letter-spacing: 4px;
  color: #8d8d88;
}

/* AG Formation — noir et bleu électrique */
.work__img--ag {
  background: radial-gradient(ellipse at 50% 112%, rgba(1, 79, 250, 0.38), transparent 62%), #08090a;
}

.work__img--ag .work__name {
  font-family: var(--font-body);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #014ffa;
}

.work__img--ag em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.38em;
  font-weight: 400;
  letter-spacing: 6px;
  color: #ffffff;
}

.work__info {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work__info h3 {
  font-size: 24px;
  font-weight: 600;
}

.work__info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ MÉTHODE ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
}

.step h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ============ TARIFS ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price--featured {
  border-color: #4a4a4a;
}

.price__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.price__desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.price ul {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.price li {
  font-size: 15px;
  color: var(--text-muted);
  padding: 9px 0 9px 26px;
  position: relative;
}

.price li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text);
}

/* ============ CONTACT ============ */
.section--contact {
  border-top: 1px solid var(--border);
}

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

.contact__text .section__title {
  margin-bottom: 24px;
}

.contact__text p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
}

.contact__note {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 20px;
}

.contact__mail {
  font-family: var(--font-title);
  font-size: 24px;
  font-style: italic;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.contact__mail:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.contact__form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--bg-soft);
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #555;
}

.field ::placeholder {
  color: #555;
}

.form__status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 1em;
}

.form__status.is-success {
  color: #7fe0a4;
}

.form__status.is-error {
  color: #e07f7f;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__social svg {
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__legal {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer__legal a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--text);
}

.footer__links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text);
}

/* ============ BLOCS DE TEXTE ÉDITORIAL ============ */
.prose {
  max-width: 760px;
}

.prose p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.prose h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.prose li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 9px;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* ============ PAGES LÉGALES ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 52px 0 18px;
}

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

.legal h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal p {
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 9px;
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

.legal a {
  border-bottom: 1px solid #3a3a3a;
  transition: border-color 0.2s ease;
}

.legal a:hover {
  border-bottom-color: var(--text);
}

.legal__updated {
  font-size: 13px;
  color: #6a6a6a;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Marqueur temporaire : doit disparaître avant la mise en ligne */
.todo {
  display: inline-block;
  background: #3a2f00;
  color: #ffd66b;
  font-size: 13px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 4px;
}

/* ============ ANIMATIONS (scroll reveal) ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ ANIMATION REDUITE ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
