html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f7f8;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: #b30018;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Header */

#header {
  background: #ffffff;
  border-bottom: 4px solid #c8102e;
  box-shadow: 0 4px 18px rgba(40, 0, 7, 0.08);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-block;
}

.brand img {
  width: auto;
  max-width: 230px;
  max-height: 62px;
}

.header-contact a {
  color: #8f0015;
  font-weight: bold;
  text-decoration: none;
}

.header-contact a:hover,
.header-contact a:focus {
  text-decoration: underline;
}

/* Hero */

#main {
  padding: 56px 0 72px 0;
}

.hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  padding: 48px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(45, 0, 8, 0.08);
}

.hero-copy {
  flex: 1 1 58%;
}

.hero-copy h1 {
  margin: 0 0 20px 0;
  color: #181818;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.hero-copy p {
  margin: 0 0 18px 0;
  color: #555555;
}

.eyebrow {
  margin-bottom: 10px !important;
  color: #c8102e !important;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 22px;
  background: #c8102e;
  color: #ffffff;
  border: 2px solid #c8102e;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus {
  background: #ffffff;
  color: #c8102e;
  transform: translateY(-2px);
}

.hero-image {
  flex: 0 1 420px;
  min-height: 250px;
  overflow: hidden;
  background: #f2dfe3;
  border-radius: 16px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  max-height: 320px;
  object-fit: cover;
}

/* Domaines */

.domains-section {
  padding-top: 72px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 12px 0;
  font-size: 36px;
  line-height: 1.2;
}

.section-heading p {
  margin-top: 0;
  color: #666666;
}

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

.domain-card {
  position: relative;
  display: flex;
  min-height: 178px;
  padding: 28px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  color: #222222;
  border: 1px solid #ececec;
  border-top: 5px solid #c8102e;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(45, 0, 8, 0.07);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.domain-card:before {
  position: absolute;
  top: -44px;
  right: -42px;
  width: 120px;
  height: 120px;
  background: rgba(200, 16, 46, 0.07);
  border-radius: 50%;
  content: "";
}

.domain-card:hover,
.domain-card:focus {
  border-color: #c8102e;
  box-shadow: 0 18px 40px rgba(120, 0, 18, 0.15);
  transform: translateY(-5px);
}

.domain-name {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
  color: #1f1f1f;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.25;
}

.domain-price {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #c8102e;
  font-size: 22px;
  font-weight: bold;
}

.domain-action {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: #777777;
  font-size: 14px;
  font-weight: bold;
}


/* Catalogue compact */

.domain-catalogue {
  margin-top: 42px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(45, 0, 8, 0.07);
}

.catalogue-heading {
  margin-bottom: 24px;
}

.catalogue-heading h3 {
  margin: 0 0 6px 0;
  color: #1f1f1f;
  font-size: 26px;
  line-height: 1.25;
}

.catalogue-heading p {
  margin: 0;
  color: #666666;
}

.domain-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.domain-list-column {
  margin: 0;
  padding: 0;
  border-top: 4px solid #c8102e;
  list-style: none;
}

.domain-list-item {
  border-bottom: 1px solid #eeeeee;
}

.domain-list-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 9px;
  color: #222222;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.domain-list-item a:hover,
.domain-list-item a:focus {
  background: #fff4f6;
  color: #8f0015;
}

.list-domain-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: bold;
}

.list-domain-price {
  color: #c8102e;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.list-domain-action {
  padding: 3px 7px;
  color: #ffffff;
  background: #7f0013;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
}

/* Footer */

#footer {
  background: #7f0013;
  color: #ffffff;
  border-top: 6px solid #c8102e;
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.copyright {
  margin: 0;
}

.footer-links {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
}

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

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

/* Responsive */

@media screen and (max-width: 900px) {
  .hero {
    gap: 30px;
    padding: 34px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

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

  .domain-list-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 700px) {
  .header-inner,
  .footer-inner {
    padding-top: 18px;
    padding-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  #main {
    padding-top: 30px;
  }

  .hero {
    padding: 26px;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .hero-image {
    flex-basis: auto;
    width: 100%;
    min-height: 230px;
  }

  .hero-image img {
    min-height: 230px;
    max-height: 280px;
  }

  .domains-section {
    padding-top: 52px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }

  .domain-catalogue {
    padding: 24px;
  }
}

@media screen and (max-width: 420px) {
  .container {
    width: 90%;
  }

  .hero {
    padding: 20px;
    border-radius: 14px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .domain-card {
    min-height: 155px;
    padding: 23px;
  }

  .domain-name {
    font-size: 21px;
  }
}
