/* ============================================
   TOKENS — toutes les couleurs/tailles du site
   partent d'ici. Change une valeur ici, elle se
   répercute partout.
   ============================================ */
:root {
  /* Couleurs "plan technique" (blueprint) */
  --navy: #16233d;
  --navy-light: #1f3352;
  --blue-line: #4c7ea8;
  --blue-line-soft: rgba(76, 126, 168, 0.35);

  /* Couleurs "papier / carnet" */
  --paper: #edece3;
  --paper-line: #d9d7c9;
  --paper-card: #f7f6f0;

  /* Encre rouge — annotations, accents, CTA */
  --red-ink: #c1440e;
  --red-ink-dark: #9c360a;

  /* Texte */
  --text-dark: #1c1f1a;
  --text-muted: #5b5f54;
  --text-on-navy: #edf1f5;
  --text-on-navy-muted: #9fb2c9;

  /* Typo */
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-sans: 'Work Sans', system-ui, sans-serif;

  /* Rythme */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container-width: 1120px;
}
.linkedin-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.5);
    transition: 0.25s ease;
}

.linkedin-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.linkedin-icon:hover {
    color: #0a66c2;
    transform: translateY(-2px);
}

/* ============================================
   RESET — base minimale et raisonnable
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-mono);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Focus clavier visible partout — accessibilité */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red-ink);
  outline-offset: 3px;
}

/* ============================================
   TEXTES UTILITAIRES
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--text-on-navy-muted);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--red-ink); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-ink-dark);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section__intro {
  max-width: 46ch;
  color: var(--text-muted);
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border: none;
  cursor: pointer;
}

/* Bouton "post-it" — légèrement penché, couleur encre rouge */
.btn--sticky {
  background: var(--red-ink);
  color: #fff8f0;
  transform: rotate(-1.2deg);
  box-shadow: 3px 4px 0 rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--sticky:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 4px 6px 0 rgba(0,0,0,0.22);
}

.btn--form { transform: rotate(0deg); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 35, 61, 0.92);
  backdrop-filter: blur(6px);
}

.nav {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-on-navy);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav__logo-dot { color: var(--red-ink); }

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  color: var(--text-on-navy);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.nav__menu a:hover { color: var(--red-ink); }

.nav__cta {
  border: 1px solid var(--blue-line);
  padding: 0.5em 1em;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-on-navy);
  display: block;
}

/* ============================================
   HERO — plan technique / blueprint
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--text-on-navy);
  overflow: hidden;
  padding: var(--section-padding) 1.5rem;
}

/* Quadrillage façon plan d'architecte, en fond */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blue-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 40%, transparent 85%);
  opacity: 0.6;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin-inline: auto;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero__title--small { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 16ch; }

/* Terminal simulé */
.terminal {
  max-width: 560px;
  background: #0f1826;
  border: 1px solid var(--blue-line-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: #0a1119;
  border-bottom: 1px solid var(--blue-line-soft);
}
.terminal__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-line-soft);
}
.terminal__filename {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-on-navy-muted);
}

.terminal__body {
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  min-height: 2.4em;
}
.terminal__prompt { color: var(--red-ink); margin-right: 0.6em; }
.terminal__text { color: #d5e4f0; }
.terminal__cursor {
  color: var(--red-ink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__annotation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__arrow { flex-shrink: 0; }

.hero--contact {
  min-height: auto;
  padding-block: var(--section-padding);
}
.hero__content--contact { max-width: 620px; }
.contact__lead { color: var(--text-on-navy-muted); max-width: 48ch; }

/* ============================================
   SECTIONS "PAPIER"
   ============================================ */
.section {
  position: relative;
  padding: var(--section-padding) 0;
}
.section--paper { background: var(--paper); }

.section__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   À PROPOS
   ============================================ */
.about {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Fiche "carte index" */
.index-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  box-shadow: 5px 5px 0 rgba(22,35,61,0.08);
  padding: 1.5rem;
}
.index-card__header {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--red-ink-dark);
  border-bottom: 1px dashed var(--paper-line);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}
.index-card__list { margin: 0; }
.index-card__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--paper-line);
  font-size: 0.88rem;
}
.index-card__list dt { color: var(--text-muted); }
.index-card__list dd { margin: 0; font-weight: 600; text-align: right; }

/* ============================================
   PROJETS
   ============================================ */
.projects-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  box-shadow: 4px 4px 0 rgba(22,35,61,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 rgba(22,35,61,0.12);
}

.project-card__tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #e4e2d5;
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--paper-line);
}

.project-card__preview {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Motifs générés en CSS pur pour remplacer des vraies captures d'écran */
.project-card__preview--restaurant {
  background: repeating-linear-gradient(135deg, #8c3b28, #8c3b28 10px, #7a3221 10px, #7a3221 20px);
}
.project-card__preview--salon {
  background: repeating-linear-gradient(135deg, #4c7ea8, #4c7ea8 10px, #3f6a8f 10px, #3f6a8f 20px);
}
.project-card__preview--artisan {
  background: repeating-linear-gradient(135deg, #6b5b3e, #6b5b3e 10px, #594c34 10px, #594c34 20px);
}

.project-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.project-card__body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.project-card__body p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ============================================
   TARIFS
   ============================================ */
.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.quote-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  padding: 2rem 1.6rem 1.8rem;
}

.quote-card--highlight {
  border-color: var(--red-ink);
  box-shadow: 5px 5px 0 rgba(193,68,14,0.15);
}

.quote-card__stamp {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-ink);
  border: 1px solid var(--red-ink);
  padding: 0.2em 0.5em;
  transform: rotate(4deg);
}

.quote-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.quote-card__desc { color: var(--text-muted); font-size: 0.9rem; }
.quote-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.88rem;
}
.quote-card li {
  padding: 0.4rem 0;
  border-top: 1px dotted var(--paper-line);
}
.quote-card li:first-child { border-top: none; }

.pricing-note {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */
.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-on-navy-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.7em 0.9em;
  background: #0f1826;
  border: 1px solid var(--blue-line-soft);
  color: var(--text-on-navy);
  border-radius: 3px;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red-ink); }

.contact-form__status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #8fd19e;
  min-height: 1.2em;
}

.contact-alt a {
  font-family: var(--font-mono);
  color: var(--text-on-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: var(--text-on-navy-muted);
  text-align: center;
  font-size: 0.8rem;
  padding: 1.6rem;
  font-family: var(--font-mono);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav__menu.is-open { max-height: 300px; }
  .nav__menu li { width: 100%; }
  .nav__menu a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__cta { border: none; }
}
