:root {
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --color-bg: #fff;
  --color-text: #222;
  --color-accent: #2c6e49;
  --gap: 1.5rem;
  --max-width: 1200px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height:1.6;
}
img { max-width:100%; display:block; }
h1,h2,h3 {
  font-family: var(--font-serif);
  color: var(--color-accent);
  margin-bottom:0.5em;
}
h1 { font-size:2rem; }
h2 { font-size:1.5rem; }
h3 { font-size:1.25rem; }

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "hero"
    "feature-article"
    "small1"
    "small2"
    "small3"
    "sidebar"
    "footer";
  gap: var(--gap);
  width: 90%;
  max-width: var(--max-width);
  margin: auto;
}

/* Header */
.site-header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap) 0;
  border-bottom:1px solid #eee;
}
.site-header .logo {
  font-family: var(--font-serif);
  font-size:1.75rem;
  color: var(--color-accent);
  text-decoration:none;
}
.main-nav ul {
  list-style:none;
  display:flex; gap:1rem;
}
.main-nav a {
  text-decoration:none;
  color: var(--color-text);
  font-weight:500;
}
.main-nav a.active {
  color: var(--color-accent);
}

/* Hero */
.hero {
  grid-area: hero;
  background: url('../images/hero.jpg') center/cover no-repeat;
  height:40vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.hero::after {
  content:"";
  position:absolute; inset:0;
  background:rgba(0,0,0,0.3);
}
.hero h1 {
  position:relative;
  color:#fff;
  font-size:2rem;
  text-align:center;
}

/* Feature article */
.feature-article {
  grid-area: feature-article;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap);
  background:#fafafa;
  border:1px solid #eee;
  padding: var(--gap);
}
.feature-article img { object-fit:cover; }
.feature-article .article-content a {
  color: var(--color-accent);
  text-decoration:none;
  font-weight:500;
}

/* Small articles */
.small-article {
  background:#fafafa;
  border:1px solid #eee;
  padding: var(--gap);
}
.small-article img { object-fit:cover; }
.small-article h3 { margin: 0.5em 0; }
.small-article.one { grid-area: small1; }
.small-article.two { grid-area: small2; }
.small-article.three { grid-area: small3; }

/* Sidebar */
.sidebar {
  grid-area: sidebar;
}
.widget { margin-bottom: var(--gap); }

/* Buttons de rubriques */
.categories-buttons .buttons-group {
  display:flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.categories-buttons button {
  flex: 1 1 auto;
  padding: 0.5rem 0.75rem;
  background: var(--color-accent);
  color: #fff;
  border:none;
  border-radius:4px;
  font-family: var(--font-sans);
  cursor:pointer;
  transition: background 0.3s;
}
.categories-buttons button:hover {
  background: #215235;
}

/* Newsletter widget */
.widget.subscribe form {
  display:flex;
  gap:0.5rem;
}
.widget.subscribe input {
  flex:1;
  padding:0.5rem;
  border:1px solid #ccc;
}
.widget.subscribe button {
  background: var(--color-accent);
  color:#fff;
  border:none;
  padding:0 1em;
  cursor:pointer;
}

/* Footer */
.site-footer {
  grid-area: footer;
  background:#f8f8f8;
  text-align:center;
  padding: var(--gap) 0;
}
.site-footer p { color:#666; }

/* Media Query pour desktop */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
      "header header"
      "hero hero"
      "feature-article sidebar"
      "small1 sidebar"
      "small2 footer"
      "small3 footer";
  }
}

/* == ABOUT PAGE STYLES == */
.about-page {
  padding: var(--gap) 0;
}
.about-section h1 {
  font-size: 2rem;
  margin-bottom: var(--gap);
  text-align: center;
}
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.about-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.about-text {
  font-size: 1rem;
  line-height: 1.7;
}
.about-text ul {
  list-style: disc inside;
  margin-top: 0.5em;
}
.about-text ul li {
  margin-bottom: 0.5em;
}

/* En mode desktop : image + texte côte à côte */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-image {
    flex: 1 1 40%;
  }
  .about-text {
    flex: 1 1 60%;
    padding-left: var(--gap);
  }
}

/* == RECIPES PAGE STYLES == */
.recipes-page {
  padding: var(--gap) 0;
  text-align: center;
}
.recipes-page h1 {
  font-size: 2rem;
  margin-bottom: var(--gap);
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.recipe-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.recipe-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.recipe-info {
  padding: var(--gap);
}
.recipe-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}
.recipe-info p {
  font-size: 1rem;
  margin-bottom: 1em;
}
.recipe-info .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.recipe-info .btn:hover {
  background-color: var(--primary-color-dark);
}

