/* ============================================
   ÉDITIONS BOUCHAKOUR — Styles partagés
   ============================================ */

/* Fonts depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* Variables */
:root {
  /* Tons de fond — papier qui chauffe vers l'ocre */
  --color-bg: #f3ebd9;            /* ivoire chaud, légèrement ocré */
  --color-bg-warm: #ead9b8;       /* ocre Sienne pâle */
  --color-bg-deep: #d9c79a;       /* ocre Sienne plus dense */

  /* Tons verts — olive et sauge */
  --color-green-soft: #c8ccae;    /* sauge très pâle */
  --color-green: #8a9560;         /* olive sauge medium */
  --color-green-deep: #9a5840;    /* brique douce, un peu plus sombre */

  /* Tons terre / ocre */
  --color-ocre: #b88438;          /* ocre Sienne chaud */
  --color-ocre-deep: #8a5c1f;     /* ocre brûlée */
  --color-terre: #6e3d1c;         /* terre de Sienne profonde */

  /* Texte */
  --color-text: #2a1f15;          /* brun très profond, jamais noir pur */
  --color-text-soft: #4a3a2a;     /* brun terre pour secondaire */

  /* Accents (rouge bordeaux conservé pour les liens) */
  --color-accent: #6b1410;        /* rouge bordeaux profond */

  /* Lignes décoratives */
  --color-line: #b8a578;          /* ligne couleur papier vieilli */
  --color-line-soft: #d4c6a0;     /* ligne plus douce */

  --font-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-body: 'EB Garamond', Garamond, 'Times New Roman', serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* Reset léger */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Atmosphère méditerranéenne — taches chaudes diffuses */
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(184, 132, 56, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(138, 149, 96, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(110, 61, 28, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Typographie */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: 0.015em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: var(--space-sm);
  color: var(--color-text-soft);
}

p.lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-terre);
  line-height: 1.5;
}

em {
  font-style: italic;
}

strong {
  font-weight: 500;
  color: var(--color-terre);
}

a {
  color: var(--color-terre);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-ocre-deep);
  border-bottom-color: var(--color-ocre-deep);
}

/* Layout */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-wide {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

main {
  flex: 1;
  padding: var(--space-lg) 0 var(--space-xl);
}

/* Header / Navigation */
header.site-header {
  padding: var(--space-md) 0 var(--space-sm);
  border-bottom: 2px solid var(--color-ocre);
  background-color: var(--color-bg);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  border: none;
}

.brand:hover {
  border: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-terre);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

nav.main-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: none;
  position: relative;
  padding-bottom: 4px;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--color-ocre);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}

nav.main-nav a.active {
  color: var(--color-terre);
  font-weight: 500;
}

/* Footer */
footer.site-footer {
  padding: var(--space-lg) 0 var(--space-md);
  background-color: var(--color-green-deep);
  color: var(--color-bg-warm);
  text-align: center;
  font-size: 0.85rem;
  margin-top: var(--space-xl);
}

footer.site-footer p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
  color: var(--color-bg-warm);
}

footer.site-footer .footer-line {
  margin-bottom: 0.5rem;
}

footer.site-footer a {
  color: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-ocre);
}

footer.site-footer a:hover {
  color: var(--color-ocre);
  border-bottom-color: var(--color-ocre);
}

/* Ornement décoratif (utilisé sur l'accueil et entre les sections) */
.ornament {
  text-align: center;
  margin: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ocre);
  letter-spacing: 0.8em;
}

.ornament::before {
  content: '◆ ◆ ◆';
}

/* Animations à l'apparition */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.8s ease-out backwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }
.fade-in:nth-child(4) { animation-delay: 0.7s; }

/* === Page d'accueil spécifique === */
.hero {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  margin: 0 calc(-1 * var(--space-md));
  background: linear-gradient(
    180deg,
    var(--color-bg-warm) 0%,
    var(--color-bg-deep) 60%,
    var(--color-bg-warm) 100%
  );
  border-top: 3px solid var(--color-ocre-deep);
  border-bottom: 3px solid var(--color-ocre-deep);
  position: relative;
  overflow: hidden;
}

/* Texture ornementale subtile dans le hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(110, 61, 28, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(138, 149, 96, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto var(--space-md);
  display: block;
}

.hero h1 {
  margin-bottom: var(--space-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--color-terre);
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-green-deep);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.hero .location {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--color-ocre-deep);
  text-transform: uppercase;
  font-weight: 500;
}

.intro-text {
  max-width: 600px;
  margin: var(--space-lg) auto;
  text-align: center;
}

/* === Page Ligne éditoriale === */
.editorial-line {
  max-width: 680px;
  margin: 0 auto;
}

.editorial-line h1 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.editorial-line .pull-quote {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  text-align: center;
  color: var(--color-terre);
  line-height: 1.5;
  margin: var(--space-lg) calc(-1 * var(--space-md));
  padding: var(--space-lg) var(--space-md);
  position: relative;
  background: linear-gradient(
    180deg,
    var(--color-bg-warm) 0%,
    var(--color-bg-deep) 60%,
    var(--color-bg-warm) 100%
  );
  border-top: 3px solid var(--color-ocre-deep);
  border-bottom: 3px solid var(--color-ocre-deep);
}

.editorial-line .pull-quote::before,
.editorial-line .pull-quote::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-ocre);
  margin: var(--space-md) auto;
}

.editorial-line h2 {
  text-align: center;
  margin-top: var(--space-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--color-terre);
  position: relative;
  padding-bottom: var(--space-sm);
}

.editorial-line h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--color-ocre);
  margin: var(--space-sm) auto 0;
}

/* === Page Contact === */
.contact-page {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-page h1 {
  margin-bottom: var(--space-md);
}

.contact-card {
  background: linear-gradient(
    180deg,
    var(--color-bg-warm) 0%,
    var(--color-bg-deep) 100%
  );
  border-top: 3px solid var(--color-ocre-deep);
  border-bottom: 3px solid var(--color-ocre-deep);
  padding: var(--space-lg) var(--space-md);
  margin: var(--space-lg) calc(-1 * var(--space-md)) 0;
}

.contact-card .email {
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: block;
  margin: var(--space-sm) 0;
  color: var(--color-terre);
  border-bottom: none;
  font-weight: 500;
}

.contact-card .email:hover {
  color: var(--color-ocre-deep);
  border-bottom: 1px solid var(--color-ocre-deep);
}

.contact-card .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-green-deep);
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.contact-section {
  margin-bottom: var(--space-md);
}

/* === Page Mentions légales === */
.legal-page h1 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.legal-page p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-page .legal-block {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-line);
}

.legal-page .legal-block:last-child {
  border-bottom: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav.main-nav {
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero {
    padding: var(--space-md) 0;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  main {
    padding: var(--space-md) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  nav.main-nav {
    gap: 0.75rem;
  }
}
