@font-face {
  font-family: "Source Serif";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --primary: #1a4548;
  --text: #000;
  --bg: #fff;
  --grey: #f6f6f6;
  --green-dark: #14310d;
  --gradient: linear-gradient(135deg, #fff5cb 0%, #b6e3d4 50%, #33a7b5 100%);
  --serif: "Source Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --content: 650px;
  --wide: 1000px;
  --radius: 10px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1,
.huge {
  font-size: clamp(2rem, 5vw, 2.625rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.75rem;
}

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

a {
  color: inherit;
}

.small {
  font-size: 0.875rem;
}

.center {
  text-align: center;
}

/* Bandeau d'en-tête */

.hero {
  background: var(--gradient);
  padding: 3.5vw 1rem 4rem;
}

.hero-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-top h1 {
  font-weight: 600;
  text-align: center;
  margin: 0;
  flex: 1;
}

.hero-top .logo {
  flex: 1;
}

.logo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
}

.hero .tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.625rem);
  line-height: 1.2;
  text-align: center;
  margin: 1.5rem 0;
}

.dots {
  text-align: center;
  letter-spacing: 1.5em;
  margin: 1.5rem 0;
}

.hero blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--text);
}

.hero blockquote p {
  margin: 0 0 1rem;
}

.hero blockquote footer {
  font-size: 0.8125rem;
}

/* Blocs de contenu */

main {
  padding: 0 1rem;
}

.block {
  max-width: var(--wide);
  margin: 1.5rem auto;
  padding: 1.5rem 4rem;
  border-radius: var(--radius);
}

.block-grey {
  background: var(--grey);
}

.block-primary {
  background: var(--primary);
  color: #fff;
}

.block-outline {
  border: 2px solid var(--text);
  color: var(--green-dark);
}

.block ul {
  padding-left: 2.5rem;
}

.round {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.note {
  text-align: right;
  font-style: italic;
  font-size: 0.875rem;
}

.footnotes {
  font-size: 0.75rem;
}

/* Options (image + texte côte à côte) */

.option {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.option > * {
  flex: 1;
  min-width: 0;
}

.option img {
  border-radius: 5px;
}

.option-text {
  text-align: center;
  font-size: 1.125rem;
}

.option-text h2 {
  font-weight: 600;
  line-height: 1;
}

.option-text hr {
  width: 100px;
  border: 0;
  border-top: 2px solid var(--green-dark);
  margin: 1.5rem auto;
}

/* Prix */

.price {
  text-align: center;
  color: var(--primary);
  padding: 2rem 0;
}

.price .huge {
  font-weight: 700;
  margin: 0 0 1rem;
}

/* Boutons et formulaire */

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 0;
  background: var(--primary);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  opacity: 0.85;
}

form label {
  display: block;
  margin: 1rem 0 0.25rem;
}

form .required {
  color: #c00;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font: inherit;
}

form .button {
  width: auto;
  margin-top: 1rem;
}

/* Champ piège anti-spam, invisible pour les visiteurs */
form .hp {
  display: none;
}

/* Pied de page */

.site-footer {
  margin-top: 6rem;
  padding: 1.25rem 1rem;
  background: #000;
  color: #fff;
}

.site-footer > div {
  max-width: var(--content);
  margin: 0 auto;
}

.site-footer hr {
  max-width: var(--content);
  border: 0;
  border-top: 1px solid #fff;
  margin: 1.5rem auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  text-decoration: none;
}

/* Mise en page des pages intérieures et des exemples */

main.full {
  padding: 0;
}

.section {
  padding: 4rem 1rem;
}

.container {
  max-width: var(--content);
  margin: 0 auto;
}

.container.wide {
  max-width: var(--wide);
}

.block.narrow {
  max-width: var(--content);
  padding: 1.875rem;
}

.block-green {
  background: #18783529;
}

.right {
  text-align: right;
}

.large {
  font-size: 1.75rem;
  line-height: 1.3;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark {
  background: #242424;
  color: #fff;
}

.gradient-dark {
  background: linear-gradient(to bottom right, var(--primary), #000);
  color: #fff;
}

.cols {
  display: flex;
  gap: 2rem;
}

.cols > * {
  flex: 1;
  min-width: 0;
}

.cols.middle {
  align-items: center;
}

.cols.bottom {
  align-items: flex-end;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 2rem;
}

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

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

.button.outline {
  background: transparent;
  border: 2px solid currentColor;
}

.button.red {
  background: #a5150f;
}

/* Bandeau avec image de fond : l'image est donnée par style="background-image" */

.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 3rem 1rem;
  background: #000 center / cover no-repeat;
  color: #fff;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}

.cover.dim-light::before {
  background: rgba(0, 0, 0, 0.2);
}

.cover.dim-strong::before {
  background: rgba(0, 0, 0, 0.7);
}

.cover.white {
  color: var(--text);
}

.cover.white::before {
  background: rgba(255, 255, 255, 0.5);
}

.cover.tall {
  min-height: 100vh;
}

.cover > div {
  width: 100%;
  max-width: var(--wide);
}

.cover .logo-square {
  width: 120px;
  margin: 0 auto 1.5rem;
}

.circle {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto;
}

.demo-note {
  font-size: 0.875rem;
  margin: 0 0 4rem;
}

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

/* Mentions légales */

.legal {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.legal aside img {
  max-width: 220px;
  margin: 0 auto;
}

.legal h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

/* Exemple photographe */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.split-media {
  background: center / cover no-repeat;
  min-height: 50vh;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Exemples plombier et électricien */

.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(90deg, #fff 24%, #191919 24%);
  color: #fffffe;
}

.profile-text {
  padding: 2.5rem;
}

.profile-text h2 {
  font-size: 3rem;
  font-weight: 600;
}

.quote {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 1rem 0;
  text-align: center;
}

.quote p:first-child {
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.4;
}

/* Exemple jardin */

.services figure {
  margin: 0;
  text-align: center;
}

.services img {
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.rounded-large {
  border-radius: 50px;
}

@media (max-width: 700px) {
  .block {
    padding: 1.25rem;
  }

  .hero-top,
  .option,
  .cols {
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .legal,
  .split,
  .profile {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile {
    background: #191919;
    padding: 1.25rem;
  }

  .profile-text {
    padding: 1.5rem 0;
  }

  .right {
    text-align: left;
  }

  .option.reverse {
    flex-direction: column-reverse;
  }
}
