@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@600&family=Work+Sans:wght@400;600&display=swap');

:root {
  --bg: #fafafa;
  --text-primary: #2e2e2e;
  --text-secondary: #555555;
  --accent: #176b87;
  --highlight: #dd6e42;
  --border: #e0e0e0;
  --shadow-light: rgba(23, 107, 135, 0.15);
  --radius: 14px;
  --transition: 0.4s ease;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px 80px;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Work Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 3.6rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
}

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 56px;
}

nav a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 6px;
  transition: color var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--highlight);
  border-radius: 3px;
  transition: all var(--transition);
}

nav a:hover,
nav a:focus {
  color: var(--highlight);
  outline: none;
}

nav a:hover::after,
nav a:focus::after {
  left: 0;
  width: 100%;
}

.barre-tirets {
  border: none;
  border-top: 2px dashed var(--border);
  width: 90%;
  margin: 48px auto;
}

/* Card personnage */

.personnage {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px var(--shadow-light);
  padding: 28px 36px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.personnage:hover,
.personnage:focus-within {
  box-shadow: 0 18px 48px rgba(23, 107, 135, 0.3);
}

.photo {
  flex: 0 0 360px;
  height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(23, 107, 135, 0.1);
  transition: transform var(--transition);
  cursor: pointer;
}

.personnage:hover .photo {
  transform: scale(1.05);
}

.description {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nom {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent);
  user-select: text;
}

.description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Bouton stylé pour "Lire" */

.read-link {
  align-self: flex-start;
  background-color: var(--highlight);
  border: none;
  color: #fff;
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: 28px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(221, 110, 66, 0.3);
  transition: background-color var(--transition), box-shadow var(--transition);
  user-select: none;
  text-decoration: none;
}

.read-link:hover,
.read-link:focus {
  background-color: #c05b2a;
  box-shadow: 0 12px 28px rgba(192, 91, 42, 0.5);
  outline: none;
}

/* Responsive */

@media (max-width: 760px) {
  .personnage {
    flex-direction: column;
    padding: 24px;
  }
  .photo {
    width: 100%;
    height: auto;
  }
  .description {
    flex-grow: 0;
    margin-top: 20px;
  }
}
