/* Delaporte & Cie — feuille de style */

:root {
  --navy: #0e1f3f;
  --navy-soft: #1a2f58;
  --paper: #f8fafc;
  --tint: #edf1f7;
  --ink: #12203d;
  --muted: #4b5b7a;
  --line: #d5ddea;
  --brass: #b8975f;
  --steel: #8ea4c8;
  --on-navy: #e8edf6;
  --on-navy-muted: #b4c0d6;
  --focus: #1f4fb5;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.on-navy :focus-visible { outline-color: #a9c1f2; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--paper);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 10;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Titres */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.14; }
h3 { font-size: 1.35rem; line-height: 1.25; }

p { margin: 0; }

/* ---------- Bloc sombre : en-tête + accueil ---------- */
.on-navy {
  background: var(--navy);
  color: var(--on-navy);
  --focus: #a9c1f2;
}

.site-header {
  padding-block: 22px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-navy);
}
.brand svg { width: 36px; height: 36px; }
.brand .logo-door { fill: var(--on-navy); }
.brand .logo-opening { fill: var(--navy); }
.brand .logo-sill { fill: var(--brass); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.97rem;
}
.nav a {
  text-decoration: none;
  color: var(--on-navy-muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover { color: #fff; border-bottom-color: var(--brass); }

/* Accueil */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(64px, 10vw, 128px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.hero h1 { max-width: 15ch; color: #fff; }
.hero .lead {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--on-navy-muted);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--on-navy); border-color: rgba(232, 237, 246, 0.45); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

/* Arches du bandeau d'accueil */
.hero-art { justify-self: end; width: min(100%, 360px); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art path {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero-art path.arch-inner { stroke: var(--brass); stroke-width: 1.75; }
.hero-art .floor { stroke: var(--steel); opacity: 0.6; stroke-dasharray: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .arch {
    stroke-dashoffset: 1;
    animation: draw 1.6s cubic-bezier(0.45, 0, 0.2, 1) forwards;
  }
  .hero-art .arch:nth-of-type(2) { animation-delay: 0.25s; }
  .hero-art .arch:nth-of-type(3) { animation-delay: 0.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }

.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Badge d'icône en forme d'arche (rappel du logo) */
.ic {
  width: 48px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-top: 4px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px 999px 4px 4px;
  border-bottom: 3px solid var(--brass);
}
.ic svg { width: 24px; height: 24px; }

/* Créations : fiches compactes, une couleur par site */
.creations { background: var(--paper); padding-block: clamp(48px, 6vw, 76px); }
.creations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}
.creations-head p { max-width: 31rem; color: var(--muted); font-size: 1.05rem; }

.site-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.sc-echo   { --head-bg: #0c1514; --head-fg: #e9f2f1; --accent: #00c6b8; --accent-ink: #00756d; --logo-bg: rgba(0, 198, 184, 0.1); }
.sc-releve { --head-bg: #0f1221; --head-fg: #eceaf6; --accent: #b48afd; --accent-ink: #6a45b8; --logo-bg: rgba(180, 138, 253, 0.12); }
.sc-oremus { --head-bg: #f2ede7; --head-fg: #3a0a18; --accent: #91022d; --accent-ink: #91022d; --logo-bg: rgba(145, 2, 45, 0.07); }

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -26px rgba(14, 31, 63, 0.55);
}
.site-card:has(.sc-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.sc-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--head-bg);
  color: var(--head-fg);
  overflow: hidden;
}
.sc-head::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -2px;
  width: 64px;
  height: 74px;
  border: 1.5px solid var(--accent);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.4;
}
.sc-logo {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--logo-bg);
}
.sc-logo svg { width: 30px; height: 30px; }
.sc-head h3 { font-size: 1.65rem; line-height: 1.1; color: var(--head-fg); }
.sc-domain { margin-top: 3px; font-size: 0.82rem; opacity: 0.72; }
.sc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 20px;
}
.sc-tag {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
  text-wrap: balance;
}
.sc-points {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--muted);
}
.sc-points li { display: flex; gap: 10px; align-items: flex-start; }
.sc-points svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-ink); }
.sc-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}
.sc-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.site-card:hover .sc-link svg { transform: translate(2px, -2px); }
.sc-link::after { content: ""; position: absolute; inset: 0; }
.sc-link:focus-visible { outline: none; }

/* Aperçus des sites */
[hidden] { display: none !important; }

.previews { background: var(--navy); }
.previews .section-head h2 { color: #fff; }
.previews .section-head p { color: var(--on-navy-muted); }

.ap-tabs {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(180, 192, 214, 0.28);
}
.ap-tabs button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 2px;
  color: var(--on-navy-muted);
  font-family: var(--serif);
  font-size: 1.35rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.ap-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ap-tabs button svg { width: 24px; height: 24px; opacity: 0.6; transition: opacity 0.15s; }
.ap-tabs button:hover { color: #fff; }
.ap-tabs button:hover svg { opacity: 1; }
.ap-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--site, var(--brass)); }
.ap-tabs button[aria-selected="true"] svg { opacity: 1; }

.ap-open { display: inline-flex; align-items: center; gap: 4px; }
.ap-open svg { width: 15px; height: 15px; }

.ap-link {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
  -webkit-user-drag: none;
}
.ap-link img { transition: filter 0.2s ease; }
.ap-link:hover img { filter: brightness(0.92); }
.ap-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 31, 63, 0.88);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.2s ease, translate 0.2s ease;
  pointer-events: none;
}
.ap-hint svg { width: 15px; height: 15px; }
.ap-link:hover .ap-hint { opacity: 1; translate: 0 0; }
@media (hover: none) {
  .ap-hint { opacity: 1; translate: 0 0; padding: 6px 12px; font-size: 0.82rem; right: 10px; bottom: 10px; }
}

.ap-frame {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}
.ap-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.ap-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-open {
  flex: none;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--brass);
}
.ap-open:hover { background: var(--tint); }
.ap-open:focus-visible { outline-color: var(--focus); }

.ap-stage { position: relative; background: var(--tint); }
.ap-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.ap-track::-webkit-scrollbar { display: none; }
.ap-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 1286 / 729;
  background: var(--tint);
}
.ap-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ap-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 31, 63, 0.35);
  transition: background 0.15s, opacity 0.15s;
}
.ap-nav svg { width: 22px; height: 22px; }
.ap-nav:hover { background: var(--navy-soft); }
.ap-nav:disabled { opacity: 0; pointer-events: none; }
.ap-prev { left: 16px; }
.ap-next { right: 16px; }
.ap-stage :focus-visible { outline-color: #a9c1f2; }

.ap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.ap-caption { color: var(--on-navy); font-size: 1rem; }
.ap-dots { display: flex; gap: 6px; }
.ap-dots button {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.ap-dots button::after {
  content: "";
  position: absolute;
  inset: 11px 4px;
  background: rgba(180, 192, 214, 0.4);
  border-radius: 2px;
  transition: background 0.15s;
}
.ap-dots button[aria-current="true"]::after { background: var(--brass); }
.ap-dots button:hover::after { background: #fff; }

@media (max-width: 560px) {
  .ap-nav { width: 40px; height: 40px; }
  .ap-prev { left: 8px; }
  .ap-next { right: 8px; }
}

/* Prestations */
.services { background: #fff; border-top: 1px solid var(--line); }
.services-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.services-intro .section-head { margin-bottom: 0; }
.service-grid {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.service-grid li {
  padding: 24px 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.service-grid h3 { margin-top: 18px; font-size: 1.28rem; }
.service-grid p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

.skills {
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.skills-title { font-size: 1.45rem; }
.skill-grid {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}
.skill-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--tint);
  border-radius: 8px;
}
.sk-ic { grid-row: span 2; width: 26px; height: 26px; margin-top: 1px; color: var(--navy); }
.sk-name { font-weight: 600; line-height: 1.35; color: var(--ink); }
.sk-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.sk-proof svg { width: 16px; height: 16px; }
.sk-proof svg:not(:first-child) { margin-left: 8px; }

/* À propos */
.about { background: var(--paper); }
.dc-hole { fill: var(--hole, #0e1f3f); }

.about-grid { display: grid; gap: clamp(28px, 3.5vw, 40px); }
.about-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
}
.about-lead { max-width: 33rem; color: var(--muted); font-size: 1.1rem; }

.values { list-style: none; margin: 32px 0 0; padding: 0; }
.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.values .ic { width: 40px; height: 46px; background: var(--tint); color: var(--navy); }
.values .ic svg { width: 21px; height: 21px; }
.values strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--navy);
}
.values li p { margin-top: 3px; color: var(--muted); font-size: 0.96rem; }

/* Méthode, présentée en frise verticale */
.method {
  padding: clamp(26px, 3.5vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.method-title { font-size: 1.5rem; }
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 64px;
  right: -12px;
  border-top: 1.5px dashed var(--steel);
}
.step-badge {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-top: 5px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-bottom: 3px solid var(--brass);
  border-radius: 999px 999px 4px 4px;
}
.step-badge svg { width: 23px; height: 23px; }
.steps h4 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}
.steps p { margin-top: 4px; color: var(--muted); font-size: 0.96rem; }

/* Contact */
.contact { background: var(--paper); padding-top: 0; }
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(32px, 5.5vw, 64px);
  border-radius: 14px;
}
.contact-card h2 { color: #fff; }
.contact-text > p:first-of-type { margin-top: 16px; max-width: 34rem; color: var(--on-navy-muted); font-size: 1.1rem; }
.contact .mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.6vw, 2.2rem);
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 6px;
  word-break: break-word;
}
.contact .mail svg { flex: none; width: 30px; height: 30px; color: var(--brass); }
.contact .mail:hover { color: #f3e6cc; }
.contact .note { margin-top: 26px; color: var(--on-navy-muted); max-width: 34rem; font-size: 0.95rem; }
.contact-art { width: 190px; }
.contact-art svg { width: 100%; height: auto; }

/* Pied de page */
.site-footer { padding-block: 44px; font-size: 0.95rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer .links a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer .links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .copy { color: var(--on-navy-muted); width: 100%; font-size: 0.88rem; }

.site-footer .links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .links svg { width: 18px; height: 18px; }
.site-footer .links .ft-ic { color: var(--brass); }

/* ---------- Adaptation ---------- */
@media (max-width: 960px) {
  .site-cards { grid-template-columns: 1fr; max-width: 560px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .steps li:not(:last-child)::after { top: 60px; bottom: -20px; left: 25px; right: auto; border-top: 0; border-left: 1.5px dashed var(--steel); }
  .steps h4 { margin-top: 6px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-art { display: none; }
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; width: min(70%, 240px); order: -1; }
  .hero h1 { max-width: 18ch; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .nav { width: 100%; gap: 22px; font-size: 0.93rem; }
  .btn { padding: 13px 22px; }
  .service-grid, .skill-grid { grid-template-columns: 1fr; }
  .service-grid li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding: 20px 18px;
  }
  .service-grid .ic { grid-row: span 2; width: 42px; height: 48px; }
  .service-grid h3 { margin-top: 2px; }
  .method { padding: 24px 20px; }
  .contact-card { border-radius: 10px; }
  .contact .mail svg { width: 24px; height: 24px; }
}

