:root {
  --dark-red: #6a0c0b;
  --gold: #fbca03;
  --white: #eee;
  --black: #111;
  --container: calc(100% / 14);
  --border-radius: 1rem;
  --space: 1.5rem;
  --transition: 0.5s ease-in-out;

  font-size: clamp(1rem, 1vw, 1.5rem);
  /* font-size: 1vw; */
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  position: relative;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  z-index: -1;
  background: url("./img/Noise_Texture_White.webp") repeat 0 0 / 200rem;
}

main {
  padding-inline: var(--container);
  overflow: clip;
}
section {
  padding-block: 5rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1;
}
h2 {
  font-family: "Protest Guerrilla", sans-serif;
}
h2 {
  font-size: 1.5rem;
  color: var(--dark-red);
}

h3 {
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
  width: fit-content;
}
h3::before {
  content: "";
  position: absolute;
  max-width: calc(100% - 1.5rem);
  width: 5rem;
  border-radius: 0.25rem;
  height: 0.25rem;
  right: -0.5rem;
  bottom: 1.5rem;
  background-color: var(--gold);
}
.cell:not(.b-red) h3 {
  color: var(--dark-red);
}
.cell:not(.b-red) h3::before {
  background-color: var(--dark-red);
}
h3.no-deco {
  padding-bottom: 0;
}
h3.no-deco::before {
  content: unset;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.cell {
  border-radius: var(--border-radius);
  padding: var(--space);
  background-color: #eeeeee80;
}
.full {
  padding: 0;
}
.center {
  text-align: center;
  margin-inline: auto;
}
.b-red {
  background-color: var(--dark-red);
  color: var(--gold);
}
.protest {
  font-family: "Protest Guerrilla", sans-serif;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(0.25rem);
  padding-inline: var(--container);
  background-color: #eeeeee80;
}
header nav {
  display: flex;
  align-items: center;
}
header ul {
  display: flex;
}
header img {
  width: 2rem;
  padding-block: 0.5rem;
}
header .logo a {
  display: block;
}
header ul a {
  display: inline-block;
  color: var(--dark-red);
  text-decoration: none;
  padding: 0.75rem;
  padding-bottom: 1rem;
  font-weight: bold;
  position: relative;
}
header ul a::before {
  content: "";
  position: absolute;
  max-width: calc(100% - 1.5rem);
  width: 3.5rem;
  border-radius: 0.25rem;
  height: 0.25rem;
  right: 0.25rem;
  bottom: 0.5rem;
  background-color: var(--dark-red);
}
header ul {
  margin-inline: auto;
}
@media (max-width: 45rem) {
  header ul {
    display: none;
  }
  header .logo {
    margin-inline: auto;
  }
}
/* Iron Man */
.iron {
  position: relative;
  grid-template-areas:
    "a a a a d d d d e e "
    "b b b b d d d d e e"
    "c c f f g g g g g g";
}

.iron .bgImg {
  position: relative;
  background-image: url("./img/Herobanner.webp");
  backdrop-filter: grayscale(0.5) blur(0.25rem);
  background-size: 100vmax;
  background-repeat: no-repeat;
}
.iron .bgImg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background-color: #00000040;
  backdrop-filter: blur(0.125rem);
}
.iron h1 {
  font-size: 2rem;
  font-weight: 900;
}
.iron p {
  font-style: italic;
}
.iron p,
.iron h1 {
  margin-block: 2rem;
  color: var(--white);
}
.iron .logo img {
  height: 3rem;
  width: auto;
  margin-inline: auto;
  max-width: 100%;
  object-fit: contain;
}
.iron .img {
  position: absolute;
  bottom: 5rem;
  top: 3rem;
  left: calc(40% - var(--space) * 2);
  right: 0;
  height: calc(100% - 8rem);
  pointer-events: none;
}
.iron .img img {
  width: auto;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}
@media (max-width: 60rem) {
  .iron {
    grid-template-areas:
      "a a a a d d"
      "b b b b d d"
      "c c c e e e";
  }
  .iron .img {
    left: 60%;
    width: 50%;
    top: unset;
    height: auto;
  }
}
@media (max-width: 40rem) {
  .iron {
    grid-template-areas:
      "a a a a"
      "b b b b"
      "c c c d"
      "e e e e";
  }
  .iron h1 {
    font-size: 1.5rem;
  }
  .iron .img {
    left: 70%;
    width: 40%;
    top: unset;
    height: auto;
  }
}
/* Identité */
.identite {
  grid-template-areas:
    "a a a a a a a a a a"
    "b b b b c c c c d d"
    "g g g g c c c c d d"
    "g g g g e e e f f f";
}
.identite .logo img {
  height: 3rem;
  width: auto;
  margin-inline: auto;
  max-width: 100%;
  object-fit: contain;
}
.identite .comicImg img {
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  height: 100%;
}
.identite .natio {
  position: relative;
}
.identite .natio img {
  height: 100%;
  object-position: top left;
  border-radius: var(--border-radius);
}
.identite .natio p {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius) 0 var(--border-radius);
}
.identite p + h3 {
  margin-top: 1.5rem;
}
.identite .apparitions {
  position: relative;
}
.identite .apparitions li {
  padding-block: 0.5rem;
  cursor: move;
  transition: color var(--transition);
}
.identite .apparitions li:hover {
  font-weight: bold;
  color: var(--dark-red);
}
.identite .apparitions img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  aspect-ratio: 6/9;
}
.identite .apparitions img[show] {
  opacity: 1;
}
@media (max-width: 60rem) {
  .identite {
    grid-template-areas:
      "a a a a a a"
      "b b b b d d"
      "c c c c d d"
      "e e e e g g"
      "f f f f f f";
  }
}
@media (max-width: 40rem) {
  .identite {
    grid-template-areas:
      "a a a a "
      "b b b b"
      "d d g g"
      "c c c c"
      "e e e e"
      "f f f f";
  }
}
/* IA */
.ia {
  grid-template-areas:
    "a a a a a a a a a a"
    "b b b c c c c c d d"
    "e e e c c c c c d d"
    "e e e f f f g g g g"
    "h h h i i i k k k k"
    "j j j i i i k k k k";
}

.ia .acronym p {
  display: inline-block;
}
.ia .jarvisImg img {
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  height: 100%;
}
.ia .fridayImg {
  overflow: hidden;
}
.ia .fridayImg img {
  border-radius: var(--border-radius);
  height: 100%;
  scale: 1.1;
  transition: transform-origin var(--transition);
  animation: fridayOrigin 2s infinite ease-in-out;
}
@keyframes fridayOrigin {
  0%,
  100% {
    transform-origin: 40% 50%;
  }
  25% {
    transform-origin: 60% 50%;
  }
  50% {
    transform-origin: 50% 60%;
  }
  75% {
    transform-origin: 50% 40%;
  }
}
@media (max-width: 60rem) {
  .ia {
    grid-template-areas:
      "a a a a a a"
      "b b b b e e"
      "d d d d e e"
      "c c c f f f"
      "g g g g g g"
      "h h h i i i"
      "j j j i i i"
      "k k k k k k";
  }
}
@media (max-width: 40rem) {
  .ia {
    grid-template-areas:
      "a a a a"
      "b b b b"
      "c c c c"
      "f f f f"
      "d d d d"
      "e e e e"
      "g g g g"
      "h h h h"
      "i i i i"
      "j j j j"
      "k k k k";
  }
}
/* arsenal */
.arsenal {
  grid-template-areas:
    "a a a a a a a a a a"
    "b b b b b b h h h h"
    "c c c d d d i j j j"
    "c c c e e e i j j j"
    "c c c f f f i j j j"
    "c c c g g g i j j j";
}

.arsenal img {
  border-radius: var(--border-radius);
}
.arsenal .minias {
  height: 1rem;
  min-height: 100%;
  display: flex;
  overflow-y: scroll;
  gap: var(--space);
  flex-direction: column;
}
.arsenal .minias img {
  aspect-ratio: 1;
  object-position: top;
  transition: transform var(--transition), rotate var(--transition);
}
.arsenal .minias img:hover {
  rotate: y 45deg;
  transform: skew(0deg, -5deg);
}
.arsenal .power {
  position: relative;
  overflow: hidden;
}
.arsenal .power p {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: var(--border-radius) 0 var(--border-radius);
  background-color: #eeeeee80;
  backdrop-filter: blur(0.25rem);
  padding: 0.75rem 1rem;
  color: var(--dark-red);
  font-weight: bold;
}
.arsenal .power img {
  aspect-ratio: 4/2;
  transition: scale var(--transition);
}
.arsenal .power:hover img {
  scale: 1.1;
}
.arsenal .fighting img {
  height: 100%;
}
.arsenal .fullArmor {
  position: relative;
}
.arsenal .fullArmor img {
  height: 100%;
}
.arsenal .fullArmor #armorImg2 {
  position: absolute;
  inset: 0;
  z-index: 1;
}
@media (max-width: 60rem) {
  .arsenal {
    grid-template-areas:
      "a a a a a a"
      "b b b b b b"
      "c c c d d d"
      "c c c e e e"
      "c c c f f f"
      "c c c g g g"
      "h h h h h h"
      "i i j j j j";
  }
}
@media (max-width: 40rem) {
  .arsenal {
    grid-template-areas:
      "a a a a"
      "b b b b"
      "c d d d"
      "c e e e"
      "c f f f"
      "c g g g"
      "h h h h"
      "j j j i";
  }
}
/* ennemis */
.ennemis {
  display: flex;
  flex-direction: column;
}
.ennemis swiper-container::part(container) {
  overflow: visible;
}
.ennemis swiper-slide {
  height: auto;
}
.ennemis .card {
  background-color: #eeeeee80;
  padding: var(--space);
  display: grid;
  gap: var(--space);
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
  box-sizing: border-box;
}
.ennemis .text {
  border-radius: var(--border-radius);
  padding: var(--space);
  background-color: #fff;
  position: relative;
  padding-bottom: 5.5rem;
}
.ennemis .text h3 {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.75rem 1rem;
  z-index: 1;
  width: 15rem;
  max-width: calc(100% - var(--space) * 2);
  box-sizing: border-box;
  color: var(--dark-red);
  text-align: center;
}
.ennemis .text h3::before {
  content: "";
  inset: 0;
  top: calc(-1 * var(--space));
  left: calc(-1 * var(--space));
  background-color: var(--white);
  height: calc(100% + var(--space));
  width: calc(100% + var(--space));
  max-width: unset;
  z-index: -1;
  border-radius: var(--border-radius) 0 var(--border-radius);
}
.ennemis .text h3::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  border-radius: var(--border-radius) 0 var(--border-radius);
  z-index: -1;
}
.ennemis img {
  border-radius: var(--border-radius);
  height: 100%;
}
@media (max-width: 40rem) {
  .ennemis .card {
    grid-template-columns: 1fr;
  }
  .ennemis .text {
    padding-bottom: 6rem;
  }
}
/* Citations */
.citations {
  grid-template-areas:
    "a a a a a a a a a a"
    "b b b c c c c d d d"
    "e e e e f f f g g g";
}

.citations .quote {
  position: relative;
  height: 20rem;
  background-color: unset;
  overflow: hidden;
}
.citations .quote img {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: var(--border-radius);
  z-index: -1;
  transition: scale var(--transition);
}
.citations .quote div {
  background-color: #11111140;
  backdrop-filter: blur(1rem);
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  height: calc(100% - var(--space) * 2 - 3rem);
  padding: var(--space);
  border-radius: var(--border-radius) var(--border-radius) 0
    var(--border-radius);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity var(--transition), translate var(--transition);
}
.citations .quote div::before {
  content: '"';
  font-size: 10rem;
  color: var(--dark-red);
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
}
.citations .quote span {
  font-size: 0.75rem;
}
.citations .quote p + p {
  margin-top: 1.5rem;
}
.citations .quote h3 {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #11111140;
  backdrop-filter: blur(1rem);
  margin-left: auto;
  color: var(--white);
  text-align: center;
  transition: opacity var(--transition), translate var(--transition);
}
.citations .quote:hover :is(div, h3) {
  opacity: 0;
  translate: 0 var(--space);
}
.citations .quote:hover img {
  scale: 1.2;
}
@media (max-width: 60rem) {
  .citations {
    grid-template-areas:
      "a a a a a a"
      "b b c c c c"
      "e e e e f f"
      "d d d g g g";
  }
}
@media (max-width: 40rem) {
  .citations {
    grid-template-areas:
      "a a a a"
      "b b b b"
      "c c c c"
      "d d d d"
      "e e e e"
      "f f f f"
      "g g g g";
  }
}
/* Footer */
footer {
  grid-template-areas:
    "a a a a b b b c c c"
    "d d d d d d d d d d";
  grid-template-areas:
    "a b b b b c c c d d"
    "e e e e e e e e e e";
  padding-inline: var(--container);
  padding-block: var(--space);
  background-color: var(--white);
}
@media (max-width: 60rem) {
  footer {
    grid-template-areas:
      "a b b b b b"
      "c c c d d d"
      "e e e e e e";
  }
}
@media (max-width: 40rem) {
  footer {
    grid-template-areas:
      "a a a a"
      "b b b b"
      "c c c c"
      "d d d d"
      "e e e e";
  }
  footer .a img {
    margin-inline: auto;
  }
}
footer a {
  color: var(--dark-red);
  text-decoration: none;
}
footer .a p {
  margin-top: var(--space);
}
footer h3 {
  font-size: 1rem;
}
footer .a img {
  width: 6rem;
}
footer .social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space);
}
footer .social svg {
  width: 2rem;
  height: 2rem;
}
footer .social .blue {
  fill: var(--black);
}
footer .social .orange {
  fill: var(--dark-red);
}
footer .small {
  font-size: 0.75rem;
  font-style: italic;
}
footer .bold {
  font-weight: bold;
}
