/* =============================================
   Lino Volti — Site officiel
   Palette : blanc épuré & bleu foncé
   ============================================= */

:root {
  --white: #ffffff;
  --off-white: #f8f9fb;
  --blue-dark: #0a1628;
  --blue-mid: #152238;
  --blue-accent: #1e3a5f;
  --blue-light: #2d4a6f;
  --text: #1a1a1a;
  --text-muted: #5a6474;
  --border: #e4e8ef;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.12);
  --transition: 0.3s ease;
  --max-width: 1120px;
  --header-height: 72px;
  --admin-bar-height: 40px;
  --font-serif: "Lora", "Georgia", serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

p + p {
  margin-top: 1rem;
}

.text-muted {
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--block-label-color, var(--blue-accent));
  margin-bottom: 0.75rem;
}

/* ---- Layout ---- */

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section.block-editable {
  background: var(--block-bg, transparent);
}

.section.block-editable > .container > h2 {
  color: var(--block-title-color, inherit);
}

.section.block-editable .author-bio h2 {
  color: var(--block-title-color, inherit);
}

.section.block-editable .author-bio p,
.section.block-editable .author-bio blockquote,
.section.block-editable .rich-text {
  color: var(--block-text-color, inherit);
}

.section.block-editable .author-photo img {
  border: 3px solid var(--block-image-border, var(--blue-dark));
}

.section.block-editable .btn--outline {
  background: var(--block-btn-bg, transparent);
  color: var(--block-btn-text, var(--blue-dark));
  border-color: var(--block-btn-border, var(--blue-dark));
}

.section--alt {
  background: var(--off-white);
}

.section--alt.block-editable {
  background: var(--block-bg, var(--off-white));
}

/* ---- Header ---- */

.parallax {
  will-change: transform;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .parallax {
    transform: none !important;
    will-change: auto;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  width: 100%;
  background: transparent;
  border-bottom: none;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--blue-accent);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-dark);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--blue-dark);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  transition: var(--transition);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}

.btn--outline:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--amazon {
  background: #ff9900;
  color: #0a1628;
}

.btn--amazon:hover {
  background: #e88b00;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--hero-bg, var(--white));
}

.hero--image-left .hero__image {
  order: -1;
}

.hero h1 {
  color: var(--hero-title-color, var(--blue-dark));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  animation: fadeUp 0.8s ease forwards;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--hero-subtitle-color, var(--blue-accent));
  margin-bottom: 1rem;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--hero-text-color, var(--text-muted));
  margin: 1.5rem 0 2.5rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero__image img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}

.hero__image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--hero-image-border, var(--blue-dark));
  border-radius: 2px;
  z-index: -1;
}

.hero .hero__btn--primary {
  background: var(--hero-btn-primary-bg, var(--blue-dark));
  color: var(--hero-btn-primary-text, #fff);
  border: 2px solid var(--hero-btn-primary-border, var(--hero-btn-primary-bg, var(--blue-dark)));
}

.hero .hero__btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hero .hero__btn--outline {
  background: var(--hero-btn-outline-bg, transparent);
  color: var(--hero-btn-outline-text, var(--blue-dark));
  border: 2px solid var(--hero-btn-outline-border, var(--blue-dark));
}

.hero .hero__btn--outline:hover {
  background: var(--hero-btn-outline-border, var(--blue-dark));
  color: #fff;
}

/* ---- Page Header ---- */

.page-header {
  padding: calc(var(--header-height) + 4rem) 0 3rem;
  background: var(--block-bg, var(--off-white));
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header .section-label {
  color: var(--block-label-color, var(--blue-accent));
}

.page-header h1 {
  color: var(--block-title-color, var(--blue-dark));
}

.page-header p {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--block-text-color, var(--text-muted));
  font-size: 1.125rem;
}

/* ---- Book Cards ---- */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.book-card__cover {
  aspect-ratio: 2/3;
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-accent) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

.book-card__cover h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.book-card__cover span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-card__body {
  padding: 1.5rem;
}

.book-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.book-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Books List ---- */

.books-list {
  background: var(--white);
  border: 1px solid var(--border);
}

.books-list__item {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.books-list__link {
  display: grid;
  grid-template-columns: 72px 1fr 80px 180px;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1rem 1.25rem;
  color: inherit;
  transition: background var(--transition);
}

.books-list__item:last-child {
  border-bottom: none;
}

.books-list__item:hover,
.books-list__link:hover {
  background: var(--off-white);
}

.books-list__cover {
  margin: 0;
  width: 72px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(30, 58, 95, 0.08), rgba(30, 58, 95, 0.02)),
    #f8f9fb;
  overflow: hidden;
  flex-shrink: 0;
}

.books-list__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.books-list__link:hover .books-list__cover img {
  transform: scale(1.04);
}

.books-list__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.books-list__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0;
}

.books-list__type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(30, 58, 95, 0.08);
  padding: 0.2rem 0.6rem;
}

.books-list__summary {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.books-list__year {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-accent);
  text-align: center;
}

.books-list__editor {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

/* ---- Featured Book ---- */

.featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.featured__cover {
  margin: 0;
  aspect-ratio: 2/3;
  background: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.featured__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured__content h2 {
  margin-bottom: 0.5rem;
}

.featured__content h2 a {
  color: inherit;
  transition: color var(--transition);
}

.featured__content h2 a:hover {
  color: var(--blue-accent);
}

.featured__cover-link {
  display: block;
  transition: opacity var(--transition);
}

.featured__cover-link:hover {
  opacity: 0.92;
}

.featured__year {
  font-size: 0.875rem;
  color: var(--blue-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.featured__quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--blue-dark);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.featured__quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Book Detail ---- */

.book-page {
  padding-top: calc(var(--header-height) + 3rem);
}

.book-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.book-breadcrumb a {
  color: var(--blue-accent);
}

.book-breadcrumb a:hover {
  color: var(--blue-dark);
}

.book-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-detail__cover {
  margin: 0;
  aspect-ratio: 2/3;
  background: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.book-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-detail__content h1 {
  margin-bottom: 1.5rem;
}

.book-detail__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  padding: 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.book-detail__meta li {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.book-detail__meta strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.15rem;
}

.book-detail__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.book-detail__summary {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--blue-dark);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.book-detail__description p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.book-detail__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.book-not-found {
  text-align: center;
  padding: 4rem 0;
}

.book-not-found h1 {
  margin-bottom: 1rem;
}

.book-not-found p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---- Actu Detail ---- */

.actu-page {
  padding-top: calc(var(--header-height) + 3rem);
}

.actu-detail__image {
  margin: 0 0 2.5rem;
  aspect-ratio: 16/9;
  max-height: 480px;
  background: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.actu-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actu-detail__header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.actu-detail__header h1 {
  margin: 0.5rem 0;
}

.actu-detail__location {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.actu-detail__body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.actu-detail__list-item {
  padding-left: 1rem;
  color: var(--text);
}

/* ---- Author ---- */

.author-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.author-photo img {
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.author-photo figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.author-bio h2 {
  margin-bottom: 1.5rem;
}

.author-bio blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--blue-accent);
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  margin-top: 3rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline__year {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-accent);
}

.timeline__content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline__content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---- News ---- */

.news-grid {
  display: grid;
  gap: 2rem;
}

.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
}

.news-card--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.news-card:hover,
.news-card--link:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.news-card__image {
  position: relative;
  margin: 0;
  background: var(--off-white);
  border-right: 1px solid var(--border);
  overflow: hidden;
  align-self: stretch;
  min-height: 100%;
}

.news-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-card__body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 2rem 2rem 2rem 0;
}

.news-card__content h3 {
  margin-bottom: 0.5rem;
}

.news-card__content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.news-card__date {
  text-align: center;
}

.news-card__day {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
}

.news-card__month {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.news-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(30, 58, 95, 0.08);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.news-card h3 {
  margin-bottom: 0.5rem;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.news-card--compact {
  grid-template-columns: 160px 1fr;
  overflow: hidden;
}

.news-card--compact .news-card__image {
  min-height: 100%;
}

.news-card--compact .news-card__body {
  padding: 1.25rem 1.5rem;
}

.news-card--link.news-card--compact:hover {
  background: var(--off-white);
}

/* ---- Reviews ---- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
}

.review-card__text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.review-card__text::before {
  content: "\201C";
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--blue-accent);
  margin-bottom: 0.5rem;
  font-style: normal;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.stars__star {
  flex-shrink: 0;
  color: #e4e8ef;
}

.stars__star--filled {
  color: #f4b400;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stars__track,
.stars__fill {
  display: none;
}

.review-card__score {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.review-card__score strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.review-card__author {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.review-card__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.review-card__source {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ---- Footer ---- */

.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer__links li + li {
  margin-top: 0.75rem;
}

.footer__links a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer__bottom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer__rgpd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer__rgpd a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__rgpd a:hover {
  color: var(--white);
}

.legal-page {
  max-width: 720px;
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-page ul {
  margin: 0.75rem 0 0 1.25rem;
}

.legal-page li + li {
  margin-top: 0.4rem;
}

.legal-page a {
  color: var(--blue-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---- Contact ---- */

.contact-block {
  background: var(--block-bg, var(--white));
  text-align: center;
  padding: 2.5rem 0;
}

.contact-block__inner {
  max-width: 560px;
  margin-inline: auto;
}

.contact-block__title {
  color: var(--block-title-color, var(--blue-dark));
  margin-bottom: 0.75rem;
}

.contact-block__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--block-text-color, var(--blue-dark));
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--transition), opacity var(--transition);
}

.contact-block__email:hover {
  color: var(--blue-accent);
}

/* ---- Quote Banner ---- */

.quote-banner {
  background: var(--block-bg, var(--blue-dark));
  color: var(--block-text-color, var(--white));
  padding: 5rem 0;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
  color: var(--block-quote-color, inherit);
}

/* ---- Nouveaux blocs (CTA, colonnes, image, etc.) ---- */

.cta-block {
  background: var(--block-bg, var(--blue-dark));
  text-align: center;
}

.cta-block--left {
  text-align: left;
}

.cta-block .section-label {
  color: var(--block-label-color, #9db4ce);
}

.cta-block h2 {
  color: var(--block-title-color, #fff);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block--left h2 {
  margin-left: 0;
}

.cta-block__text {
  color: var(--block-text-color, rgba(255, 255, 255, 0.8));
  max-width: 560px;
  margin: 1rem auto 2rem;
  font-size: 1.125rem;
}

.cta-block--left .cta-block__text {
  margin-left: 0;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-block--left .cta-block__actions {
  justify-content: flex-start;
}

.cta-block .btn--primary {
  background: var(--block-btn-bg, #fff);
  color: var(--block-btn-text, #0a1628);
  border-color: var(--block-btn-border, #fff);
}

.cta-block .btn--outline {
  color: var(--block-title-color, #fff);
  border-color: var(--block-title-color, #fff);
  background: transparent;
}

.columns-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.columns-block__col h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--block-title-color, var(--blue-dark));
  margin-bottom: 0.75rem;
}

.columns-block__col p {
  color: var(--block-text-color, var(--text-muted));
  line-height: 1.7;
}

.media-image-block {
  background: var(--block-bg, transparent);
}

.media-image-block--left .media-image-block__figure {
  margin-left: 0;
  margin-right: auto;
}

.media-image-block--center .media-image-block__figure {
  margin-left: auto;
  margin-right: auto;
}

.media-image-block--right .media-image-block__figure {
  margin-left: auto;
  margin-right: 0;
}

.media-image-block__figure {
  max-width: 100%;
}

.media-image-block__figure--small {
  width: min(360px, 100%);
}

.media-image-block__figure--medium {
  width: min(640px, 100%);
}

.media-image-block__figure--large {
  width: min(900px, 100%);
}

.media-image-block__figure--full {
  width: 100%;
}

.media-image-block__figure img {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.media-image-block__figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--block-text-color, var(--text-muted));
  text-align: center;
}

.spacer-block {
  height: var(--spacer-height, 64px);
  background: var(--spacer-bg, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.spacer-block__line {
  width: min(240px, 40%);
  border: none;
  border-top: 1px solid var(--spacer-line, #e2e8f0);
  margin: 0;
}

.spacer-block--preview {
  outline: 1px dashed rgba(30, 58, 95, 0.25);
}

.spacer-block__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.features-block__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.features-block__item {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--white);
}

.features-block__icon {
  color: var(--block-label-color, var(--blue-accent));
  margin-bottom: 1rem;
}

.features-block__item h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--block-title-color, var(--blue-dark));
  margin-bottom: 0.5rem;
}

.features-block__item p {
  color: var(--block-text-color, var(--text-muted));
  font-size: 0.975rem;
  line-height: 1.65;
}

.faq-block__list {
  margin-top: 2rem;
  max-width: 760px;
}

.faq-block__item {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}

.faq-block__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--block-title-color, var(--blue-dark));
  font-family: var(--font-sans);
}

.faq-block__item summary::-webkit-details-marker {
  display: none;
}

.faq-block__item summary::after {
  content: "+";
  float: right;
  color: var(--block-label-color, var(--blue-accent));
  font-weight: 400;
}

.faq-block__item[open] summary::after {
  content: "–";
}

.faq-block__answer {
  padding: 0 0 1.25rem;
  color: var(--block-text-color, var(--text-muted));
  line-height: 1.7;
}

.buttons-block {
  background: var(--block-bg, transparent);
  padding: 2.5rem 0;
}

.buttons-block__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.buttons-block--center .buttons-block__list {
  justify-content: center;
}

.buttons-block--left .buttons-block__list {
  justify-content: flex-start;
}

.buttons-block--right .buttons-block__list {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .columns-block__grid,
  .features-block__grid {
    grid-template-columns: 1fr;
  }
}

.quote-banner cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--block-cite-color, inherit);
}

/* ---- Animations ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero__grid,
  .featured,
  .author-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-width: 300px;
  }

  .hero__image::before {
    top: -12px;
    right: -12px;
  }

  .featured__cover {
    max-width: 220px;
    margin-inline: auto;
  }

  .author-photo {
    max-width: 320px;
    margin-inline: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-card__image {
    border-right: none;
    border-bottom: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    min-height: 0;
    align-self: auto;
  }

  .news-card__body {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .news-card__date {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .news-card--compact {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .news-card--compact .news-card__body {
    display: grid;
  }

  .actu-detail__header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .actu-detail__header .news-card__date {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .news-card__day {
    font-size: 1.5rem;
  }

  .books-list__link {
    grid-template-columns: 64px 1fr;
    gap: 0.85rem 1rem;
  }

  .books-list__year,
  .books-list__editor {
    text-align: left;
  }

  .books-list__year {
    grid-column: 2;
  }

  .books-list__editor {
    grid-column: 2;
    margin-top: -0.35rem;
  }

  .books-list__cover {
    width: 64px;
    grid-row: 1 / span 3;
  }

  .book-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-detail__cover {
    max-width: 280px;
    margin-inline: auto;
    position: static;
  }

  .book-detail__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav__link {
    color: var(--text-muted);
  }

  .nav__link::after {
    background: var(--blue-dark);
  }

  .nav__link:hover,
  .nav__link.active {
    color: var(--blue-dark);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer__bottom-meta,
  .footer__rgpd {
    justify-content: center;
  }
}

/* ---- Admin bar (visible when logged in) ---- */

.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--admin-bar-height);
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.85rem;
}

.admin-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.admin-bar__label {
  opacity: 0.85;
  font-weight: 500;
}

.admin-bar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-bar__actions a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.admin-bar__actions a:hover {
  opacity: 1;
  text-decoration: underline;
}

.admin-bar__action--primary {
  font-weight: 600;
  opacity: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.admin-bar__action--primary:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

body.has-admin-bar .header {
  top: var(--admin-bar-height);
}

body.has-admin-bar main,
body.has-admin-bar .hero,
body.has-admin-bar .page-header,
body.has-admin-bar .section.book-page,
body.has-admin-bar .section.actu-page {
  scroll-margin-top: calc(var(--header-height) + var(--admin-bar-height));
}

body.has-admin-bar .hero {
  padding-top: calc(var(--header-height) + var(--admin-bar-height) + 2rem);
}

body.has-admin-bar .page-header {
  padding-top: calc(var(--header-height) + var(--admin-bar-height) + 4rem);
}

body.has-admin-bar .section.book-page,
body.has-admin-bar .section.actu-page {
  padding-top: calc(var(--header-height) + var(--admin-bar-height) + 3rem);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.footer__legal {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 9999;
  font-size: 0.9rem;
}

.cookie-banner[hidden] {
  display: none;
}

.admin-bar__actions {
  flex-wrap: wrap;
}

/* ---- Carrousel ---- */

.carousel-section .carousel {
  position: relative;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 min(100%, 480px);
  scroll-snap-align: start;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border);
}

.carousel__slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.carousel__slide--empty,
.carousel__placeholder {
  min-height: 280px;
}

.carousel__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  background: var(--off-white);
}

.carousel__slide figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carousel__slide a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.carousel__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel__nav:hover {
  background: var(--off-white);
  border-color: var(--blue-accent);
}

@media (max-width: 768px) {
  .carousel__nav {
    display: none;
  }

  .carousel__slide {
    flex-basis: 85%;
  }
}

/* ---- Mode aperçu éditeur ---- */

body.preview-mode {
  position: relative;
}

body.preview-mode .header {
  position: relative;
  top: auto;
  z-index: 1;
}

body.preview-mode .hero {
  min-height: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body.preview-mode .page-header {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

body.preview-mode .section.book-page,
body.preview-mode .section.actu-page {
  padding-top: 3rem;
}

body.preview-mode .fade-in {
  opacity: 1;
  transform: none;
}

body.preview-mode .nav__link,
body.preview-mode .footer__links a,
body.preview-mode .logo {
  pointer-events: none;
  cursor: default;
}

/* ---- Blocs éditables (aperçu admin) ---- */

.editor-block {
  position: relative;
}

.editor-block__toolbar {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 60;
  pointer-events: auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: #0a1628;
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.editor-block:hover .editor-block__toolbar,
.editor-block.is-selected .editor-block__toolbar {
  display: flex;
}

.editor-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  border: 2px solid transparent;
}

.editor-block:hover::before {
  border-color: rgba(30, 58, 95, 0.35);
}

.editor-block.is-selected::before {
  border-color: #1e3a5f;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.15);
}

.editor-block.is-dragging {
  opacity: 0.45;
}

/* Zones de dépôt entre les blocs */

.editor-drop-zone {
  position: relative;
  height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: height 0.12s ease, margin 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  pointer-events: none;
}

.editor-drop-zone__label {
  display: none;
}

body.preview-external-drag .editor-drop-zone,
body.preview-internal-drag .editor-drop-zone {
  height: 16px;
  margin: 10px 0;
  background: rgba(30, 58, 95, 0.06);
  border-radius: 2px;
  pointer-events: auto;
}

.editor-drop-zone.is-active {
  height: 6px;
  margin: 18px 0;
  background: #1e3a5f;
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.18);
  border-radius: 2px;
}

body.preview-external-drag,
body.preview-internal-drag {
  cursor: copy;
}

body.preview-internal-drag {
  cursor: grabbing;
}

body.preview-external-drag .editor-block,
body.preview-internal-drag .editor-block {
  cursor: copy;
}

.editor-block__handle {
  cursor: grab;
  display: flex;
  align-items: center;
  opacity: 0.85;
  pointer-events: auto;
}

.editor-block__handle:active {
  cursor: grabbing;
}

.editor-block__type-icon {
  display: flex;
  align-items: center;
  opacity: 0.75;
}

.editor-block__btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.editor-block__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.editor-block__label {
  font-weight: 600;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-block__btn--danger:hover {
  background: #dc2626;
}

body.preview-mode .editor-block .btn,
body.preview-mode .editor-block a,
body.preview-mode .editor-block button:not(.editor-block__btn),
body.preview-mode .editor-block input[type="submit"],
body.preview-mode .editor-block .carousel__nav {
  pointer-events: none;
}

body.preview-mode .editor-block .hero [data-edit-field] {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

body.preview-mode .editor-block [data-edit-field],
body.preview-mode .editor-block [data-edit-field].btn,
body.preview-mode .editor-block a[data-edit-field] {
  pointer-events: auto;
  cursor: pointer;
}

body.preview-mode .editor-block.is-selected [data-edit-field] {
  transition: outline-color 0.15s ease, box-shadow 0.15s ease;
}

body.preview-mode .editor-block.is-selected [data-edit-field]:hover {
  outline: 2px dashed rgba(30, 58, 95, 0.55);
  outline-offset: 3px;
}

body.preview-mode .editor-block.block-editable [data-edit-field],
body.preview-mode .editor-block .block-editable [data-edit-field],
body.preview-mode .editor-block .page-header [data-edit-field],
body.preview-mode .editor-block .quote-banner [data-edit-field] {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

body.preview-mode .editor-block.is-selected [data-edit-field].is-edit-focused {
  outline: 2px solid #1e3a5f;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.12);
}

body.preview-mode .editor-block.is-selected .hero__image[data-edit-field]:hover,
body.preview-mode .editor-block.is-selected .hero__image[data-edit-field].is-edit-focused {
  outline-offset: 6px;
}

body.preview-mode a[data-preview-href],
body.preview-mode button[data-preview-inert],
body.preview-mode form[data-preview-disabled] {
  cursor: pointer;
}

/* ---- Éditeur apparence (header / footer) ---- */

body.appearance-preview .appearance-zone {
  position: relative;
  cursor: pointer;
}

body.appearance-preview .appearance-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.appearance-preview .appearance-zone:hover::after,
body.appearance-preview .appearance-zone.is-selected::after {
  border-color: #2271b1;
  background: rgba(34, 113, 177, 0.06);
}

body.appearance-preview .appearance-zone.is-selected::after {
  border-color: #135e96;
  background: rgba(34, 113, 177, 0.1);
}

body.appearance-preview .header .logo.appearance-zone::after {
  inset: -0.35rem;
}

body.appearance-preview .nav.appearance-zone::after {
  inset: -0.25rem;
}

body.appearance-preview .footer__social.appearance-zone--empty::after {
  min-height: 2rem;
}

body.appearance-preview .footer__legal.appearance-zone--empty::after {
  min-height: 1.5rem;
}

.appearance-preview__hint {
  color: var(--gray-600, #666);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem 0;
}

body.appearance-preview {
  min-height: auto;
  background: var(--white, #fff);
}

body.appearance-preview .header {
  position: relative;
  top: auto;
  box-shadow: none;
}

body.appearance-preview .footer {
  margin-top: 0;
}

@media (max-width: 768px) {
  .admin-bar__inner {
    font-size: 0.8rem;
  }

  .admin-bar__label {
    display: none;
  }
}
