/* Couvreur de France Servant Kevin — site vitrine */

:root {
  --color-bg: #f4f2ee;
  --color-surface: #ffffff;
  --color-text: #1c1b19;
  --color-muted: #5c5852;
  --color-accent: #a34a1c;
  --color-accent-hover: #813a15;
  --color-ink: #0d3d4a;
  --color-hero-overlay: rgba(12, 45, 52, 0.82);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(12, 45, 52, 0.08);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 45, 52, 0.08);
}

.header__inner {
  position: relative;
  width: min(1100px, 92vw);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo__img {
  display: block;
  flex-shrink: 0;
  height: clamp(44px, 10vw, 54px);
  width: auto;
  object-fit: contain;
}

.logo__text {
  display: none;
}

.logo:hover .logo__img {
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-muted);
}

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

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header__cta {
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-surface);
}

.header__cta--outline {
  background: transparent;
  color: var(--color-accent);
}

.header__cta--outline:hover {
  background: rgba(196, 92, 38, 0.1);
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo__text {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
    color: var(--color-ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    z-index: 2;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 0.25rem;
    background: var(--color-surface);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 32px rgba(12, 45, 52, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      visibility 0s linear 0.4s,
      padding 0.3s ease;
    pointer-events: none;
  }

  .nav.is-open {
    max-height: min(75vh, 480px);
    opacity: 1;
    visibility: visible;
    padding: 0.85rem 0.75rem 1rem;
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      visibility 0s linear 0s,
      padding 0.3s ease;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav a {
    display: block;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
  }

  .nav a:active {
    background: rgba(12, 45, 52, 0.06);
  }

  .header__actions {
    display: none;
  }

  .nav.is-open a {
    color: var(--color-muted);
    text-shadow: none;
  }

  .nav.is-open a:hover {
    color: var(--color-accent);
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  padding: 4rem 0 3.5rem;
  color: #f8f6f2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #4a3824;
  background-image:
    linear-gradient(
      160deg,
      rgba(12, 35, 42, 0.82) 0%,
      rgba(12, 35, 42, 0.58) 48%,
      rgba(18, 52, 58, 0.9) 100%
    ),
    url("images/hero-bg-mobile.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (min-width: 900px) {
  .hero__bg {
    background-image:
      linear-gradient(
        160deg,
        rgba(12, 35, 42, 0.82) 0%,
        rgba(12, 35, 42, 0.58) 48%,
        rgba(18, 52, 58, 0.9) 100%
      ),
      url("images/hero-bg-desktop.webp");
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__content .hero__title,
.hero__content .hero__lead,
.hero__content .hero__eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero__name {
  display: block;
  color: #e8b896;
  font-weight: 600;
}

.hero__lead {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-surface);
  box-shadow: inset 0 1px 0 rgba(12, 45, 52, 0.06);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section__title--center {
  text-align: center;
}

.section__intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.prose {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr minmax(260px, 320px);
  }
}

.checklist {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.checklist li {
  margin-bottom: 0.5rem;
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(12, 45, 52, 0.08);
}

.card--hours {
  box-shadow: var(--shadow);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--color-ink);
}

.hours {
  margin: 0;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(12, 45, 52, 0.08);
  font-size: 0.95rem;
}

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

.hours__row dt {
  margin: 0;
  color: var(--color-muted);
  font-weight: 500;
}

.hours__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.hours__row--closed dd {
  color: var(--color-muted);
  font-weight: 500;
}

/* Services grid */

.grid--services {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(12, 45, 52, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(196, 92, 38, 0.35);
  box-shadow: var(--shadow);
}

.service-card__icon {
  display: block;
  color: var(--color-accent);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* Réalisations — carrousel */

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

.gallery-carousel {
  max-width: min(920px, 100%);
  margin-inline: auto;
}

.gallery-carousel__shell {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.gallery-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #1a2f35;
}

.gallery-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.gallery-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.gallery-carousel__arrow {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.gallery-carousel__arrow:hover {
  background: var(--color-accent);
  color: #fff;
}

.gallery-carousel__arrow:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.gallery-carousel__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-carousel__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(12, 45, 52, 0.22);
  transition: background 0.2s, transform 0.2s;
}

.gallery-carousel__dot:hover::before {
  background: rgba(163, 74, 28, 0.6);
}

.gallery-carousel__dot.is-active::before {
  background: var(--color-accent);
  transform: scale(1.15);
}

.gallery-carousel__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .gallery-carousel__shell {
    gap: 0.2rem;
  }

  .gallery-carousel__arrow {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gallery-card__open {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: #1a2f35;
  display: block;
  line-height: 0;
  transition: box-shadow 0.2s ease;
}

.gallery-card__open:hover {
  box-shadow: 0 8px 28px rgba(12, 45, 52, 0.2);
}

.gallery-card__open:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.gallery-card__open img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: middle;
}

.gallery-card__caption {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
  padding: 0 0.15rem;
}

.gallery-carousel .gallery-card {
  gap: 0;
  background: #1a2f35;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-carousel .gallery-card__open {
  border-radius: var(--radius) var(--radius) 0 0;
}

.gallery-carousel .gallery-card__caption {
  color: rgba(255, 255, 255, 0.96);
  padding: 0.85rem 1rem 1rem;
  background: #1a2f35;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 22, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 800px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__cap {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(248, 246, 242, 0.88);
  max-width: 42rem;
  line-height: 1.45;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 210;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 210;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: 0.75rem;
}

.lightbox__nav--next {
  right: 0.75rem;
}

@media (max-width: 600px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox__nav--prev {
    left: 0.35rem;
  }

  .lightbox__nav--next {
    right: 0.35rem;
  }
}

/* Zone */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
  margin-inline: auto;
}

.tags li {
  padding: 0.4rem 0.85rem;
  background: var(--color-surface);
  border-radius: 999px;
  font-size: 0.88rem;
  border: 1px solid rgba(12, 45, 52, 0.1);
  color: var(--color-muted);
}

.zone-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Contact */

.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact__info .section__title {
  margin-bottom: 0.75rem;
}

.address {
  font-style: normal;
  margin: 1.25rem 0;
  line-height: 1.6;
}

.contact__phone {
  margin: 0 0 0.5rem;
}

.contact__phone a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.contact__phone a:hover {
  text-decoration: underline;
}

.contact__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 45, 52, 0.1);
  box-shadow: var(--shadow);
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.form__hint {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.form__row {
  margin-bottom: 1rem;
}

.form__row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form__row input,
.form__row textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(12, 45, 52, 0.2);
  border-radius: 8px;
  background: var(--color-bg);
}

.form__row input:focus,
.form__row textarea:focus {
  outline: 2px solid rgba(196, 92, 38, 0.45);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form__feedback {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form__feedback.is-error {
  color: #b42318;
}

.form__feedback.is-ok {
  color: #0d5c2e;
}

/* Footer */

.footer {
  padding: 2.75rem 0 2rem;
  background: #1e1a26;
  color: rgba(248, 246, 242, 0.92);
  font-size: 0.95rem;
}

.footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem 2.5rem;
}

.footer__col--brand {
  flex: 1 1 280px;
  max-width: 32rem;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}

.footer__logo {
  flex-shrink: 0;
  width: 72px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #d8c9a8;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.footer__tagline {
  margin: 0;
  color: rgba(248, 246, 242, 0.82);
  line-height: 1.55;
  font-size: 0.92rem;
}

.footer__assurance {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d8c9a8;
  letter-spacing: 0.02em;
}

.footer__col--meta {
  flex: 0 1 auto;
  min-width: min(100%, 240px);
}

.footer__block {
  margin: 0 0 1.1rem;
  line-height: 1.55;
  color: rgba(248, 246, 242, 0.88);
}

.footer__block:last-child {
  margin-bottom: 0;
}

.footer__label {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.footer a {
  color: #e8c99a;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__rule {
  margin: 2rem 0 1.25rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom {
  padding-bottom: 0.25rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(248, 246, 242, 0.55);
}

@media (max-width: 640px) {
  .footer__brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__logo {
    width: 64px;
  }
}

/* FAB */

.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(196, 92, 38, 0.45);
  z-index: 90;
  transition: transform 0.2s, background 0.2s;
}

.fab:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

.fab__phone {
  width: 26px;
  height: 26px;
  display: block;
}

@media (min-width: 769px) {
  .fab {
    display: none;
  }
}
