:root {
  --navy: #062840;
  --navy-2: #0a3656;
  --navy-3: #0f466d;
  --yellow: #ffb51f;
  --yellow-dark: #e59c00;
  --cream: #fff8e7;
  --text: #10263a;
  --muted: #5b6d7e;
  --line: #e9eef3;
  --white: #ffffff;
  --shadow: 0 18px 38px rgba(6, 40, 64, .12);
  --shadow-soft: 0 10px 25px rgba(6, 40, 64, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f9fb;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 78px 0;
}

.section-anchor {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px max(22px, calc((100vw - var(--container)) / 2));
  background: rgba(6, 40, 64, .98);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 330px;
}

.brand__logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__text strong {
  font-size: clamp(1.25rem, 2vw, 1.95rem);
  letter-spacing: -.04em;
}

.brand__text span {
  margin-top: 4px;
  color: var(--yellow);
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--yellow);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--yellow);
  font-size: 1.18rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, rgba(6, 40, 64, 1) 0%, rgba(6, 40, 64, .97) 42%, rgba(6, 40, 64, .35) 100%);
  color: var(--white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255, 181, 31, .18), transparent 25%), linear-gradient(90deg, rgba(6, 40, 64, .94) 0%, rgba(6, 40, 64, .72) 48%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  align-items: center;
  gap: 36px;
  padding: 74px 0;
}

.hero__content {
  max-width: 720px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .84rem;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.hero__lead {
  margin: 20px 0 24px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0 0 30px;
}

.hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.actions--small {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background: linear-gradient(180deg, #ffc64f, var(--yellow));
  color: #071f34;
  border-color: rgba(255, 255, 255, .16);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--yellow-dark);
}

.btn--secondary,
.btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
}

.btn--ghost {
  color: var(--navy);
  border-color: rgba(6, 40, 64, .2);
  background: var(--white);
}

.btn--small {
  min-height: 44px;
  padding: 10px 18px;
}

.btn--full {
  width: 100%;
  border: 0;
  font-size: 1rem;
}

.hero__image {
  align-self: stretch;
  min-height: 360px;
  border-radius: 0 0 0 42px;
  overflow: hidden;
  box-shadow: -20px 30px 80px rgba(0, 0, 0, .26);
}

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

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-title h2,
.about__content h2,
.contact__intro h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -.045em;
}

.section-title p,
.about__content p,
.contact__intro p {
  color: var(--muted);
  margin: 0;
}

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

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card,
.project-card,
.contact-form,
.contact-card,
.about__logo-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-sm);
}

.service-card {
  position: relative;
  min-height: 288px;
  padding: 28px;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 181, 31, .65);
}

.service-card--highlight {
  border-color: rgba(255, 181, 31, .7);
  background: linear-gradient(180deg, #ffffff 0%, #fff8e7 100%);
}


.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: #f4f8fb;
  font-size: 2.1rem;
  box-shadow: inset 0 0 0 1px rgba(6, 40, 64, .06);
}

.service-card h3,
.project-card h3,
.contact-form h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.15;
}

.service-card p,
.project-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
}

.card-link {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--yellow);
  text-decoration: none;
  font-weight: 900;
}

.about {
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 470px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.about__logo-card {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 34px;
  background: linear-gradient(180deg, #ffffff, #f2f6fa);
}

.about__logo-card img {
  width: min(390px, 100%);
  filter: drop-shadow(0 14px 20px rgba(6, 40, 64, .16));
}

.about__content {
  padding: 14px 0;
}

.role {
  color: var(--yellow-dark) !important;
  font-weight: 900;
  margin: 0 0 18px !important;
}

.about__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about__features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
}

.insurance {
  background: var(--white);
  padding-top: 28px;
}

.insurance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.insurance-card {
  min-height: 245px;
  padding: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.insurance-card:hover,
.insurance-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 181, 31, .7);
}

.insurance-card--accent {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  border-color: rgba(255, 181, 31, .7);
}

.insurance-card__icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--navy);
  font-size: 2rem;
}

.insurance-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.45rem;
}

.insurance-card--accent h3 {
  color: var(--white);
}

.insurance-card p {
  margin: 0;
  color: var(--muted);
}

.insurance-card--accent p {
  color: rgba(255, 255, 255, .82);
}

.realisations {
  background: #f7f9fb;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: -8px 0 30px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card div {
  padding: 22px;
}

.project-card a {
  display: inline-flex;
  margin-top: 2px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(6, 40, 64, .14);
  font-weight: 900;
}

.project-card a:hover,
.project-card a:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.offer {
  padding: 24px 0;
  background: var(--white);
}

.offer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  border: 2px dashed var(--yellow);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.offer__icon {
  font-size: 2.3rem;
}

.offer__inner strong {
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}

.offer__discount {
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 1000;
  line-height: 1;
}

.contact {
  background: #f7f9fb;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(330px, .8fr);
  gap: 36px;
  align-items: start;
}

.contact__intro {
  padding-top: 8px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.contact-card {
  display: grid;
  gap: 4px;
  min-height: 142px;
  padding: 22px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 181, 31, .6);
}

.contact-card span {
  font-size: 1.8rem;
}

.contact-card strong {
  color: var(--navy);
}

.contact-card em {
  color: var(--yellow-dark);
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 30px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 4px rgba(255, 181, 31, .18);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  padding: 22px 0;
  font-size: .9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
  }

  .site-nav {
    order: 4;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .header-phone {
    margin-left: auto;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects__grid,
  .contact-cards,
  .insurance__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 80px;
  }

  .site-header {
    min-height: 76px;
    padding: 10px 20px;
    gap: 12px;
  }

  .brand__logo {
    width: 58px;
    height: 58px;
  }

  .brand__text strong {
    font-size: 1.05rem;
  }

  .brand__text span {
    font-size: .9rem;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-phone {
    display: none;
  }

  .site-nav {
    display: none;
    order: 5;
    width: 100%;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(3, 29, 48, .98);
    border-radius: 0 0 18px 18px;
  }

  .site-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .nav-link {
    padding: 12px;
    border-radius: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active,
  .nav-link:hover {
    background: rgba(255, 181, 31, .12);
  }

  .hero__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
    padding: 54px 0 42px;
  }

  .hero__image {
    min-height: 260px;
    border-radius: var(--radius);
  }

  .section {
    padding: 58px 0;
  }

  .services__grid,
  .projects__grid,
  .contact-cards,
  .insurance__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding-bottom: 86px;
  }

  .offer__inner {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand__text {
    display: none;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .btn {
    width: 100%;
  }

  .about__logo-card,
  .contact-form {
    padding: 22px;
  }
}

/* Mise a jour : devis photo + projets cliquables */
.service-card--highlight::before {
  content: none;
  display: none;
}

.photo-upload {
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed rgba(6, 40, 64, .24);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.photo-upload__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.photo-upload__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--cream);
  font-size: 1.5rem;
  flex: 0 0 auto;
}

.photo-upload__header strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem;
}

.photo-upload__header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

.file-drop {
  display: grid !important;
  gap: 4px !important;
  place-items: center;
  margin: 0 !important;
  padding: 18px;
  border: 2px dashed rgba(255, 181, 31, .9);
  border-radius: 14px;
  background: #fffaf0;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.file-drop:hover,
.file-drop:focus-within {
  transform: translateY(-2px);
  border-color: var(--yellow-dark);
  background: var(--cream);
}

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

.file-drop span {
  color: var(--navy);
  font-weight: 1000;
}

.file-drop small {
  color: var(--muted);
  font-weight: 700;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.photo-preview:empty {
  display: none;
}

.photo-preview__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.photo-preview__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-preview__item span {
  display: block;
  padding: 7px 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card {
  cursor: pointer;
}

.project-open {
  display: inline-flex;
  margin-top: 2px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(6, 40, 64, .14);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.project-open:hover,
.project-open:focus-visible,
.project-card:hover .project-open {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.is-open {
  display: flex;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 22, 36, .72);
  backdrop-filter: blur(5px);
}

.project-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.project-modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal__head {
  margin-bottom: 22px;
  padding-right: 58px;
}

.project-modal__head h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.project-modal__head p,
.project-modal__note {
  color: var(--muted);
  margin: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-gallery__item {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f1f5f9;
  box-shadow: var(--shadow-soft);
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-gallery__item figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(6, 40, 64, .84);
  color: var(--white);
  font-size: .8rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gallery__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 40, 64, .9);
  color: var(--white);
  cursor: pointer;
  font-weight: 1000;
}

.project-gallery__empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(6, 40, 64, .25);
  border-radius: 16px;
  color: var(--muted);
  background: #f7f9fb;
  text-align: center;
  font-weight: 800;
}

.project-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.project-modal__actions label.btn {
  cursor: pointer;
}

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

@media (max-width: 860px) {
  .photo-preview,
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-modal__panel {
    padding: 24px;
  }
}

@media (max-width: 540px) {
  .photo-preview,
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* Mise a jour : envoi automatique des photos avec send-devis.php */
.form-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}

.form-status:not(:empty) {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}

.form-status--success:not(:empty) {
  color: #14532d;
  border-color: rgba(20, 83, 45, .22);
  background: #ecfdf3;
}

.form-status--error:not(:empty) {
  color: #7f1d1d;
  border-color: rgba(127, 29, 29, .22);
  background: #fff1f2;
}

.form-status--info:not(:empty) {
  color: var(--navy);
  border-color: rgba(255, 181, 31, .45);
  background: var(--cream);
}

.btn:disabled,
.btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.thanks-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 181, 31, .16), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.thanks-card {
  max-width: 760px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks-card img {
  width: min(220px, 70%);
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 18px rgba(6, 40, 64, .14));
}

.thanks-card .eyebrow {
  justify-content: center;
}

.thanks-card h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.thanks-card p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.thanks-card .actions {
  justify-content: center;
}

/* Correctif : selection cumulative de plusieurs photos pour le devis */
.photo-counter {
  margin-top: 10px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 900;
}

.photo-preview__item {
  position: relative;
}

.photo-preview__item figcaption {
  display: block;
  padding: 7px 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  color: var(--navy);
  font-weight: 1000;
  background: var(--cream);
}

.photo-preview__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 40, 64, .92);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.photo-preview__remove:hover,
.photo-preview__remove:focus-visible {
  background: #7f1d1d;
}

.file-drop.is-dragover {
  border-color: var(--accent);
  background: rgba(247, 178, 31, .12);
  transform: translateY(-1px);
}
