/* ===========================================================
   Damien Musy — Lead Tech Mobile · Landing
   Charte : identite.md (accent unique, traits droits, mono data)
   Largeur de colonne : 1000 px
   =========================================================== */

:root {
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #2c5282;
  --accent-dark: #213f63;
  --border: #d8dde3;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-dark: #14181f;
  --page: 1000px;
  --gutter: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ——— Colonne page (1000px) ——— */
.page {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  background: var(--bg);
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--dark {
  background: var(--text);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

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

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

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__brand span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.nav__cta {
  padding: 9px 18px;
  font-size: 13px;
}

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

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.eyebrow,
.section-eyebrow,
.offer__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero {
  padding: 88px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero__title {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__accent {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}

.hero__lede {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 17px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.hero__note {
  margin: 26px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* =========================================================
   Piliers
   ========================================================= */
.services-head {
  padding-top: 64px;
}

.services-head + .pillars {
  margin-top: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin: 56px 0;
}

.pillar {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}

.pillar:last-child {
  border-right: none;
}

.pillar__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.pillar__text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   Offres
   ========================================================= */
.offers {
  padding: 8px 0 56px;
}

.offer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.offer:first-child {
  border-top: none;
}

.offer__head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.offer__index {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 48px;
}

.offer__title {
  margin: 4px 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.offer__desc {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.offer__body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
  padding-left: 70px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.offer__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer__cta {
  width: 100%;
}

.facts {
  margin: 0;
  border: 1px solid var(--border);
}

.facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.facts > div:last-child {
  border-bottom: none;
}

.facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   Sections génériques
   ========================================================= */
.section-title {
  margin: 0 0 32px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =========================================================
   Projets
   ========================================================= */
.projects {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-soft),
      var(--bg-soft) 10px,
      #eceef1 10px,
      #eceef1 20px
    );
  border: 1px solid var(--border);
  overflow: hidden;
}

.project__thumb::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3ad;
}

.project__title {
  margin: 14px 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.project__tags {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   À propos
   ========================================================= */
.about {
  display: flex;
  gap: 40px;
  align-items: stretch;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.about__photo {
  flex: 0 0 auto;
  align-self: stretch;
  position: relative;
  width: 0;
}

.about__text {
  flex: 1;
  min-width: 0;
}

.about__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
}

.about__text p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Témoignages
   ========================================================= */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.quote {
  margin: 0;
  padding: 24px 26px;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
}

.quote p {
  margin: 0 0 14px;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
}

.quote__by {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta__title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta__sub {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.contact-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-card__value {
  font-size: 16px;
  font-weight: 600;
}

.contact-card--dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.contact-card--dark .contact-card__label {
  color: #9db4d6;
}

.contact-card--dark:hover {
  background: #000;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bg-dark);
  color: #c7ccd3;
}

.footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.footer__meta {
  margin: 0;
  font-size: 12px;
}

.footer__meta a {
  color: #9db4d6;
}

/* =========================================================
   Révélation au scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  :root {
    --gutter: 22px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    margin-left: 0;
  }

  .nav__links.is-open a {
    padding: 14px var(--gutter);
    border-top: 1px solid var(--border);
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__accent {
    font-size: 21px;
  }

  .pillars,
  .projects__grid,
  .quotes,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pillar:last-child {
    border-bottom: none;
  }

  .offer__body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 0;
  }

  .about {
    flex-direction: column;
    align-items: flex-start;
  }

  .about__photo {
    align-self: flex-start;
    width: 160px;
    height: 160px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__dialog {
    padding: 28px 22px;
  }

  /* Écran 2 : calendrier au-dessus, heures en dessous. */
  .scheduler {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .slots__list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }

  .slot {
    flex: 1 1 calc(33.333% - 4px);
  }
}

/* =========================================================
   Popup prise de rendez-vous
   ========================================================= */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
  overflow-y: auto;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 31, 0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--border);
  padding: 36px 40px;
  box-shadow: 0 24px 60px rgba(20, 24, 31, 0.25);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

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

.modal__step {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal__back {
  font: inherit;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.modal__back:hover {
  text-decoration: underline;
}

.modal__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal__sub {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
}

/* ——— Formulaire ——— */
.rdv-field {
  display: block;
  margin-bottom: 16px;
}

.rdv-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.rdv-field input {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
}

.rdv-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.rdv-field input.is-invalid {
  border-color: #b3261e;
}

.rdv-error {
  margin: 0 0 16px;
  font-size: 13px;
  color: #b3261e;
}

.rdv-form__submit {
  width: 100%;
}

/* ——— Planificateur (calendrier + heures) ——— */
.scheduler {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 28px;
  align-items: start;
}

.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar__month {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.calendar__nav {
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
}

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

.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar__weekdays {
  margin-bottom: 6px;
}

.calendar__weekdays span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
}

.calendar__grid {
  gap: 2px;
}

.calendar__day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
}

.calendar__day:hover:not(:disabled) {
  border-color: var(--accent);
}

.calendar__day:disabled {
  color: #c2c8d0;
  background: transparent;
  cursor: default;
}

.calendar__day.is-selected {
  background: var(--accent);
  color: #fff;
}

.calendar__day--empty {
  background: none;
  border: none;
  cursor: default;
}

/* ——— Liste des heures ——— */
.slots__label {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.slots__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.slot {
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  text-align: center;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
}

.slot:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.slots__empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
