/* L’Atelier du Débarras
   Couleurs et police reprises du logo et du flocage du fourgon : bleu marine, orange et Lexend. */

/* Police hébergée sur le site (sous-ensemble latin, qui couvre le français) */
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Polices de secours recalées sur les métriques de Lexend, pour que rien ne bouge au chargement */
@font-face {
  font-family: "Lexend Secours";
  src: local("Arial"), local("ArialMT"), local("Roboto");
  font-weight: 400 500;
  size-adjust: 107.99%;
  ascent-override: 92.6%;
  descent-override: 23.15%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Lexend Secours";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 600 800;
  size-adjust: 106.54%;
  ascent-override: 93.87%;
  descent-override: 23.47%;
  line-gap-override: 0%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

:root {
  --marine: #012a56;
  --marine-fonce: #011d3e;
  --orange: #fb7202;
  --encre: #10233b;
  --gris: #46566b;
  --brume: #f2f5f9;
  --trait: #d9e0ea;
  --blanc: #fff;
  --police: "Lexend", "Lexend Secours", system-ui, sans-serif;
  --arrondi: 1rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Un élément qui reçoit le focus reste au-dessus de la barre d'appel mobile */
  scroll-padding-bottom: 5.5rem;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.125rem/1.6 var(--police);
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--marine);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.2rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.8rem, 1.35rem + 2vw, 2.75rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--marine);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--marine);
  color: var(--blanc);
}

.skip-link:focus {
  top: 1rem;
}

/* Trait orange sous les titres, repris du logo */
.titre-trait::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.6rem;
  margin-top: 0.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 10'%3E%3Cpath d='M3 8C25 3.5 55 2 85 3.5' fill='none' stroke='%23fb7202' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}

/* Boutons et liens */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--marine);
  color: var(--blanc);
  font: 600 1.1rem/1.2 var(--police);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--marine-fonce);
}

.button svg {
  flex: none;
  width: 1.2em;
  fill: var(--orange);
}

.call {
  min-height: 4rem;
  padding-inline: 1.6rem 2rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--marine);
  font-weight: 600;
}

/* En-tête */
.site-header {
  border-bottom: 1px solid var(--trait);
  background: var(--blanc);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--marine);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2.6rem;
}

.nav {
  display: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--marine);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.header-phone svg {
  width: 1.1rem;
  fill: var(--orange);
}

.header-phone:hover span {
  text-decoration: underline;
}

/* Sur petit écran, le numéro de l'en-tête devient une simple icône d'appel */
.header-phone .numero {
  display: none;
}

/* À l'accueil, la page commence par le logo. L'en-tête n'apparaît qu'en grand écran, pour la navigation. */
.site-header-accueil {
  display: none;
}

/* Accueil */
.hero-grid {
  display: grid;
  gap: 2rem;
  padding-block: 1.75rem 2.5rem;
}

.hero-logo {
  width: min(62vw, 15rem);
  margin-bottom: 1.5rem;
}

.lead {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  color: var(--marine);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 600;
}

.coche {
  flex: none;
  width: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--arrondi);
}

.page-intro {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--gris);
  font-size: 1.15rem;
}

/* Engagements, dans le style du flocage du fourgon */
.promesses {
  background: var(--marine);
  color: var(--blanc);
}

.promesses ul {
  display: grid;
  gap: 0.9rem 2rem;
  margin-block: 0;
  padding-block: 1.6rem;
  list-style: none;
}

.promesses li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-brume {
  background: var(--brume);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  max-width: 36rem;
  color: var(--gris);
  font-size: 1.15rem;
}

/* Prestations */
.situations {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.situations li {
  padding: 1.6rem;
  border: 1px solid var(--trait);
  border-top: 4px solid var(--orange);
  border-radius: 0 0 var(--arrondi) var(--arrondi);
}

.situation-icon {
  width: 3rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--marine);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.situations p {
  margin-top: 0.6rem;
  color: var(--gris);
}

/* Déroulement */
.process {
  display: grid;
  gap: 2.5rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--trait);
  counter-increment: etape;
}

.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.steps li::before {
  content: counter(etape);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--marine);
  font-weight: 700;
  font-size: 1.2rem;
}

.steps p {
  grid-column: 2;
  color: var(--gris);
}

.process-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--arrondi);
}

/* Zone d'intervention */
.zones-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.zones-text > p {
  max-width: 32rem;
  color: var(--gris);
}

.zones-text > p + p {
  margin-top: 1rem;
}

.dept-list {
  display: grid;
  margin: 1.5rem 0;
  padding: 0;
  border-top: 1px solid var(--trait);
  list-style: none;
}

.dept-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--trait);
  color: var(--marine);
  font-weight: 600;
  font-size: 1.2rem;
}

.dept-number {
  color: var(--gris);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.zones-call {
  color: var(--encre);
  font-weight: 600;
}

.van {
  margin: 2rem 0 0;
}

.van img {
  width: 100%;
  border-radius: var(--arrondi);
}

.van figcaption {
  margin-top: 0.5rem;
  color: var(--gris);
  font-size: 0.95rem;
}

.map {
  width: 100%;
  border-radius: var(--arrondi);
}

.map-sea {
  fill: #dce6f1;
}

.map-land {
  fill: var(--blanc);
  stroke: #c3cede;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.map-served {
  fill: #e6edf6;
  stroke: #9fb0c6;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.map-zone {
  fill: rgb(251 114 2 / 16%);
  stroke: var(--orange);
  stroke-width: 3;
  stroke-dasharray: 10 7;
}

.map-dept {
  fill: var(--marine);
  font: 700 24px var(--police);
}

.map-city {
  fill: var(--marine);
}

.map-label {
  fill: var(--encre);
  font: 500 17px var(--police);
}

.map-base {
  fill: var(--orange);
  stroke: var(--marine);
  stroke-width: 3;
}

.map-base-label {
  fill: var(--marine);
  font: 700 21px var(--police);
}

/* Questions */
.faq-list {
  max-width: 50rem;
  border-top: 1px solid var(--trait);
}

.faq details {
  border-bottom: 1px solid var(--trait);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 1rem;
  color: var(--marine);
  font-weight: 600;
  font-size: 1.15rem;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--marine), var(--marine)) center / 0.8rem 2px no-repeat,
    linear-gradient(var(--marine), var(--marine)) center / 2px 0.8rem no-repeat,
    var(--blanc);
  box-shadow: inset 0 0 0 2px var(--orange);
}

.faq details[open] summary::after {
  background:
    linear-gradient(var(--marine), var(--marine)) center / 0.8rem 2px no-repeat,
    var(--orange);
}

.faq details p {
  max-width: 42rem;
  padding-bottom: 1.2rem;
  color: var(--gris);
}

/* Demande de devis */
.section-marine {
  background: var(--marine);
  color: var(--blanc);
}

.section-marine h2 {
  color: var(--blanc);
}

.section-marine :focus-visible {
  outline-color: var(--orange);
}

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

.contact-intro > p {
  max-width: 28rem;
  margin-top: 1rem;
  color: #d6e0ec;
  font-size: 1.15rem;
}

.big-phone {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--blanc);
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.channels {
  display: grid;
  gap: 0.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--blanc);
  overflow-wrap: anywhere;
}

.channels svg {
  flex: none;
  width: 1.3rem;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border-radius: var(--arrondi);
  background: var(--blanc);
  color: var(--encre);
}

.quote-form :focus-visible {
  outline-color: var(--marine);
}

.field-pair {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.optional {
  color: var(--gris);
  font-weight: 400;
}

.contact-hint {
  margin-top: -0.4rem;
  color: var(--gris);
  font-size: 0.95rem;
}

.form-status {
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status-ok {
  color: #1d6b3a;
}

.form-status-erreur {
  color: #a33a00;
}

.form-status a {
  color: inherit;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.95rem;
  border: 2px solid #6b7a90;
  border-radius: 0.6rem;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-weight: 400;
}

.field select {
  padding-right: 3rem;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23012a56' stroke-width='2'/%3E%3C/svg%3E") right 1rem center / 1rem auto no-repeat;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--marine);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field ::placeholder {
  color: #5f6d80;
  opacity: 1;
}

.quote-form .button {
  justify-self: start;
}

/* Pied de page */
.site-footer {
  background: var(--brume);
  font-size: 1rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 3rem;
}

.footer-brand p {
  max-width: 30rem;
  margin-top: 0.5rem;
  color: var(--gris);
}

.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--marine);
  overflow-wrap: anywhere;
}

/* Barre d'appel mobile, visible entre le bouton de l'accueil et la demande de devis */
.mobile-call {
  position: fixed;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: 0.75rem;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  border-radius: 999px;
  background: var(--marine);
  box-shadow: 0 10px 30px rgb(1 42 86 / 30%);
  color: var(--blanc);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  visibility: hidden;
  transform: translateY(150%);
  transition: transform 0.25s ease, visibility 0.25s;
}

.mobile-call svg {
  width: 1.25rem;
  fill: var(--orange);
}

.has-mobile-call .mobile-call {
  display: flex;
}

.show-mobile-call .mobile-call {
  visibility: visible;
  transform: none;
}

/* Pages secondaires */
.page {
  max-width: 48rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
}

.page p + p {
  margin-top: 0.9rem;
}

.legal-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--trait);
}

.legal-list div {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--trait);
}

.legal-list dt {
  color: var(--gris);
}

.legal-list dd {
  margin: 0;
}

@media (min-width: 30rem) {
  .header-phone .numero {
    display: inline;
  }

  .promesses ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 40rem) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }

  .legal-list div {
    grid-template-columns: 14rem 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 48rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  }

  .hero-logo {
    width: clamp(14rem, 22vw, 18rem);
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
  }

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

  .process {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    column-gap: 4rem;
  }

  .zones-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 4rem;
  }
}

@media (min-width: 62rem) {
  html {
    scroll-padding-bottom: 0;
  }

  section[id] {
    scroll-margin-top: 4.5rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .site-header-accueil {
    display: block;
  }

  .site-header-accueil .header-inner {
    justify-content: flex-end;
    gap: 2.5rem;
  }

  .nav {
    display: flex;
    gap: 0.25rem;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.7rem;
    color: var(--encre);
    font-weight: 500;
    text-decoration: none;
  }

  .nav a:hover {
    color: var(--marine);
    text-decoration: underline;
    text-decoration-color: var(--orange);
  }

  .promesses ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 4.5rem;
    align-items: start;
  }

  .has-mobile-call .mobile-call {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .mobile-call {
    transition: none;
  }
}
