
/* =========================================================
   AXeBOOK — FEUILLE DE STYLE PRINCIPALE
   Version 1.0 — Site public / Accueil
========================================================= */

/* 1. VARIABLES */
:root {
  --green: #168447;
  --green-dark: #105C35;
  --green-light: #E8F5EC;
  --yellow: #F5C928;
  --yellow-light: #FFF6D6;
  --white: #FFFFFF;
  --background: #F6F8F5;
  --text: #17251C;
  --muted: #68736B;
  --border: #E3EAE4;
  --blue: #E8F1FC;
  --purple: #F1EBFA;
  --orange: #FFF0E5;
  --shadow: 0 12px 35px rgba(16, 92, 53, .08);
  --shadow-hover: 0 18px 42px rgba(16, 92, 53, .13);
  --radius: 16px;
  --radius-small: 10px;
  --container: 1180px;
  --transition: .22s ease;
}

/* 2. RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 3. BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  color: var(--green-dark);
  border-color: #C8D8CC;
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--green-dark);
}

.btn-yellow:hover {
  background: #FFDA48;
}

.btn-large {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 15px;
}

/* 4. BARRE D'ANNONCE */
.announcement-bar {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  letter-spacing: .2px;
}

/* 5. HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 232.5px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.header-content {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: 145px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  position: relative;
  padding: 28px 0;
  color: #4F5B53;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: #4F5B53;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.header-mobile-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.menu-toggle,
.mobile-menu-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 20px;
}

.header-select select {
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  outline-offset: 3px;
  cursor: pointer;
}

.header-login {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.header-login:hover {
  color: var(--green);
}

.header-cta {
  min-height: 41px;
  padding: 9px 14px;
  font-size: 12px;
  white-space: nowrap;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
}

.mobile-menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--green-dark);
  transition: transform var(--transition);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 101;
  width: min(50vw, 320px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 10px 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 16px 30px rgba(20, 50, 30, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.mobile-menu[hidden] {
  display: block !important;
  pointer-events: none;
}

.mobile-menu:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
  gap: 3px;
}

.mobile-menu a {
  padding: 11px 6px;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* 6. HERO */
.hero-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 45%, rgba(245, 201, 40, .10), transparent 27%),
    linear-gradient(115deg, #F6FAF6 0%, #FFFFFF 63%);
}

.hero-grid {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  grid-template-areas:
    "content visual"
    "note visual"
    "search search";
  align-items: center;
  column-gap: 55px;
  row-gap: 0;
  padding-block: 75px 85px;
}

.hero-content {
  grid-area: content;
}

.hero-visual {
  grid-area: visual;
}

.hero-note {
  grid-area: note;
  margin-top: 0;
}

.search-section {
  grid-area: search;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.eyebrow {
  padding: 8px 12px;
  border: 1px solid #D9EBDD;
  border-radius: 30px;
  background: rgba(232, 245, 236, .7);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-content h1 {
  max-width: 600px;
  margin-top: 23px;
  color: var(--green-dark);
  font-size: clamp(38px, 4.6vw, 59px);
  font-weight: 760;
  letter-spacing: -2.6px;
  line-height: 1.13;
}

.hero-description {
  max-width: 530px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 12px;
}

.hero-note-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 800;
}

/* 7. LIVRES ILLUSTRÉS DU HERO */
.hero-visual {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
}

.decoration-one {
  width: 330px;
  height: 330px;
  background: #E9F5E9;
}

.decoration-two {
  width: 250px;
  height: 250px;
  border: 1px solid rgba(22, 132, 71, .13);
}

.hero-book-card {
  position: absolute;
  z-index: 2;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 22px 50px rgba(20, 57, 34, .19);
}

.hero-book-main {
  z-index: 4;
  width: 190px;
  transform: translateY(3px) rotate(2deg);
}

.hero-book-left {
  width: 155px;
  transform: translate(-130px, 25px) rotate(-12deg);
}

.hero-book-right {
  width: 155px;
  transform: translate(130px, 24px) rotate(11deg);
}

.book-cover {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px 16px;
  color: var(--white);
  overflow: hidden;
}

.cover-green {
  background: linear-gradient(145deg, #168447, #0A482A);
}

.cover-yellow {
  background: linear-gradient(145deg, #F7D84E, #DDAE18);
  color: #263A27;
}

.cover-dark {
  background: linear-gradient(145deg, #203C39, #10211F);
}

.cover-blue {
  background: linear-gradient(145deg, #276D9E, #153A64);
}

.cover-label {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}

.cover-title {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.7px;
}

.cover-subtitle {
  font-size: 9px;
  line-height: 1.4;
}

.cover-author {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 7px;
  letter-spacing: 1px;
}

.hero-floating-note {
  position: absolute;
  right: -8px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-note-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--yellow-light);
  color: #9A7600;
  font-size: 20px;
}

.hero-floating-note strong,
.hero-floating-note small {
  display: block;
}

.hero-floating-note strong {
  color: var(--green-dark);
  font-size: 12px;
}

.hero-floating-note small {
  color: var(--muted);
  font-size: 10px;
}

/* 8. RECHERCHE */
.search-section {
  position: relative;
  z-index: 3;
  margin-top: -1px;
}

.search-panel {
  padding: 29px 35px 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-heading {
  margin-bottom: 17px;
}

.search-heading h2 {
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 21px;
  letter-spacing: -.5px;
}

.main-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 7px 6px 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FAFCFA;
}

.search-icon {
  color: var(--green);
  font-size: 27px;
  line-height: 1;
}

.main-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.main-search-form input::placeholder {
  color: #9AA49C;
}

.search-feedback {
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* 9. SECTIONS */
.section {
  padding-block: 88px;
}

.categories-section {
  padding-top: 94px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}

.section-heading h2,
.newsletter-container h2 {
  margin-top: 8px;
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 35px);
  letter-spacing: -1.1px;
  line-height: 1.2;
}

.section-heading p,
.newsletter-container > div > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  flex-shrink: 0;
  padding-bottom: 5px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.text-link:hover {
  color: var(--green-dark);
}

/* 10. CATÉGORIES */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.category-card {
  position: relative;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #A8D0B1;
  box-shadow: var(--shadow);
}

.category-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
}

.category-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-green { background: var(--green-light); color: var(--green); }
.icon-yellow { background: var(--yellow-light); color: #987400; }
.icon-blue { background: var(--blue); color: #316A9D; }
.icon-purple { background: var(--purple); color: #7953A8; }
.icon-orange { background: var(--orange); color: #B5682E; }

.category-name {
  margin-top: 13px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.category-description {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.category-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #91A096;
  font-size: 18px;
}

/* 11. LIVRES */
.featured-section {
  background: var(--background);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.featured-empty {
  margin-top: 18px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.book-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.book-card-cover {
  position: relative;
  min-height: 245px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #EDF3ED;
}

.mini-cover {
  width: 145px;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 12px;
  box-shadow: 8px 9px 17px rgba(0, 0, 0, .16);
  transition: transform var(--transition);
}

.book-card:hover .mini-cover {
  transform: rotate(-2deg) scale(1.025);
}

.mini-cover .cover-title {
  font-size: 20px;
}

.mini-cover .cover-subtitle {
  font-size: 8px;
}

.mini-cover .cover-label {
  font-size: 6px;
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  font-size: 21px;
  transition: color var(--transition), background var(--transition);
}

.favorite-button:hover,
.favorite-button[aria-pressed="true"] {
  background: var(--green-light);
  color: #D13C50;
}

.book-format {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .93);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 750;
}

.book-card-info {
  padding: 17px;
}

.book-category {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.book-card-info h3 {
  min-height: 48px;
  margin-top: 7px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.book-author {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.book-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.book-price {
  color: var(--green-dark);
  font-size: 16px;
}

.book-view-link {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 17px;
  font-weight: 800;
}

.book-view-link:hover {
  background: var(--green);
  color: var(--white);
}

/* 12. PROMOTION AUTEUR */
.author-promo-section {
  padding-block: 80px;
}

.author-promo {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 50px 65px;
  border-radius: 19px;
  background: var(--green-dark);
  color: var(--white);
}

.author-promo::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -200px;
  right: 150px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.author-promo-content {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.light-kicker {
  color: #D9EFCF;
}

.author-promo h2 {
  margin-top: 13px;
  font-size: clamp(29px, 3.6vw, 43px);
  letter-spacing: -1.4px;
  line-height: 1.17;
}

.author-promo p {
  max-width: 490px;
  margin-top: 15px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.8;
}

.author-promo .btn {
  margin-top: 24px;
}

.author-promo-art {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 250px;
  margin-right: 45px;
}

.promo-paper {
  position: absolute;
  width: 155px;
  height: 215px;
  border-radius: 5px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .23);
}

.paper-back {
  top: 20px;
  left: 45px;
  transform: rotate(12deg);
  background: var(--yellow);
}

.paper-front {
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  transform: rotate(-7deg);
  background: #F9FAF6;
  color: var(--green-dark);
}

.paper-front span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.paper-front strong {
  font-size: 22px;
  line-height: 1.05;
}

.paper-front small {
  font-size: 7px;
}

/* 13. AVANTAGES */
.centered-heading {
  justify-content: center;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.benefit-item {
  padding: 15px 10px;
}

.benefit-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green);
  font-size: 22px;
}

.benefit-item h3 {
  margin-top: 17px;
  color: var(--green-dark);
  font-size: 15px;
}

.benefit-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* 14. NEWSLETTER */
.newsletter-section {
  padding-block: 52px;
  background: #F0F6F0;
}

.newsletter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.newsletter-container h2 {
  font-size: 27px;
}

.newsletter-form {
  position: relative;
  display: flex;
  width: min(490px, 48%);
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #D7E3D9;
  border-radius: 8px;
  outline-color: var(--green);
  background: var(--white);
  font-size: 13px;
}

.newsletter-form .btn {
  min-height: 48px;
}

.newsletter-feedback {
  position: absolute;
  top: 53px;
  left: 3px;
  color: var(--green-dark);
  font-size: 11px;
}

/* 15. FOOTER */
.site-footer {
  background: #102D20;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 45px;
  padding-block: 60px;
}

.footer-brand img {
  width: 290px;
  max-height: 96px;
  object-fit: contain;
}

.footer-brand-column > p {
  max-width: 280px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  line-height: 1.8;
}

.footer-email {
  display: inline-block;
  margin-top: 16px;
  color: #D6E9D9;
  font-size: 12px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-column h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 13px;
}

.footer-column a {
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  transition: color var(--transition);
}

.footer-column a:hover,
.footer-email:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.footer-bottom-content {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
}

/* 16. NOTIFICATIONS */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 17px;
  border: 1px solid #CFE4D3;
  border-radius: 9px;
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in .2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 17. RETOUR EN HAUT */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 21px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 18. RESPONSIVE — TABLETTE */
@media (max-width: 1000px) {
  .header-container {
    min-height: 82px;
    gap: 10px;
  }

  .header-content {
    min-height: 82px;
    gap: 10px;
  }

  .header-mobile-panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 101;
    display: flex;
    width: min(50vw, 320px);
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 10px 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 16px 30px rgba(20, 50, 30, .14);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .header-mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-mobile-panel .main-nav {
    display: grid;
    gap: 3px;
  }

  .header-mobile-panel .main-nav a {
    padding: 9px 6px;
    border-radius: 7px;
  }

  .header-mobile-panel .main-nav a:hover,
  .header-mobile-panel .main-nav a.active {
    background: var(--green-light);
  }

  .header-mobile-panel .header-actions {
    display: flex;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .header-mobile-panel .header-actions a {
    width: 100%;
    white-space: normal;
  }

  .menu-toggle,
  .mobile-menu-toggle {
    display: block;
  }

  .desktop-nav,
  .header-login,
  .header-cta,
  .currency-select {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-menu-button,
  .mobile-menu {
    display: block;
  }

  .mobile-menu {
    max-height: calc(100vh - 82px);
  }

  .desktop-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 12px;
  }

  .header-actions {
    gap: 9px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-book-left {
    transform: translate(-105px, 25px) rotate(-12deg);
  }

  .hero-book-right {
    transform: translate(105px, 24px) rotate(11deg);
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 19. RESPONSIVE — MOBILE */
@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .announcement-bar {
    font-size: 10px;
  }

  .header-container {
    min-height: 82px;
    gap: 10px;
  }

  .brand img {
    width: 195px;
    max-height: 72px;
  }

  .logo img {
    width: 130px;
    max-height: 42px;
  }

  .desktop-nav,
  .header-login,
  .header-cta,
  .currency-select {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-menu {
    max-height: calc(100vh - 82px);
  }

  .mobile-menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "note"
      "search"
      "content";
    gap: 12px;
    padding-block: 57px 45px;
  }

  .hero-note {
    margin: 0;
  }

  .hero-content h1 {
    max-width: 540px;
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 360px;
    margin-top: 15px;
  }

  .hero-book-main {
    width: 165px;
  }

  .hero-book-left,
  .hero-book-right {
    width: 130px;
  }

  .hero-book-left {
    transform: translate(-100px, 20px) rotate(-12deg);
  }

  .hero-book-right {
    transform: translate(100px, 20px) rotate(11deg);
  }

  .hero-book-main .book-cover {
    min-height: 225px;
  }

  .hero-floating-note {
    right: 0;
    bottom: 0;
  }

  .search-panel {
    padding: 12px;
  }

  .search-heading {
    display: none;
  }

  .main-search-form {
    flex-wrap: nowrap;
    min-height: 50px;
    gap: 8px;
    padding: 5px 6px 5px 12px;
  }

  .search-icon {
    font-size: 22px;
  }

  .main-search-form input {
    min-height: 38px;
    font-size: 12px;
  }

  .main-search-form .btn {
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 11px;
    white-space: nowrap;
  }

  .search-feedback {
    min-height: 0;
    margin-top: 3px;
  }

  .section {
    padding-block: 62px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    min-height: 145px;
    padding: 15px;
  }

  .category-arrow {
    top: 15px;
    right: 14px;
  }

  .book-grid {
    gap: 12px;
  }

  .book-card-cover {
    min-height: 205px;
    padding: 12px;
  }

  .mini-cover {
    width: 120px;
    min-height: 165px;
    padding: 12px 10px;
  }

  .mini-cover .cover-title {
    font-size: 16px;
  }

  .book-card-info {
    padding: 12px;
  }

  .book-card-info h3 {
    min-height: 58px;
    font-size: 12px;
  }

  .book-price {
    font-size: 14px;
  }

  .author-promo {
    min-height: auto;
    padding: 36px 25px;
  }

  .author-promo-art {
    display: none;
  }

  .author-promo h2 {
    font-size: 32px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .newsletter-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .newsletter-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .newsletter-form input {
    width: 100%;
    flex-basis: 100%;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .newsletter-feedback {
    position: static;
    width: 100%;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 22px;
    padding-block: 45px;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }

  .footer-bottom-content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 15px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* 20. PETITS ÉCRANS */
@media (max-width: 380px) {
  .header-container {
    gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand img {
    width: 195px;
  }

  .header-select {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .book-card-cover {
    min-height: 180px;
  }

  .mini-cover {
    width: 105px;
    min-height: 145px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

/* 21. ACCESSIBILITÉ */
:focus-visible {
  outline: 3px solid rgba(22, 132, 71, .4);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Bouton retour */
.back-navigation {
  max-width: 1250px;
  margin: 20px auto;
  padding: 0 20px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid #dce4dd;
  border-radius: 8px;
  background: #ffffff;
  color: #168447;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #e8f5ec;
  border-color: #168447;
}

.back-button span {
  font-size: 19px;
}
