/* ============================================================
   Kayden Couverture — layout.css
   Header, sections, footer, scaffolding responsive
   ============================================================ */

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.3rem var(--gutter);
}

.header__logo {
  position: relative;
  display: block;
  width: clamp(150px, 14vw, 184px);
  line-height: 0;
  /* le logo « scrolled » (transparent, ratio 3:2) est plus haut que
     le logo blanc (2:1) : on borne la hauteur au logo blanc et on
     masque le surplus de toile transparente pour éviter tout décalage */
  overflow: hidden;
  aspect-ratio: 184 / 92;
}

.header__logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transition: opacity var(--dur) var(--ease);
}

/* logo blanc (2:1) : remplit exactement le cadre.
   Le hero étant volontairement clair, une ombre portée douce garantit que
   le logo se détache toujours, même devant une zone lumineuse. */
.header__logo-img--light {
  opacity: 1;
  filter: drop-shadow(0 2px 10px rgba(14, 28, 39, 0.55)) drop-shadow(0 1px 2px rgba(14, 28, 39, 0.4));
}

/* logo « scrolled » (transparent, 3:2) : même largeur, surplus vertical
   transparent masqué par overflow:hidden du parent → artwork aligné */
.header__logo-img--dark {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 0;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-scrolled .header__logo-img--light { opacity: 0; }
.header.is-scrolled .header__logo-img--dark { opacity: 1; }

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
}

.nav__list a {
  position: relative;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  transform: scaleX(1);
}

.header.is-scrolled .nav__list a {
  color: var(--text);
}

.header__phone {
  flex-shrink: 0;
}

.burger {
  display: none;
}

/* ---------- Manifeste ---------- */
.manifesto {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(234, 166, 35, 0.1) 0%, rgba(234, 166, 35, 0) 55%),
    linear-gradient(180deg, var(--blanc) 0%, var(--blanc-casse) 100%);
  padding-block: clamp(4rem, 9vw, 8.5rem);
  text-align: center;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -55px;
  width: 380px;
  height: 310px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M4 42 L32 8 L60 42' fill='none' stroke='%2330597a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25 42 V29 a7 7 0 0 1 14 0 V42' fill='none' stroke='%2330597a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.manifesto__inner { position: relative; z-index: 1; }

/* Filigrane : grande ligne de toit en fond, très discrète */
.manifesto::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -1px;
  width: min(1500px, 130%);
  height: 180px;
  transform: translateX(-50%);
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(48, 89, 122, 0.05) 50%, transparent calc(50% + 1px)),
    linear-gradient(-135deg, transparent calc(50% - 1px), rgba(48, 89, 122, 0.05) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}

.manifesto__inner {
  position: relative;
  max-width: 1000px;
}

.manifesto__rule {
  display: block;
  width: 2px;
  height: 46px;
  margin: 0 auto 1.8rem;
  background: linear-gradient(to bottom, var(--or), transparent);
}

.manifesto__title {
  font-size: clamp(1.55rem, 1.1rem + 1.75vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.manifesto__text {
  margin-top: 1.8rem;
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- Services ---------- */
.services {
  position: relative;
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(234, 166, 35, 0.16) 0%, rgba(234, 166, 35, 0) 55%),
    linear-gradient(165deg, #30597a 0%, var(--anthracite-deep) 45%, #12222f 100%);
  color: var(--text-on-dark);
  padding-block: var(--section-y);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 166, 35, 0.5), transparent);
}

.services__head {
  max-width: var(--container);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services__head .section-title {
  color: var(--text-on-dark);
}

.services__head .section-lede {
  color: var(--text-on-dark-soft);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ---------- La preuve ---------- */
.proof {
  position: relative;
  background:
    radial-gradient(80% 55% at 15% 5%, rgba(234, 166, 35, 0.12) 0%, rgba(234, 166, 35, 0) 50%),
    linear-gradient(180deg, var(--anthracite) 0%, #3d6d93 100%);
  color: var(--text-on-dark);
  padding-block: var(--section-y);
}

.proof__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.proof__head .section-title {
  color: var(--text-on-dark);
}

.proof__caption {
  text-align: center;
  color: var(--text-on-dark-soft);
  font-size: var(--step--1);
  margin-top: 1.2rem;
}

/* ---------- Artisan ---------- */
.artisan {
  background:
    radial-gradient(70% 60% at 90% 15%, rgba(234, 166, 35, 0.1) 0%, rgba(234, 166, 35, 0) 55%),
    linear-gradient(180deg, var(--blanc-casse) 0%, var(--paper) 100%);
  padding-block: var(--section-y);
}

.artisan__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.artisan__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 18px 18px 0 0 var(--paper), 18px 18px 0 2px var(--or);
}

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

/* ---------- Zone ---------- */
.zone {
  position: relative;
  color: var(--text-on-dark);
  padding-block: clamp(5rem, 11vw, 10rem);
  overflow: hidden;
}

.zone__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.zone__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(75% 75% at 50% 45%, rgba(14, 28, 39, 0.46) 0%, rgba(14, 28, 39, 0.68) 100%),
    linear-gradient(180deg, rgba(14, 28, 39, 0.50) 0%, rgba(14, 28, 39, 0.60) 100%);
}

/* La section garde toute la largeur du conteneur : la carte a besoin de
   place. Ce sont les blocs de texte qui portent leur propre mesure de
   lecture, pas le conteneur — sinon la carte restait bridée à 760 px. */
.zone__inner {
  max-width: var(--container);
  margin-inline: auto;
  text-align: center;
}

.zone__inner .section-title,
.zone__inner .section-lede {
  margin-inline: auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.zone__communes {
  max-width: 78ch;
  margin-inline: auto;
  margin-top: 1.4rem;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--text-on-dark-soft);
  max-width: 60ch;
  margin-inline: auto;
}
.zone__communes strong { color: var(--or-light); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--blanc);
  padding-block: var(--section-y);
}

.faq__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: 120px;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(70% 60% at 80% 0%, rgba(234, 166, 35, 0.14) 0%, rgba(234, 166, 35, 0) 55%),
    linear-gradient(180deg, #30597a 0%, var(--anthracite-deep) 100%);
  color: var(--text-on-dark);
  padding-block: var(--section-y);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- Footer (conclusion visuelle premium) ---------- */
.footer {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(70% 120% at 82% 0%, rgba(234, 166, 35, 0.13), transparent 55%),
    linear-gradient(180deg, var(--anthracite) 0%, var(--anthracite-deep) 100%);
  color: var(--text-on-dark-soft);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
/* Signature de marque : silhouette du toit du logo, en filigrane discret */
.footer::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -50px;
  width: 460px;
  height: 375px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M4 42 L32 8 L60 42' fill='none' stroke='%23ffd166' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25 42 V29 a7 7 0 0 1 14 0 V42' fill='none' stroke='%23ffd166' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.footer__inner, .footer__bar { position: relative; z-index: 1; }

/* Filet doré + lueur en haut : transition franche avec la page */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 166, 35, 0.6), transparent);
  z-index: 2;
}

/* Filigrane de marque, très discret, en pied */
.footer::after {
  content: "Kayden";
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(5rem, 22vw, 15rem);
  line-height: 0.8;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer__name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-title);
  font-size: 1.65rem;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}
.footer__mark {
  width: 26px;
  height: auto;
  flex: none;
  color: var(--or-light);
}
.footer__name::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--or);
  vertical-align: 0.12em;
}
.footer__tagline {
  margin: 0.8rem 0 1.5rem;
  max-width: 32ch;
  line-height: 1.6;
  text-wrap: balance;
  color: var(--text-on-dark-soft);
}

.footer__col-title {
  position: relative;
  font-family: var(--font-title);
  color: var(--text-on-dark);
  font-size: var(--step-0);
  padding-bottom: 0.75rem;
  margin-bottom: 1.15rem;
}
.footer__col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  background: var(--or);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: var(--step--1);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--or-light); transform: translateX(2px); }
.footer__col li { line-height: 1.45; }

.footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.footer__bar span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.footer__bar span:last-child::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--or);
}

/* Liens légaux (mentions, confidentialité) — discrets, dorés au survol */
.footer__legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}
.footer__legal a { transition: color var(--dur) var(--ease); }
.footer__legal a:hover { color: var(--or-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
  html { scroll-padding-top: 92px; }

  .nav { display: none; }

  .header__phone span:not(.btn__icon) { display: none; }
  .header__phone { padding: 0.6rem; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 0.25rem;
  }

  .burger span {
    display: block;
    height: 2px;
    width: 24px;
    margin-inline: auto;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
  }

  .header.is-scrolled .burger span { background: var(--text); }

  .header__inner { gap: 0.75rem; }
  .header__phone { margin-left: auto; }

  .services__grid { grid-template-columns: 1fr; }

  .artisan__inner { grid-template-columns: 1fr; }
  .artisan__media { aspect-ratio: 16 / 10; max-height: 460px; }

  .faq__inner { grid-template-columns: 1fr; }
  .faq__aside { position: static; }

  .contact__inner { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --section-y: clamp(3.5rem, 13vw, 5rem); }

  .footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }

  .footer__bar { flex-direction: column; gap: 0.4rem; }
}

/* ============================================================
   Confort tactile sur mobile
   Les liens de listes (pied de page, menu) tombaient à ~19 px de
   haut : trop justes pour le pouce. On élargit la zone cliquable
   sans changer l'apparence ni l'interlignage visuel.
   ============================================================ */
@media (max-width: 760px) {
  .footer__col ul li { line-height: 1.45; }
  .footer__col ul a,
  .footer__legal a {
    padding-block: 0.45rem;
    min-height: 34px;
  }
  .footer__col ul a { align-items: center; }
}
