/* ============================================
   MATHILDE 20 ANS — Style principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;700&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #ffffff; /* fond blanc */
  color: #2a2a2a;
  min-height: 100vh;
}

/* ---- HEADER ---- */
.header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 8px;
  width: 100%;
}

.logo {
  width: 56px;
  height: auto;
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  width: 100%;
  background-color: #F6F4DB;
}

.nav-link {
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  text-decoration: none;
  color: #2a2a2a;
  font-size: 0.95rem;
  font-weight: 400;
  transition: background-color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  background-color: #AAD6F9;
  color: #111;
}

/* ---- MAIN ---- */
.main {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ---- WELCOME SECTION ---- */
.welcome-section {
  margin-top: 8px;
  margin-bottom: 40px;
}

.welcome-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 18px;
}

.welcome-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 14px;
}

.hero-image-container {
  margin-top: 28px;
  text-align: center;
}

.hero-image {
  width: 65%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ---- BUTTONS SECTION ---- */
.buttons-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 18px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
}

.btn-label {
  flex: 1;
}

.btn-arrow {
  font-size: 1.5rem;
  margin-left: auto;
  opacity: 0.85;
}

/* Couleurs individuelles des boutons */
.btn-histoires {
  background-color: #acd8e8;
  color: #c0440e;
}

.btn-histoires .btn-arrow {
  color: #c0440e;
}

.btn-galerie {
  background-color: #2e7d45;
  color: #ffffff;
}

.btn-galerie .btn-arrow {
  color: #ffffff;
}

.btn-lettre {
  background-color: #8da828;
  color: #f5f0d8;
}

.btn-lettre .btn-arrow {
  color: #f5f0d8;
}

/* ---- PORTRAIT SECTION ---- */
.portrait-section {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.portrait-image {
  width: 55%;
  max-width: 280px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ---- PAGE INTÉRIEURE ---- */
.page-hero {
  text-align: center;
  padding: 48px 20px 24px;
}

.page-hero h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

.page-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #111;
}

/* ---- GALERIE GRID ---- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.galerie-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s;
}

.galerie-grid img:hover {
  transform: scale(1.03);
}

/* ---- LETTRE ---- */
.lettre-box {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  padding: 40px 36px;
  line-height: 1.85;
  font-size: 1.05rem;
  color: #333;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-top: 16px;
}

.lettre-box p {
  margin-bottom: 18px;
}

.lettre-signature {
  margin-top: 32px;
  font-style: italic;
  color: #888;
  font-size: 0.95rem;
}
/* ---histoire---*/
h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  margin: 40px 0 20px 0;
  color: #1a1a1a;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 16px;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  display: block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  h3 {
    font-size: 1.4rem;
    margin-top: 32px;
  }
}


.lettre-box {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  padding: 40px 36px;
  line-height: 1.85;
  font-size: 1.05rem;
  color: #333;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-top: 16px;
}


.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 images par ligne */
  gap: 10px; /* espace entre les images */
}

.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* évite les déformations */
  display: block;
}

.galerie2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.galerie2 img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.galerie3 img{
  width: 100%;
  height: 400;
  object-fit: cover;
  border-radius: 8px;
}