/* ==========================================================
   adriandoura.com – page provisoire
   Maquettes Figma : Desktop 1440 / Tablet 744 / iPhone 393
   Images de fond à placer dans /images :
     bg-desktop.jpg, bg-tablet.jpg, bg-mobile.jpg
   ========================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background: #7f8fc4; /* couleur de secours si l'image ne charge pas */
  -webkit-font-smoothing: antialiased;
}

/* ---------- Bloc principal (desktop par défaut) ---------- */
.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px;
background: #7f8fc4d0 url("../img/bg-desktop.webp") center / cover no-repeat;}

.domain {
  margin: 0;
  width: 100%;
  font-weight: 500;
  font-size: 60px;
  line-height: normal;
  word-break: break-word;
}

.title {
  margin: 0;
  width: 100%;
  font-weight: 600;
  font-size: 80px;
  line-height: normal;
  word-break: break-word;
}

/* ---------- Follow me ---------- */
.follow {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-top: 80px;
}

.follow__label {
  margin: 0;
  font-weight: 400;
  font-size: 40px;
  line-height: normal;
  white-space: nowrap;
}

.follow__links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.follow__links a {
  display: block;
  width: 40px;
  height: 40px;
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.follow__links a:hover,
.follow__links a:focus-visible {
  opacity: 0.75;
  transform: translateY(-2px);
}

.follow__links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 6px;
}

.follow__links svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Petit desktop : on adapte la taille des titres ---------- */
@media (max-width: 1100px) and (min-width: 745px) {
  .main { padding: 64px; }
  .domain { font-size: 48px; }
  .title  { font-size: clamp(56px, 8.5vw, 80px); }
}

/* ---------- Tablette (744px) ---------- */
@media (max-width: 1023px) {
  .main {
    background-image: url("../img/bg-tablet.webp");
  }
}

@media (max-width: 744px) {
  .main {
    padding: clamp(40px, 13.4vw, 100px);
  }
  .domain {
    font-size: 40px;
  }
  .title {
    font-size: clamp(44px, 10.75vw, 80px);
  }
}

/* ---------- Mobile (393px) ---------- */
@media (max-width: 600px) {
  .main {
    padding: 20px;
    background-image: url("../img/bg-mobile.webp");
  }

  .domain {
    padding: 4px;
    font-weight: 400;
    font-size: 30px;
  }

  .title {
    padding: 4px;
    font-size: 40px;
  }

  .follow {
    gap: 16px;
    padding-top: 80px;
  }

  .follow__label {
    font-size: 20px;
  }

  .follow__links {
    gap: 16px;
  }

  .follow__links a {
    width: 24px;
    height: 24px;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .domain { font-size: 26px; }
  .title  { font-size: 34px; }
}

/* Respect des préférences d'animation */
@media (prefers-reduced-motion: reduce) {
  .follow__links a { transition: none; }
}
