/* ==========================================================================
   LinkSenAI · site vitrine de l'ESN
   Direction artistique : charte LinkSenHub (cuivre, noir, blanc cassé ;
   titres Inter Tight, texte Inter ; post-its, cartes alignées, quadrillage).
   ========================================================================== */

:root {
  --copper: #b67a43;
  --copper-light: #d9b38c;
  --copper-deep: #8a5427;
  --copper-deeper: #74461f;
  --ink: #000;
  --anthracite: #2b2b2e;
  --grey: #e7e4df;
  --paper: #f7f3ee;
  --white: #fff;
  --note-cream: #fbf3e6;
  --note-sand: #f1e4d3;
  --note-copper: #ecd5bd;
  --note-stone: #ebe8e3;
  --muted: rgb(43 43 46 / 0.8);
  --line: rgb(43 43 46 / 0.08);
  --font-title: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --container: 1360px;
  --shadow: 0 1px 0 rgb(43 43 46 / 0.05), 0 14px 28px -18px rgb(43 43 46 / 0.35);
  --shadow-lift: 0 2px 0 rgb(43 43 46 / 0.05), 0 26px 40px -20px rgb(43 43 46 / 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Une photo ou un mot long ne doit jamais élargir une colonne de grille
   (Safari iOS dimensionnait la colonne sur la largeur native de l'image). */
.hero-grid > *,
.offer-grid > *,
.poles > *,
.profile-row > *,
.why > *,
.hub-grid > *,
.contact > *,
.footer-grid > *,
.form-grid > *,
.steps > * {
  min-width: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--note-copper);
}

:focus-visible {
  outline: 2px solid var(--copper-deep);
  outline-offset: 3px;
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1680px) {
  .container {
    max-width: 1560px;
  }
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Fonds et bandes ---------- */

.grid-paper {
  background-image:
    linear-gradient(to right, rgb(43 43 46 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(43 43 46 / 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.band-white {
  background: var(--white);
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
}

.section {
  padding: 64px 0;
}

@media (min-width: 640px) {
  .section {
    padding: 88px 0;
  }
}

/* ---------- Typographie ---------- */

.eyebrow {
  margin-bottom: 16px;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title {
  font-size: 32px;
  line-height: 1.24;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .title {
    font-size: 44px;
  }
}

.lead {
  margin-top: 18px;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Mot clé posé sur un aplat cuivre clair, comme une étiquette. */
.mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0 0.1em;
  white-space: nowrap;
}

.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.1em -0.14em 0.02em;
  border-radius: 0.16em;
  background: var(--copper-light);
  transform: rotate(-1deg);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font: 600 15px/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--copper-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--copper-deeper);
}

.btn-secondary {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.link:hover {
  text-decoration-color: var(--ink);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- Cartes et post-its ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition:
    translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-lift);
}

.note {
  overflow: hidden;
  border: 1px solid rgb(43 43 46 / 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition:
    rotate 0.3s var(--ease),
    translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.note:hover {
  rotate: 0deg !important;
  translate: 0 -6px;
  box-shadow: var(--shadow-lift);
}

.note-band {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  background: rgb(255 255 255 / 0.75);
  color: var(--anthracite);
  font-size: 12px;
  font-weight: 600;
}

.note-body {
  padding: 20px 22px;
}

.tone-cream {
  background: var(--note-cream);
}

.tone-sand {
  background: var(--note-sand);
}

.tone-copper {
  background: var(--note-copper);
}

.tone-stone {
  background: var(--note-stone);
}

.tone-white {
  background: var(--white);
}

.tilt-l {
  rotate: -2deg;
}

.tilt-r {
  rotate: 2deg;
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(231 228 223 / 0.85);
  color: var(--anthracite);
  font-size: 12px;
  font-weight: 500;
}

.tag-accent {
  background: rgb(217 179 140 / 0.6);
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--note-copper);
  color: var(--copper-deep);
}

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--grey);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(12px);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

/* Au défilement : la barre se resserre et se détache du contenu. */
.header.scrolled {
  box-shadow: 0 10px 24px -20px rgb(43 43 46 / 0.45);
}

/* Logo à gauche, menu réellement centré, action à droite. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
  transition: height 0.25s var(--ease);
}

@media (min-width: 1100px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

.header.scrolled .header-inner {
  height: 68px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  justify-self: start;
}

.brand img {
  width: auto;
  height: 46px;
  transition: height 0.25s var(--ease);
}

.header.scrolled .brand img {
  height: 40px;
}

.nav {
  display: none;
  gap: 28px;
}

@media (min-width: 1440px) {
  .nav {
    gap: 36px;
  }
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--anthracite);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

/* Trait cuivre sous la section visible (et au survol). */
.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--copper-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(0.4);
}

.nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  justify-self: end;
  gap: 22px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-pill .icon,
.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-pill-primary {
  background: var(--copper-deep);
  color: var(--white);
}

.btn-pill-primary:hover {
  background: var(--copper-deeper);
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger[aria-expanded="true"] {
  border-color: var(--copper-deep);
  background: var(--copper-deep);
  color: var(--white);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--grey);
  background: var(--white);
  box-shadow: 0 16px 28px -22px rgb(43 43 46 / 0.45);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  padding-bottom: 20px;
}

.mobile-menu nav a:not(.btn) {
  padding: 12px 0;
  border-bottom: 1px solid var(--grey);
  color: var(--anthracite);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu nav a:not(.btn).active,
.mobile-menu nav a:not(.btn):hover {
  color: var(--copper-deep);
  font-weight: 600;
}

.mobile-menu .btn {
  margin-top: 16px;
}

@media (min-width: 1100px) {
  .nav,
  .header-actions {
    display: flex;
  }

  .burger,
  .mobile-menu,
  .mobile-menu.open {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow-x: clip;
}

.ring {
  position: absolute;
  pointer-events: none;
  border: 1.5px solid rgb(182 122 67 / 0.3);
  border-radius: 50%;
}

.hero .ring {
  top: -96px;
  right: -96px;
  width: 288px;
  height: 288px;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.26;
  text-wrap: balance;
}

.hero .lead {
  margin-top: 26px;
}

.hero .btn-row {
  margin-top: 36px;
}

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  color: var(--anthracite);
  font-size: 14px;
}

.hero-sub span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-sub .icon {
  width: 18px;
  height: 18px;
  color: var(--copper-deep);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(calc(100dvh - 85px), 760px);
  }

  .hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 52px;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 0 0;
}

/* Aplat cuivre clair décalé derrière la photo + cercle de la charte. */
.hero-stage {
  position: absolute;
  inset: 0 0 auto 24px;
  height: calc(100% - 40px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--note-copper);
}

.hero-circle {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.55;
}

.hero-circle::after {
  content: "";
  position: absolute;
  inset: -36px;
  border: 1.5px solid rgb(138 84 39 / 0.35);
  border-radius: 50%;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-right: 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

/* Voile cuivre léger : la photo prend la température de la charte. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(182 122 67 / 0.08), rgb(138 84 39 / 0.22));
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
    padding: 36px 0 48px 64px;
  }

  .hero-stage {
    inset: 0 0 auto 120px;
    height: calc(100% - 20px);
  }

  .hero-photo {
    aspect-ratio: auto;
    height: min(58dvh, 520px);
    margin-right: 40px;
  }
}

.hero-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.hero-badge .icon {
  width: 14px;
  height: 14px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes photo-in {
  from {
    transform: scale(1.06);
  }
  to {
    transform: none;
  }
}

/* Léger dézoom à l'arrivée : desktop uniquement (sur mobile, il donnait
   une impression de zoom pendant le défilement). */
@media (min-width: 1024px) {
  .hero-photo img {
    animation: photo-in 1.2s var(--ease) both;
  }
}

/* ---------- Offre ---------- */

.offer-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offer-card {
  padding: 28px;
}

.offer-card h3 {
  margin-top: 20px;
  font-size: 22px;
}

.offer-card p {
  margin-top: 8px;
  color: var(--muted);
}

.offer-card.featured {
  background: var(--note-copper);
}

.offer-card.featured .dot {
  background: rgb(255 255 255 / 0.8);
}

.offer-card ul {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  color: var(--anthracite);
  font-size: 15px;
}

.offer-card li {
  display: flex;
  gap: 8px;
}

.offer-card li .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--copper-deep);
}

/* ---------- Profils ---------- */

.poles {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 1024px) {
  .poles {
    grid-template-columns: 1fr 1fr;
  }
}

.pole {
  padding: 28px;
}

.pole-data {
  background: var(--note-copper);
}

.pole-data .dot {
  background: rgb(255 255 255 / 0.8);
}

.pole-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(43 43 46 / 0.12);
}

.pole-head h3 {
  font-size: 24px;
}

.pole-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.pole-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(43 43 46 / 0.08);
}

.pole-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pole-list h4 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 18px;
}

.pole-data .tag {
  background: rgb(255 255 255 / 0.7);
}

.examples {
  margin-top: 64px;
}

.examples-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.examples-head h3 {
  font-size: 24px;
}

.examples-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.profile-row {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .profile-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .profile-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Carte de visite : petite photo ronde, l'essentiel en quelques lignes. */
.profile {
  padding: 18px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-photo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--note-copper);
  border-radius: 50%;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-id {
  min-width: 0;
  line-height: 1.25;
}

.profile-id h4 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 17px;
}

.profile-meta {
  margin-top: 3px;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 600;
}

.profile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--grey);
  color: var(--muted);
  font-size: 12px;
}

.profile-dispo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.profile-dispo i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e8b3e;
}

/* ---------- Méthode ---------- */

/* Cinq post-its reliés par un pointillé cuivre ; décalés en hauteur
   un sur deux pour un rendu de tableau de travail, sans surcharge. */
.steps {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    padding-bottom: 28px;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 4%;
    left: 4%;
    border-top: 1.5px dashed rgb(182 122 67 / 0.5);
  }

  .step-note:nth-child(even) {
    transform: translateY(28px);
  }
}

.step-note .note-body {
  padding: 22px 22px 24px;
}

.step-num {
  display: block;
  color: var(--copper);
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.step-note h3 {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.3;
}

.step-note p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.tone-copper .step-num {
  color: var(--copper-deep);
}

/* ---------- Pourquoi nous ---------- */

.why {
  display: grid;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .why {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.why-photo {
  position: relative;
  max-width: 440px;
}

.why-photo .frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.why-photo .note {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 240px;
}

@media (min-width: 640px) {
  .why-photo .note {
    right: -24px;
  }
}

.why-photo .note strong {
  display: block;
  font-family: var(--font-title);
  font-size: 30px;
  line-height: 1.1;
}

.why-photo .note span {
  color: var(--muted);
  font-size: 14px;
}

.why-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
  }
}

.why-item {
  display: flex;
  gap: 14px;
  padding: 20px;
}

.why-item h3 {
  font-size: 17px;
}

.why-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- LinkSenHub ---------- */

.hub-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hub-head img {
  width: auto;
  height: 52px;
  margin: 0 auto 28px;
}

.hub-head .lead {
  margin-left: auto;
  margin-right: auto;
}

.hub-grid {
  display: grid;
  gap: 20px;
  max-width: 1040px;
  margin: 48px auto 0;
}

@media (min-width: 900px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: var(--paper);
}

.hub-card h3 {
  margin-top: 20px;
  font-size: 24px;
}

.hub-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
  color: var(--anthracite);
}

.hub-card li {
  display: flex;
  gap: 10px;
}

.hub-card li .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--copper-deep);
}

.hub-card .btn {
  margin-top: auto;
}

.hub-card-company {
  background: var(--note-copper);
}

.hub-card-company .dot {
  background: rgb(255 255 255 / 0.8);
}

/* ---------- Demande / contact ---------- */

.contact {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.coords {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.coords li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coords small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coords a,
.coords span {
  font-weight: 600;
  text-decoration: none;
}

.form-title {
  font-size: 24px;
}

.form-sub {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.form-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form-card {
    padding: 36px;
  }
}

.form-card:hover {
  translate: none;
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--anthracite);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgb(43 43 46 / 0.15);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 15px var(--font-body);
  transition:
    border-color 0.2s,
    background 0.2s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--copper);
  outline: none;
  background: var(--white);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-status {
  font-size: 14px;
  font-weight: 500;
}

.form-status.ok {
  color: #2e6b2e;
}

.form-status.err {
  color: #ba1a1a;
}

[hidden] {
  display: none !important;
}

/* ---------- Pied de page ---------- */

/* Footer cuivre clair (aplat de la charte) : il se détache nettement de la
   section contact (blanc cassé quadrillé), sans panneau sombre. */
/* Footer en bloc arrondi, détaché des bords : il se distingue de la
   section contact sans bande vide entre les deux. */
.footer {
  margin: 12px;
  border-radius: 28px;
  background: var(--note-copper);
}

@media (min-width: 640px) {
  .footer {
    margin: 20px;
  }
}

.footer p,
.footer nav a {
  color: var(--anthracite);
}

.footer h4 {
  color: var(--copper-deeper);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer img {
  height: 44px;
  width: auto;
}

.footer .footer-address {
  margin-top: 8px;
  font-size: 14px;
}

.footer p {
  margin-top: 16px;
  max-width: 380px;
  color: var(--muted);
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer nav {
  display: grid;
  gap: 10px;
}

.footer nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 4px;
}

.footer-bottom {
  border-top-color: rgb(43 43 46 / 0.12) !important;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  color: rgb(43 43 46 / 0.6);
  font-size: 13px;
}

/* ---------- Chargement des photos ----------
   Fond cuivre clair pendant le chargement, puis apparition en fondu.
   Sans JavaScript (classe no-js), les photos s'affichent normalement. */

.hero-photo,
.why-photo .frame,
.profile-photo {
  background-color: var(--note-copper);
}

.js .hero-photo img,
.js .why-photo img,
.js .profile-photo img {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.js .hero-photo img.loaded,
.js .why-photo img.loaded,
.js .profile-photo img.loaded {
  opacity: 1;
}

/* ---------- Haut de page ---------- */

.to-top {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--copper-deep);
  color: var(--white);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.2s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--ink);
}

.to-top:hover .icon {
  transform: translateY(-2px);
}

.to-top .icon {
  transition: transform 0.2s var(--ease);
}

@media (min-width: 1024px) {
  .to-top {
    right: 32px;
    bottom: 32px;
  }
}

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Pages d'erreur ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 77px);
  padding: 48px 0;
  text-align: center;
}

.error-page .code {
  font-family: var(--font-title);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
}

.error-page .title {
  margin-top: 16px;
}

.error-page .lead {
  margin: 16px auto 32px;
}
