/* ============================================
   Editions Montessori Algérie - Charte graphique
   Orange / lime / blanc - Bandes décoratives
   ============================================ */

:root {
  /* Couleurs principales maquette */
  --edition-orange: #c85a28;
  --edition-orange-dark: #a84a20;
  --edition-rust: #CD5C00;
  --edition-lime: #b8d430;
  --edition-lime-light: #d4e87a;
  --edition-white: #ffffff;
  --edition-cream: #faf8f5;
  --edition-brown: #6d4c2e;
  --edition-brown-light: #8b6914;
  --edition-teal: #00BCD4;
  --edition-yellow: #f5d547;
  --edition-magenta: #e91e63;
  --edition-blue: #2196F3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Raleway", "Open Sans", sans-serif;
  font-weight: 300;
  color: var(--edition-white);
  background-color: var(--edition-orange);
  line-height: 1.6;
}

/* Bande décorative header/footer - motif flèches et losanges (maquette) */
.edition-band {
  height: 28px;
  background-color: var(--edition-orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.95'%3E%3Cpath d='M4 14 L10 8 L16 14 L10 20 Z'/%3E%3Cpath d='M20 6 L26 14 L20 22 M24 14 L32 14'/%3E%3Cpath d='M36 14 L42 8 L48 14 L42 20 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  flex-shrink: 0;
}

/* Header */
.edition-header {
  background-color: var(--edition-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.edition-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1rem 1.5rem;
  list-style: none;
  margin: 0;
}

.edition-nav a {
  color: var(--edition-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.35rem 0.5rem;
  transition: opacity 0.2s;
}

.edition-nav a:hover,
.edition-nav a.active {
  opacity: 1;
  text-decoration: underline;
}

.edition-nav a:not(:hover):not(.active) {
  opacity: 0.92;
}

/* Main */
.edition-main {
  min-height: calc(100vh - 180px);
}

/* Footer */
.edition-footer {
  background-color: var(--edition-orange-dark);
  color: var(--edition-white);
  padding: 2rem 1.5rem 1.5rem;
}

.edition-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.edition-footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.edition-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edition-footer ul a {
  color: var(--edition-white);
  text-decoration: none;
  opacity: 0.92;
}

.edition-footer ul a:hover {
  opacity: 1;
  text-decoration: underline;
}

.edition-footer-contact p {
  margin: 0.25rem 0;
  opacity: 0.95;
}

.edition-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.edition-footer-social a {
  color: var(--edition-white);
  font-size: 1.25rem;
  opacity: 0.9;
}

.edition-footer-social a:hover {
  opacity: 1;
}

.edition-footer-copy {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.95;
  margin: 0;
}

/* Page d'accueil - Hero */
.edition-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 2rem 1rem;
  text-align: center;
}

.edition-hero-logo {
  margin-bottom: 1rem;
}

.edition-hero-logo img {
  max-width: 200px;
  height: auto;
}

.edition-hero-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.edition-hero-subtitle {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  margin: 0 0 2rem;
  letter-spacing: 0.03em;
}

.edition-hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.edition-hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.edition-hero-dots .dot-yellow { background-color: var(--edition-yellow); }
.edition-hero-dots .dot-lime { background-color: var(--edition-lime); }

/* Flèche décorative (droite, maquette) */
.edition-hero {
  position: relative;
}

.edition-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--edition-white);
  opacity: 0.85;
  pointer-events: none;
}

/* Pages internes - fond crème / motif */
.edition-page-content {
  background-color: var(--edition-cream);
  color: #333;
  padding: 2rem 1rem;
}

.edition-page-content h1 {
  color: var(--edition-brown);
  font-size: 1.75rem;
  font-weight: 600;
}

/* Catégories (Livres, Cartes, Contes, Frises) - couleurs distinctes */
.edition-cat-livres { color: var(--edition-blue); }
.edition-cat-cartes { color: var(--edition-rust); }
.edition-cat-contes { color: var(--edition-lime); }
.edition-cat-frises { color: var(--edition-magenta); }

@media (max-width: 768px) {
  .edition-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .edition-footer-social {
    justify-content: center;
  }

  .edition-nav {
    gap: 0.25rem 0.75rem;
  }

  .edition-nav a {
    font-size: 0.85rem;
  }
}
