/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: « Roboto »;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v51-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v51-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/roboto-v51-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v51-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/roboto-v51-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



:root {
  --rouge: #c1121f;
  --rouge-fonce: #8b0d16;
  --noir: #0d0d0d;
  --gris-texte: #4a4a4a;
  --gris-bordure: #e2e2e2;
  --gris-fond: #f4f4f4;
  --blanc: #ffffff;
}

body {
  background-color: var(--blanc);
  color: var(--noir);
}

h1{
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  font-size: 42px;
}
h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  font-size: 28px;
}
h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  margin: 0;
  font-size: 20px;
}
p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}
li {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}
a {
  color: var(--rouge);
  text-decoration: none;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
}

a:hover {
  color: var(--rouge-fonce);
  text-decoration: underline;
}

.entete {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 48px 24px;
  border-bottom: 3px solid var(--rouge);
}

.marque {
  display: block;
  flex-shrink: 0;
}

.logo {
  display: block;
  height: 80px;
  width: auto;
  margin-top: 45px;
}

.marque:hover .logo {
  opacity: 0.75;
}

.intro {
  flex: 1;
}


.promo {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background-color: var(--rouge);
  color: var(--blanc);
  border-radius: 999px;
}

.titre {
  margin-bottom: 8px;
}

.slogan {
  color: var(--gris-texte);
}

.contenu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 48px 24px;
}

.soustitre {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gris-bordure);
}

.pastilles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
}

.pastille {
  list-style: none;
}

.fiche {
  border: 1px solid var(--gris-bordure);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.fiche:hover {
  border-color: var(--rouge);
  transform: translateY(-6px);
}

.photo {
  width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--gris-fond);
  border-radius: 12px;
  margin: 16px 16px 0 16px;
}

.nom {
  padding: 16px 16px 0 16px;
}

.role {
  padding: 4px 16px 16px 16px;
  color: var(--gris-texte);
}

.bouton {
  display: block;
  padding: 12px 16px;
  background-color: var(--noir);
  color: var(--blanc);
  text-align: center;
  transition: background-color 0.25s ease;
}

.bouton:hover {
  background-color: var(--rouge);
  color: var(--blanc);
  text-decoration: none;
}

.volet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  background-color: rgba(13, 13, 13, 0.85);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.volet:target {
  opacity: 1;
  visibility: visible;
}

.volet .profil {
  max-width: 700px;
  margin: 48px auto 48px auto;
  padding: 12px 32px 32px 32px;
  background-color: var(--blanc);
  border-radius: 16px;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.volet:target .profil {
  transform: translateY(0);
}

.fermer {
  display: block;
  margin-bottom: 4px;
  text-align: right;
  color: var(--gris-texte);
}

.fermer:hover {
  color: var(--rouge);
}

.portrait {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--gris-fond);
  border-radius: 16px;
  margin-bottom: 24px;
  
}

.profil .nom {
  padding: 0;
  margin-bottom: 8px;
}

.profil .role {
  padding: 0;
  margin-bottom: 24px;
}

.texte {
  margin-bottom: 24px;
  color: var(--gris-texte);
}

.fait {
  margin-bottom: 24px;
  padding: 16px;
  background-color: var(--gris-fond);
  border-left: 4px solid var(--rouge);
  border-radius: 8px;
}

.etiquette {
  color: var(--rouge);
}

.titreliste {
  margin-bottom: 8px;
}

.atouts {
  padding-left: 20px;
}

.atout {
  padding: 4px 0 4px 0;
  color: var(--gris-texte);
}

.retour {
  margin-top: 24px;
}

.pied {
  margin-top: 80px;
  padding: 24px;
  background-color: var(--noir);
  color: var(--blanc);
  text-align: center;
}

.pied a {
  color: var(--blanc);
  text-decoration: underline;
}

.pied a:hover {
  color: var(--rouge);
}

#fermer-mention:hover {
  text-decoration: underline;
  color: var(--rouge);
}

.mention {
  margin-bottom: 4px;
}

.credits {
  margin-bottom: 16px;
  color: var(--gris-bordure);
}
#fermer-mention {
  text-decoration: none;
  color: var(--gris-texte);
}

@media (max-width: 900px) {
  .pastilles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pastilles {
    grid-template-columns: 1fr;
  }

  .entete {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contenu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .volet {
    padding: 12px;
  }

  .volet .profil {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fiche,
  .bouton,
  .volet,
  .volet .profil {
    transition: none;
  }

  .fiche:hover {
    transform: none;
  }
}
