/* =========================================================
   Plomberie Cordel : site d'exemple (entreprise fictive)
   Idée visuelle : le lettrage d'une camionnette d'artisan.
   Grosses capitales condensées, numéro en bandeau bleu,
   bleu franc et bleu nuit, la couleur de l'eau.
   Mobile d'abord.
   ========================================================= */

/* Police auto-hébergée : Archivo variable (largeur 62 à 125 %, graisse 100 à 900).
   Une seule famille : condensée pour les titres, normale pour le texte. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Couleurs : 1 fond, 1 texte, 1 accent, plus des neutres */
  --fond: #f4f2ee;        /* blanc chaud */
  --texte: #13212b;       /* presque noir, bleuté */
  --accent: #1a5fb4;       /* bleu : boutons, numéro (5,7:1 sur le fond) */
  --accent-fonce: #134a8e; /* survol */
  --accent-clair: #7cc0ff; /* bleu clair sur fond sombre (7,9:1 sur le bleu nuit) */
  --nuit: #0f2532;        /* bandes sombres */
  --gris: #57636c;        /* texte secondaire (5,6:1 sur le fond) */
  --trait: #d6d1c8;       /* filets */
  --clair-sur-nuit: #c9d6dd;

  /* Typographie */
  --police: "Archivo", "Arial Narrow", Arial, sans-serif;
  --condense: 72%;

  /* Espacements */
  --gouttiere: 1.25rem;
  --section: 4rem;
  --largeur: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pp-bandeau) + 5rem); }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: 4rem; /* place pour le bouton d'appel fixe sur mobile */
}

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

h1, h2, h3 {
  margin: 0;
  font-stretch: var(--condense);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

p { margin: 0; }

a { color: inherit; }

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

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: var(--pp-bandeau);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gouttiere);
  background: var(--fond);
  border-bottom: 3px solid var(--texte);
}

.marque { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.marque-nom {
  font-stretch: 62%;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.marque-metier {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.menu { display: none; }

.entete-appel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1rem;
  white-space: nowrap;
}
.entete-appel svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.entete-appel:hover { background: var(--accent-fonce); }
/* Sur très petit écran : seulement l'icône, le bouton fixe en bas prend le relais */
@media (max-width: 26rem) {
  .entete-appel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .entete-appel { padding: 0.7rem; }
}

/* ---------- Accroche ---------- */
.accroche {
  display: grid;
  gap: 2rem;
  padding: 2.5rem var(--gouttiere) var(--section);
  max-width: var(--largeur);
  margin: 0 auto;
}

.accroche-sur {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.accroche h1 {
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  line-height: 0.92;
  font-stretch: 66%;
}

.accroche-intro {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.15rem;
}

/* Le numéro : bandeau bleu, comme sur le flanc d'une camionnette */
.numero {
  display: inline-flex;
  flex-direction: column;
  margin-top: 1.75rem;
  padding: 0.6rem 1.1rem 0.75rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s;
}
.numero:hover { background: var(--accent-fonce); }
.numero-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.numero-chiffres {
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(2.3rem, 10vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.accroche-horaires {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gris);
}

.accroche-photo {
  position: relative;
  margin: 0;
}
.accroche-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}
/* Étiquette collée sur la photo */
.etiquette {
  position: absolute;
  left: -0.4rem;
  bottom: 1.5rem;
  padding: 0.45rem 0.8rem;
  background: var(--fond);
  border: 3px solid var(--texte);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

/* ---------- Zone d'intervention ---------- */
.zone {
  background: var(--nuit);
  color: var(--clair-sur-nuit);
  padding: 1rem var(--gouttiere);
  font-size: 0.98rem;
}
.zone p { max-width: var(--largeur); margin: 0 auto; }
.zone strong {
  color: #fff;
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.4rem;
}
.zone span { color: var(--accent-clair); padding: 0 0.15rem; }

/* ---------- Sections ---------- */
.section {
  padding: var(--section) var(--gouttiere);
  max-width: var(--largeur);
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  line-height: 0.95;
}
.chapo {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--gris);
}

/* ---------- Prestations ---------- */
.prestations { display: grid; gap: 2.5rem; }

.tarifs {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-bottom: 3px solid var(--texte);
}
.tarifs li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--trait);
}
.tarifs li:first-child { border-top: 3px solid var(--texte); }
.tarifs h3 { font-size: 1.45rem; }
.tarifs li p { margin-top: 0.3rem; color: var(--gris); font-size: 0.98rem; }
.tarifs .prix {
  margin: 0;
  font-stretch: 70%;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--texte);
  white-space: nowrap;
  text-align: right;
}
.prix small {
  font-size: 0.95rem;
  font-weight: 600;
  font-stretch: 85%;
  color: var(--gris);
}
.tarifs .prix-devis {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--accent);
}
.tarifs-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--gris); }

.prestations-photo { margin: 0; }
.prestations-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* ---------- Urgence (bande sombre pleine largeur) ---------- */
.urgence {
  max-width: none;
  background: var(--nuit);
  color: var(--clair-sur-nuit);
}
.urgence > * { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.urgence-sur {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-clair);
  margin-bottom: 0.5rem;
}
.urgence h2 { color: #fff; }

.gestes {
  list-style: none;
  counter-reset: geste;
  display: grid;
  gap: 0;
  margin-top: 2.25rem;
  padding: 0;
}
.gestes li {
  counter-increment: geste;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(201, 214, 221, 0.25);
}
.gestes li::before {
  content: counter(geste);
  grid-row: span 2;
  font-stretch: 62%;
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 0.85;
  color: var(--accent-clair);
}
.gestes h3 { color: #fff; font-size: 1.5rem; }
.gestes p { margin-top: 0.35rem; }

/* « Puis appelez-moi » : centré sous les gestes */
.urgence-appel {
  display: block;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 214, 221, 0.25);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.urgence-appel span { display: inline-block; margin-left: 0.35rem; }
.urgence-appel span {
  font-stretch: 70%;
  font-weight: 800;
  font-size: 2rem;
  border-bottom: 4px solid var(--accent-clair);
  white-space: nowrap;
}
.urgence-appel:hover span { color: var(--accent-clair); }
.urgence :focus-visible { outline-color: #fff; }

/* ---------- Chantiers ---------- */
.galerie {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.galerie-grande img { aspect-ratio: 4 / 5; }
.galerie figcaption {
  margin-top: 0.6rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  color: var(--gris);
}
.galerie figcaption strong { color: var(--texte); }

/* ---------- Façon de travailler ---------- */
.facon { border-top: 3px solid var(--texte); }
.facon-liste { margin: 2rem 0 0; }
.facon-liste div { padding: 1rem 0; border-top: 1px solid var(--trait); }
.facon-liste dt {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  line-height: 1.05;
}
.facon-liste dd { margin: 0.35rem 0 0; max-width: 36rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 2.5rem;
  background: #fff;
  border: 3px solid var(--texte);
  margin-bottom: var(--section);
  max-width: calc(var(--largeur) - 2 * var(--gouttiere));
}
@media (max-width: 47.99rem) {
  .contact { margin-left: var(--gouttiere); margin-right: var(--gouttiere); padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
.contact-texte > p { margin-top: 1rem; max-width: 30rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; }
.contact-mail {
  font-weight: 700;
  color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  padding: 0.5rem 0;
}
.contact-mail:hover { color: var(--accent-fonce); }

.horaires { margin: 2rem 0 0; }

/* Faux formulaire */
.formulaire {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--fond);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
}
.formulaire h3 { font-size: 1.6rem; }
.champ { display: grid; gap: 0.3rem; }
.champ label { font-weight: 700; font-size: 0.95rem; }
.champ label span { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: var(--texte);
  background: #fff;
  border: 2px solid #b9b4ab;
  border-radius: 6px;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.25); }
.formulaire-bouton {
  justify-self: start;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  cursor: pointer;
}
.formulaire-bouton:hover { background: var(--accent-fonce); }
.formulaire-note { font-size: 0.85rem; color: var(--gris); }
.horaires div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--trait);
}
.horaires div:first-child { border-top: 3px solid var(--texte); }
.horaires dt { font-weight: 700; }
.horaires dd { margin: 0; text-align: right; color: var(--gris); }

/* ---------- Pied de page ---------- */
.pied {
  display: grid;
  gap: 2.5rem;
  padding: 3rem var(--gouttiere);
  background: var(--nuit);
  color: var(--clair-sur-nuit);
  font-size: 0.95rem;
}
.pied .marque-nom { display: block; color: #fff; font-size: 2.6rem; line-height: 1; margin-bottom: 0.75rem; }
.pied-cordel p + p { margin-top: 0.5rem; }
.pied-credits a { color: #fff; }
.pied :focus-visible { outline-color: #fff; }

/* Encadré Pearce'pective Web : volontairement d'un autre style que le site du plombier */
.pied-pp {
  padding: 1.5rem;
  background: var(--fond);
  color: var(--texte);
  border-left: 6px solid var(--accent);
}
.pied-pp-sur {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.pied-pp h2 {
  margin-top: 0.4rem;
  font-size: 1.6rem;
  line-height: 1.05;
}
.pied-pp > p:not(.pied-pp-sur) { margin-top: 0.6rem; }
.pied-pp ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
}
.pied-pp a { font-weight: 700; text-underline-offset: 3px; }
.pied-pp :focus-visible { outline-color: var(--accent); }
.pied-pp-bouton {
  display: inline-block;
  padding: 0.65rem 1rem;
  background: var(--texte);
  color: #fff;
  text-decoration: none;
}
.pied-pp-bouton:hover { background: var(--accent); }

/* ---------- Bouton d'appel fixe (mobile) ---------- */
.appel-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 1rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.appel-mobile:focus-visible { outline: 3px solid var(--texte); outline-offset: -6px; }

/* =========================================================
   Tablette : 768 px et plus
   ========================================================= */
@media (min-width: 48rem) {
  :root { --gouttiere: 2rem; --section: 5.5rem; }

  body { padding-bottom: 0; }
  .appel-mobile { display: none; }

  .accroche {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    padding-top: 3.5rem;
  }

  .gestes { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }

  .galerie {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto;
    column-gap: 2rem;
  }
  .galerie-grande { grid-row: span 2; }
  .galerie-grande img { height: 100%; aspect-ratio: auto; }
  .galerie-grande { display: flex; flex-direction: column; }
  .galerie-grande img { flex: 1; min-height: 0; }

  .facon-liste { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
  .facon-liste div { border-top-width: 3px; border-top-color: var(--texte); }

  .contact {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    align-items: start;
    padding: 3rem;
    margin-left: auto;
    margin-right: auto;
  }

  .pied { grid-template-columns: 1fr 1.2fr; align-items: start; padding: 3.5rem var(--gouttiere); }
  .pied-pp { padding: 2rem; }
}

/* =========================================================
   Ordinateur : 1024 px et plus
   ========================================================= */
@media (min-width: 64rem) {
  .menu { display: block; margin-left: auto; }
  .menu ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
  .menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
  }
  .menu a:hover { border-bottom-color: var(--accent); }

  .entete, .pied { padding-left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2 + var(--gouttiere))); padding-right: max(var(--gouttiere), calc((100% - var(--largeur)) / 2 + var(--gouttiere))); }

  .prestations { grid-template-columns: 1.35fr 1fr; gap: 4rem; align-items: start; }
  .prestations-photo { position: sticky; top: calc(var(--pp-bandeau) + 6.5rem); margin-top: 7.5rem; }
  .prestations-photo img { aspect-ratio: 3 / 4; }

  .urgence { padding-left: var(--gouttiere); padding-right: var(--gouttiere); }
  .urgence-entete { display: flex; align-items: baseline; gap: 1.5rem; }
  .gestes { grid-template-columns: repeat(4, 1fr); }
  .gestes li { grid-template-columns: 1fr; border-top: 3px solid var(--accent-clair); padding-top: 1.25rem; }
  .gestes li::before { grid-row: auto; margin-bottom: 0.75rem; font-size: 4rem; }
}

/* Mouvements réduits */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
