/* ============================================
   TURTLE PROD - Site Vitrine
   Palette: Bleu océan #0078BE, Bleu foncé #1a3a5c
   Accents par métier: Edition #00c853, Infographie #ff8f00,
                        Communication #00e5ff, Photographie #ffd600
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0078BE;
  --blue-dark: #0a2540;
  --blue-deep: #061a2e;
  --blue-light: #e8f4fc;
  --blue-pale: #f0f7fc;
  --cyan: #00e5ff;
  --green: #00c853;
  --orange: #ff8f00;
  --yellow: #ffd600;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--blue-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo .logo-accent {
  color: var(--blue);
  font-weight: 800;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6,26,46,0.55) 0%, rgba(13,59,102,0.35) 40%, rgba(0,120,190,0.3) 100%),
    url('../images/photos/hero-bandeau-v2.webp') center/cover no-repeat,
    var(--blue-deep);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,26,46,0.4) 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), #4dd0e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Floating book covers */
.hero-books {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-book {
  position: absolute;
  width: 120px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,0.35), 0 6px 12px rgba(0,0,0,0.28);
  pointer-events: auto;
  opacity: 0;
  --rot: 0deg;
  transform: translateY(80px) rotate(var(--rot)) scale(0.85);
  filter: blur(8px) brightness(0.7);
  transition:
    opacity 2.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 2.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 2.4s ease;
}

.hero-book img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-book.visible {
  opacity: 0.92;
  transform: translateY(0) rotate(var(--rot)) scale(1);
  filter: blur(0) brightness(1);
  animation: bookFloat 11s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-book.sinking {
  opacity: 0;
  transform: translateY(120px) rotate(calc(var(--rot) + 6deg)) scale(0.75);
  filter: blur(10px) brightness(0.5);
  animation: none;
}

.hero-book.rising {
  opacity: 0;
  transform: translateY(-80px) rotate(calc(var(--rot) - 4deg)) scale(0.88);
  filter: blur(7px) brightness(0.75);
  animation: none;
}

.hero-book:hover {
  opacity: 1 !important;
  z-index: 3;
}

@keyframes bookFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -18px; }
}

@media (max-width: 1024px) {
  .hero-book { width: 90px !important; }
}

@media (max-width: 768px) {
  .hero-books { display: none; }
}

/* Animated bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -20px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-110vh) scale(0.3); opacity: 0; }
}

.bubble:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 25%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 45%; width: 16px; height: 16px; animation-duration: 10s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 65%; width: 24px; height: 24px; animation-duration: 9s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 80%; width: 10px; height: 10px; animation-duration: 14s; animation-delay: 3s; }
.bubble:nth-child(6) { left: 55%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 5s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,120,190,0.3);
}

/* --- Section Styling --- */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--blue-light);
  border-radius: 50px;
}

/* --- Metiers / Activities Grid --- */
.metiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.metier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.metier-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color, var(--blue));
  transform: scaleX(0);
  transition: transform var(--transition);
  z-index: 3;
}

.metier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.metier-card:hover::before {
  transform: scaleX(1);
}

.metier-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.metier-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

.metier-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.metier-image--cover {
  background: linear-gradient(135deg, #0d3b66 0%, var(--blue-deep) 100%);
}

.metier-image--cover img {
  object-fit: contain;
  object-position: center;
  padding: 12px 0;
}

.metier-card:hover .metier-image img {
  transform: scale(1.06);
}

.metier-body {
  padding: 22px 24px 28px;
  text-align: left;
}

.metier-card h3 {
  margin-bottom: 10px;
  color: var(--accent-color, var(--blue-dark));
}

.metier-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.metier-card[data-metier="edition"] { --accent-color: var(--green); --icon-bg: #e8f5e9; }
.metier-card[data-metier="infographie"] { --accent-color: var(--orange); --icon-bg: #fff3e0; }
.metier-card[data-metier="photographie"] { --accent-color: var(--yellow); --icon-bg: #fffde7; }
.metier-card[data-metier="communication"] { --accent-color: var(--cyan); --icon-bg: #e0f7fa; }
.metier-card[data-metier="media"] { --accent-color: var(--blue); --icon-bg: var(--blue-light); }

/* --- Catalogue / Book Grid --- */
.catalogue-section { background: var(--gray-50); }

.catalogue-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Anchored sections get offset so they don't hide under the fixed header */
.category-anchors ~ div[id],
section[id="catalogue-top"] {
  scroll-margin-top: 96px;
}

[id="apnee"], [id="bd"], [id="beaux-livres"], [id="biologie"],
[id="divers"], [id="formation"], [id="guides"], [id="jeunesse"],
[id="nautisme"], [id="poster"], [id="tek"], [id="epuises"],
[id="catalogue-top"] {
  scroll-margin-top: 96px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.book-cover {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--gray-100);
  transition: transform var(--transition);
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-cover .book-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.95);
  color: var(--blue);
  backdrop-filter: blur(10px);
}

.book-info {
  padding: 18px;
}

.book-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-info .book-author {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* --- Media / Magazines Section --- */
.media-section { background: var(--blue-deep); color: var(--white); }
.media-section .section-header h2 { color: var(--white); }
.media-section .section-header p { color: rgba(255,255,255,0.6); }
.media-section .section-label { background: rgba(255,255,255,0.1); color: var(--cyan); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

.media-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.media-card .media-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.media-card--cover { padding: 0; overflow: hidden; }
.media-card--cover .media-cover {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3b66 0%, var(--blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-card--cover .media-cover img {
  max-width: 70%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.media-card--cover:hover .media-cover img { transform: scale(1.04); }
.media-card--cover h3 { padding: 28px 28px 0; }
.media-card--cover p { padding: 0 28px 28px; }

.media-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.media-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Actualites --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blue-light);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 24px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.news-link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.news-card:hover .news-link::after {
  transform: translateX(4px);
}

/* --- Contact / About Banner --- */
.about-banner {
  background: linear-gradient(135deg, var(--blue-light) 0%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}

.about-banner::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,120,190,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-inner h2 { margin-bottom: 20px; }

.about-inner p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.stat .stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- Back to top button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,120,190,0.35), 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px) scale(1);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo img { height: 36px; filter: brightness(0) invert(1); }
.footer-brand .logo span { color: var(--white); }
.footer-brand .logo .logo-accent { color: var(--cyan); }

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--cyan); }

/* --- Inner Pages --- */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* --- Product/Book Detail Page --- */
.product-detail {
  padding: 120px 0 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.product-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 96px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 400px;
}

.product-cover img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.product-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-tag {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--blue-light);
  color: var(--blue);
}

.product-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.product-author {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.product-description {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-800);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,120,190,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* --- Responsive --- */
@media (max-width: 1200px) {
  .metiers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .metiers-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 300px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    align-items: stretch;
  }

  /* When moved out of site-header by JS to a portal, same styles apply */
  body > .main-nav { z-index: 9999; }

  .main-nav.open { display: flex; }

  .menu-toggle { display: block; }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 16px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu { display: block; }

  .hero-content h1 { font-size: 2rem; }
  .hero-turtle { display: none; }

  .metiers-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .product-layout { grid-template-columns: 1fr; }
  .product-cover { position: static; max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }

  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .catalogue-filters { gap: 6px; }
}
