/* IHYA Srl — page « site en construction » */

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #0B0D0F;
  --white: #F7F4EE;
  --gold: #F6BC08;
  --gold-light: #FFCB2E;
  --beige: #D8D0BF;
  --grey: #4C5255;
  --text-soft: rgba(247, 244, 238, 0.86);
  --text-muted: #A9A498;
  --line: rgba(247, 244, 238, 0.14);

  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --max: 82.5rem;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

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

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* En-tête */

.site-header {
  position: relative;
  z-index: 2;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: clamp(1.25rem, 2.6vw, 2.25rem);
}

.site-header__logo {
  width: auto;
  height: clamp(2.125rem, 1.5rem + 2.2vw, 3.375rem);
}

.site-header__meta {
  display: flex;
  align-items: center;
  font-size: clamp(0.8125rem, 0.76rem + 0.25vw, 0.9375rem);
  font-weight: 500;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.625em;
  white-space: nowrap;
}

.status__dot {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 188, 8, 0.14);
}

.site-header__sep,
.site-header__mail {
  display: none;
}

.site-header__sep {
  width: 1px;
  height: 2.75rem;
  margin-inline: 1.75rem;
  background: rgba(247, 244, 238, 0.32);
}

.site-header__mail {
  padding-block: 0.75rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-header__mail:hover {
  color: var(--gold);
}

@media (max-width: 359px) {
  .site-header__inner {
    gap: 0.75rem 1rem;
  }

  .site-header__logo {
    height: 1.875rem;
  }

  .site-header__meta {
    font-size: 0.75rem;
  }
}

@media (min-width: 640px) {
  .site-header__sep,
  .site-header__mail {
    display: block;
  }
}

/* Hero */

.hero {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 2.5rem);
}

.hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero__eyebrow {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.75rem, 0.66rem + 0.42vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  line-height: 1.6;
  color: var(--text-soft);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 1.05rem + 6vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero__title-line {
  display: block;
}

.hero__title-line--gold {
  color: var(--gold);
}

.hero__lead {
  max-width: 28em;
  margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
  font-size: clamp(1.0625rem, 0.97rem + 0.42vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn__icon {
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: var(--gold-light);
}

.btn--primary:hover .btn__icon--arrow {
  transform: translateX(4px);
}

.btn--secondary {
  border-color: rgba(247, 244, 238, 0.85);
  color: var(--white);
}

.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero__mail {
  display: inline-block;
  margin-top: 1rem;
  padding-block: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 0.2s var(--ease);
}

.hero__mail:hover {
  color: var(--gold);
}

/* Illustration de marque : son fond se fond dans le charbon de la page. */
.hero__visual {
  justify-self: center;
  width: min(100%, 26rem);
  margin-block: -0.5rem;
}

.hero__visual img {
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 15%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 15%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 559px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .hero__visual {
    width: min(100%, 32rem);
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-top: clamp(1rem, 2.5vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 3vw, 3rem);
  }

  .hero__title {
    font-size: clamp(3.75rem, 0.6rem + 5.6vw, 6.5rem);
  }

  .hero__title-line {
    white-space: nowrap;
  }

  /* L'illustration déborde à droite et sous l'en-tête, en restant derrière les textes. */
  .hero__visual {
    justify-self: stretch;
    width: auto;
    max-width: 58rem;
    margin-block: -4rem -2.5rem;
    margin-left: -3rem;
    margin-right: calc(-1 * var(--gutter));
  }
}

/* Bandeau des services */

.services {
  border-top: 1px solid var(--gold);
}

.services__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
  padding: 1.5rem 1rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.service:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.service__icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.service__icon .accent {
  stroke: var(--gold);
}

.service__label {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.service__label::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  margin-top: 0.625rem;
  background: var(--gold);
}

@media (max-width: 339px) {
  .services__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .service,
  .service:nth-child(even) {
    flex-direction: row;
    align-items: center;
    padding: 1.125rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .services__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 2rem;
  }

  .service,
  .service:nth-child(even) {
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 1.6vw, 1.5rem);
    padding: 0.5rem 1rem 0.5rem clamp(1.25rem, 3vw, 3rem);
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .service:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .service__icon {
    width: clamp(3rem, 3.6vw, 3.5rem);
    height: clamp(3rem, 3.6vw, 3.5rem);
  }

  .service__label {
    font-size: clamp(1.0625rem, 0.8rem + 0.4vw, 1.1875rem);
  }
}

@media (min-width: 1280px) {
  .service__label {
    white-space: nowrap;
  }
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding-block: 1.75rem;
}

.site-footer__logo {
  width: auto;
  height: 1.375rem;
}

.site-footer__rule {
  display: none;
  flex: 1 1 auto;
  height: 1px;
  background: rgba(247, 244, 238, 0.22);
}

.site-footer__note {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer__note span {
  margin-inline: 0.5em;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .site-footer__rule {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .btn--primary:hover .btn__icon--arrow {
    transform: none;
  }
}
