/* ===== Tokens (valeurs issues de la maquette Figma) ===== */
:root {
  --navy: #0e182d;
  --ink: #0b132b;
  --text: #1a1819;
  --red: #fc4d4d;
  --white: #ffffff;
  --warm-1: #e6c8bf;
  --warm-2: #bcb3b3;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jakarta: "Plus Jakarta Sans", var(--sans);

  --page: 1440px;

  /* Marges latérales communes : jamais collé au bord, contenu centré sur grand écran */
  --gutter: clamp(24px, 6vw, 96px);
  --content: 1248px;
  --pad-x: max(var(--gutter), calc((100% - var(--content)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  min-height: 906px;
  display: flex;
  flex-direction: column;
  background: #b9c7bf url("../images/background.png") center / cover no-repeat;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 25px var(--gutter); /* menu et bouton plus proches des bords, logo centré */
  background: rgba(255, 255, 255, 0.1);
}
.topbar__links { display: flex; gap: 30px; }
.topbar__links a {
  display: block;
  padding: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(14, 24, 45, 0.8);
}
.topbar__links a:hover { color: var(--red); }
.topbar__logo { display: flex; align-items: center; }
.topbar__logo img { width: 265px; height: auto; }

.btn-chat {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 141px;
  height: 38px;
  border-radius: 5px;
  background: var(--red);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background .2s;
}
.btn-chat:hover { background: #e63c3c; color: #fff; }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 105px var(--gutter) 100px; /* aligné sur le menu */
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 104px;
  line-height: 0.95; /* resserré, mais le J ne touche plus le l de "les idées" */
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hero__title em {
  display: inline-block;
  margin-top: 0.1em; /* "les idées" un peu plus bas : ne colle plus au J de "Je" */
  font-style: italic;
  color: var(--red);
}

.hero__footer { margin-top: auto; }
.hero__role {
  font-family: var(--jakarta);
  font-weight: 800;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__role span { color: var(--red); }
.hero__tagline {
  margin-top: 19px;
  font-family: var(--jakarta);
  font-weight: 800;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  color: var(--navy);
}

.nowrap { white-space: nowrap; }

/* ===== CURSEUR ===== */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-visible { opacity: 1; }
.cursor::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--red);
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}
.cursor.is-hover::before {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(252, 77, 77, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ===== BANDES ===== */
.band {
  display: flex;
  align-items: center;
  height: 107px;
  overflow: hidden;
  color: var(--white);
}
.band--red { background: var(--red); }
.band__track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.band__list {
  display: flex;
  flex-shrink: 0;
  gap: 48px;
  padding-right: 48px;
}
.band__list li {
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.band__list .band__wide { font-weight: 500; letter-spacing: 3px; }

.band--navy { background: var(--navy); }
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-size: 20px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { flex-shrink: 0; margin-right: 45px; }
.marquee__a { font-family: var(--jakarta); font-weight: 500; }
.marquee__b { font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== FOND CHAUD ===== */
.warm {
  background: linear-gradient(180deg,
    #fbf5d5 0%,     /* crème (haut d'À propos) */
    #f2dcc6 18%,
    #e9c7bb 34%,    /* pêche (bande Projets) */
    #e3c3b8 58%,
    #c9bcb2 74%,
    #a9bab3 88%,    /* vert sauge (contact) */
    #93aba7 100%);
}

/* Label rouge commun (À PROPOS / DU GOÛT À L'INTERFACE) */
.label {
  font-weight: 800;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 2.75px;
  text-transform: uppercase;
  color: var(--red);
}

/* ===== À PROPOS ===== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 568px);
  justify-content: space-between;
  align-items: center; /* photo centrée verticalement sur le bloc de texte */
  column-gap: clamp(64px, 9vw, 150px);
  padding: 83px var(--pad-x) 160px;
}
.about__photo {
  display: block;
  margin-left: calc(var(--gutter) * -0.5); /* déborde vers la gauche, dans la marge */
  width: 100%;
  height: auto; /* pas de recadrage : on garde les bords déchirés du PNG */
  filter: drop-shadow(0 16px 32px rgba(14, 24, 45, 0.18));
}
.about__text {
  margin-top: 40px;
  font-size: 16px;
  line-height: 36px;
  color: var(--text);
}
.about__text + .about__text { margin-top: 18px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 14px;
  max-width: 330px;
  margin-top: 60px;
}
.tags li {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 5px 14px;
  border: 1px solid var(--red);
  border-radius: 100px;
  background: var(--white);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

/* ===== PROJETS ===== */
.projects {
  padding: 127px var(--pad-x) 0;
}
.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 92px;
}
.projects__title {
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 2.75px;
  text-transform: uppercase;
  color: var(--red);
}
.projects__intro {
  max-width: 486px;
  text-align: right;
  font-size: 22px;
  line-height: 24px;
  color: var(--ink);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  column-gap: clamp(64px, 11vw, 200px);
}
.project + .project { margin-top: 80px; }

.project__card {
  display: grid;
  place-items: center;
  margin-left: calc(var(--gutter) * -0.75); /* déborde vers la gauche, dans la marge */
  aspect-ratio: 667 / 400;
  border-radius: 20px;
  background: var(--navy);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
}
a.project__card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
a.project__card:hover,
a.project__card:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
}
/* Cartes avec photo floutée en fond */
.project__card--marolles,
.project__card--rootsy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.project__card--marolles::before,
.project__card--rootsy::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  filter: blur(6px) brightness(0.7);
}
.project__card--marolles h3,
.project__card--rootsy h3 { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
/* Marolles : Palais de Justice */
.project__card--marolles::before {
  background: url("../images/heropalais-card.jpg") center / cover no-repeat;
}
/* Rootsy : pluie de chips */
.project__card--rootsy::before {
  background: url("../images/lluvia-chips-card.jpg") center / cover no-repeat;
  filter: blur(6px) brightness(0.5);
}
.project__card h3 {
  font-weight: 800;
  font-size: 52px;
  letter-spacing: 2.75px;
  text-transform: uppercase;
  color: var(--red);
}

.project__info {
  display: flex;
  flex-direction: column;
  padding: 29px 0 22px;
}
.project__kind {
  font-weight: 800;
  font-size: 20px;
  line-height: 16.5px;
  letter-spacing: 2.75px;
  text-transform: uppercase;
  color: #000;
}
.project__desc {
  margin-top: 18px;
  max-width: 405px;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  line-height: 20px;
  color: var(--navy);
}
.project__sub {
  margin-top: 25px;
  font-weight: 700;
  font-size: 16px;
  line-height: 16.5px;
  letter-spacing: 2.75px;
  text-transform: uppercase;
  color: #000;
}
.bullets { display: flex; flex-direction: column; gap: 15px; margin-top: 27px; max-width: 405px; }
.bullets li {
  position: relative;
  padding-left: 19px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 2.75px;
  text-transform: uppercase;
  color: #000;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.more {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 27px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
}
.more svg { transition: transform .2s; }
.more:hover svg { transform: translateX(4px); }

/* ===== CONTACT ===== */
.contact {
  padding: 291px var(--pad-x) 47px;
}
.contact__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-left: 10px;
}
.contact__title {
  max-width: 567px;
  font-weight: 400;
  font-size: 52px;
  line-height: 47px;
  color: var(--white);
}
.contact__title em {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 59px;
  color: var(--red);
}
.contact__mail {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 4px solid var(--red);
  font-weight: 700;
  font-size: 25px;
  line-height: 49px;
  color: var(--ink);
}
.contact__mail:hover { color: var(--red); }
.contact__dispo {
  margin-top: 12px;
  max-width: 507px;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  line-height: 30px;
  color: var(--navy);
}
.contact__logo { width: 251px; height: 252px; object-fit: contain; margin-top: 13px; }

.contact__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding: 36px 15px 0;
  border-top: 4px solid var(--navy);
  font-weight: 700;
  font-size: 20px;
  line-height: 40px;
  color: var(--navy);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .about { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .project { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 48px; }
  .bullets li { letter-spacing: 1.5px; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; padding: 20px 24px; }
  .topbar__links { display: none; }
  .topbar__logo img { width: 200px; }
  .hero { min-height: 100svh; }
  .hero__content { padding: 64px 24px 56px; }
  .hero__title { font-size: clamp(36px, 12vw, 104px); }
  .hero__tagline { line-height: 1.45; }
  .topbar { column-gap: 16px; }

  .band { height: 80px; }

  .label { font-size: 21px; letter-spacing: 2px; }
  .about { grid-template-columns: 1fr; padding: 64px 24px 96px; row-gap: 56px; }
  .about__photo { width: min(420px, 100%); margin: 0 auto; }
  .about__text { margin-top: 32px; line-height: 30px; }
  .about__text + .about__text { margin-top: 16px; }
  .tags { margin-top: 40px; }

  .projects { padding: 80px 24px 0; }
  .projects__head { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
  .projects__title { font-size: 40px; }
  .projects__intro { text-align: left; font-size: 18px; }
  .project { grid-template-columns: 1fr; row-gap: 24px; }
  .project__card { margin-left: 0; }
  .project + .project { margin-top: 64px; }
  .project__card h3 { font-size: 40px; }
  .project__info { padding: 0; }
  .bullets li { letter-spacing: 1.5px; font-size: 14px; }

  .contact { padding: 160px 24px 32px; }
  .contact__main { flex-direction: column-reverse; padding-left: 0; }
  .contact__logo { width: 140px; height: 141px; margin-top: 0; }
  .contact__title { font-size: 40px; line-height: 40px; }
  .contact__title em { font-size: 46px; }
  .contact__mail { font-size: 19px; word-break: break-all; }
  .contact__bottom { font-size: 15px; line-height: 28px; padding: 24px 0 0; flex-direction: column; }
}

/* Téléphone : logo et bouton "Discutons" tiennent sur une ligne, avec de l'air */
@media (max-width: 560px) {
  .topbar { padding: 16px 20px; }
  .topbar__logo img { width: 160px; }
  .btn-chat { width: auto; height: 36px; padding: 0 14px; font-size: 11px; }
  .hero__content { padding: 48px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .band__track { animation: none; }
}
