@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
    --ink: #1a1714;
    --paper: #f5f0e8;
    --cream: #ede8dc;
    --accent: #c0392b;
    --muted: #7a7060;
    --border: #cec6b2;
    --shadow: rgba(26, 23, 20, .12);
    --success: #16a34a;
    --warning: #d97706;
    /* Palette couleurs - Terre & Élégance */
    --color-primary: #2c1810;
    /* Marron foncé riche */
    --color-accent: #d4a574;
    /* Or chaleureux */
    --color-secondary: #f5f1ed;
    /* Crème très légère */
    --color-text: #3e3228;
    /* Marron texte */
    --color-light-text: #8b7d6b;
    /* Gris-marron */
    --color-border: #e8dfd5;
    /* Bordure légère */
    --color-shadow: rgba(44, 24, 16, 0.08);

    --primary-color: #d4a574;
    --primary-dark: #2c1810;
    --secondary-color: #f5f5f5;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Typographie */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Source Serif Pro', 'Georgia', serif;
    --font-accent: 'Montserrat', sans-serif;

    /* Espacement */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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


body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    position: relative;
    overflow-x: hidden;
    display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

.main-content {
	flex: 1;
}



/* Dégradés de fond */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(192, 57, 43, .06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(26, 23, 20, .04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Lignes de papier */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg,
            transparent,
            transparent 39px,
            rgba(200, 192, 178, .18) 39px,
            rgba(200, 192, 178, .18) 40px);
    pointer-events: none;
    z-index: -1;
}
h1{
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}
h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}
p{
    font-size: 1.2rem;
}
/* ─── Header / Navigation ────────────────────────────────── */
header {
    background: white;
    box-shadow: 0 1px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Conteneur avec taille fixe */
.logo {
    display: block;
    width: 100px;
    overflow: hidden; /* coupe ce qui dépasse */
}

/* Image en mode cover */
.logo-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* remplit tout le conteneur */
    display: block;
    transition: transform 0.3s ease;
}

/* Effet au hover */
.logo:hover .logo-image {
    transform: scale(1.1);
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s;
}

.btn-nav {
    background: var(--ink);
    color: white;
    padding: .65rem 1.5rem;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-nav:hover {
    background: var(--accent);
}

.btn-nav::after {
    display: none;
}

/* Burger Menu */
.burger {
    opacity: 0;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    background: transparent;
    z-index: 999;
    margin-left: auto;
    position: relative;
    width: 25px;
    height: 20px;
}

.burger span {
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--ink);
    transition: all 0.3s;
    border-radius: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.burger span:nth-child(1) {
    top: 0px;
}

.burger span:nth-child(2) {
    top: 7.5px;
}

.burger span:nth-child(3) {
    top: 15px;
}

.burger.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
    top: 50%;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
    top: 50%;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu.no-transition {
    transition: none !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        background: white;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;

        opacity: 0;
        visibility: hidden;
        transform: scale(0.98);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease;

        z-index: 998;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .burger {
        opacity: 1;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        margin-left: auto;
    }

    .burger {
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ─── Search Form ────────────────────────────────────────── */
.search-form {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: white;
    padding: 0.95rem 1rem 0.95rem 3rem;
    font-size: 1rem;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.search-form input[type="search"]::-webkit-search-decoration,
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-results-button,
.search-form input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.search-form::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%237a7060' d='M10 2a8 8 0 105.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.search-form button,
.search-form .search-submit {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-form button:hover,
.search-form .search-submit:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.02);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.18);
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
    width: 100%;
    background: var(--ink);
    color: white;
    margin-top: 6rem;
    padding: 3rem 2rem;
}

footer .footer-top {
	display: flex;
	gap: 25vw;
    flex-wrap: wrap;
	margin: 0 auto; /* Cela centre horizontalement */
	padding-bottom: 20px;
	border-bottom: 1px solid #555;
	justify-content: center; /* Centre les sections à l'intérieur */
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

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

.footer-section ul li {
    margin-bottom: 0.85rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: .75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 2rem;
    text-align: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  padding: 20px;
}

.pagination nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

/* Lien normal */
.pagination a {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.pagination a:hover {
  background-color: #e0e0e0;
  border-color: #999;
  color: #000;
}

/* Page active */
.pagination .current {
  background-color: #c17d4a;;
  color: white;
  font-weight: 700;
}

/* Boutons précédent/suivant */
.pagination .prev {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

/* Désactivé */
.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Version mobile */
@media (max-width: 768px) {
  .pagination {
    gap: 4px;
    padding: 15px;
  }
  footer .footer-top {
	gap: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

}
  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    font-size: 12px;
  }
.post-place {
    font-size: 0.9rem;
    color: var(--muted);
}
.post-card-actions{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Hover uniquement sur desktop */
@media (hover: hover) {
    nav a:hover::after {
        width: 100%;
    }
}