/* ============================================================
   eAT Montpellier — Complete SEO Article Template v1.1
   ============================================================ */

:root {
  --eat-accent:        #F37D16;
  --eat-accent-hover:  #b8501f;
  --eat-accent-light:  #F5EDE7;
  --eat-accent-border: #e8cfc3;
  --eat-text:          #1C1C1C;
  --eat-muted:         #6B6B6B;
  --eat-border:        #E2E0DB;
  --eat-bg:            #F9F8F5;
  --eat-surface:       #FFFFFF;
  --eat-radius:        8px;
  --eat-toc-width:     240px;
}

/* ============================================================
   HERO HEADER
   ============================================================ */

.eat-hero {
  background: var(--eat-bg);
  padding: 48px 24px 0;
}

.eat-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 550px;
  gap: 48px;
  align-items: center;
}

/* Category label */
.eat-hero__category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eat-accent);
  text-decoration: none;
  margin-bottom: 14px;
}

.eat-hero__category:hover { opacity: 0.8; }

.eat-hero__text .eat-hero__category{
	border-bottom: 1px dotted;
}

/* Title */
.eat-hero__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--eat-text);
	margin-bottom: 12px;
	margin-top: 0;
}

/* Subtitle (optional custom field) */
.eat-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--eat-text);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Author + date row */
.eat-hero__meta {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 20px;
	padding-bottom: 32px;
	align-items: center;
}

.eat-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--eat-text);
}

.eat-hero__author-img img{
	width: 46px;
	height: 46px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
}

.eat-hero__author span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.eat-hero__author strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eat-text);
}

.eat-hero__author em {
  font-size: 0.8rem;
  font-style: normal;
  color: var(--eat-muted);
}

.eat-hero__dateline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--eat-muted);
}

.eat-hero__sep {
	color: var(--eat-accent);
	font-size: 2em;
}

.eat-name-date-line{
	display: flex;
	flex-direction: column;
}

.eat-name-date-line .eat-hero__author-name{
	line-height: 1;
	display: inline-block;
	color: #2A2622;
}

/* Featured image */
.eat-hero__image {
  position: relative;
}

.eat-hero__image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--eat-radius) var(--eat-radius) 0 0;
  display: block;
}

/* ============================================================
   TWO-COLUMN LAYOUT: TOC + CONTENT
   ============================================================ */

.eat-article-wrap {
  display: grid;
  grid-template-columns: var(--eat-toc-width) 1fr;
  gap: 40px;
  max-width: 1160px;
  margin: 40px auto;
  padding: 0 24px;
  align-items: start;
}

/* ── Sommaire ───────────────────────────────────────────────── */

.eat-toc {
  position: sticky;
  top: 100px;
  background: rgba(230, 209, 187, 0.15);
  border: 1px solid var(--eat-border);
  border-radius: var(--eat-radius);
  padding: 20px 18px;
  font-size: 0.875rem;
}

.eat-toc__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--eat-text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--eat-border);
}

.eat-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

.eat-toc__list li {
  counter-increment: toc-counter;
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.eat-toc__list li::before {
  content: counter(toc-counter) ".";
  color: var(--eat-accent);
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 18px;
  flex-shrink: 0;
}

.eat-toc__list a {
  color: var(--eat-text);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.18s ease;
}

.eat-toc__list a:hover,
.eat-toc__list li.is-active a {
  color: var(--eat-accent);
}

.eat-toc__list li.toc-h3 {
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--eat-muted);
}

.eat-toc__list li.toc-h3::before { content: none; }

/* ── Article content ───────────────────────────────────────── */

.eat-article-content {
  min-width: 0;
}

.eat-article-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--eat-text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 110px;
}

.eat-article-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--eat-text);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 110px;
}

.eat-article-content p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--eat-text);
  margin-bottom: 1rem;
}

.eat-article-content blockquote {
  background: var(--eat-accent-light);
  border-left: 4px solid var(--eat-accent);
  border-radius: 0 var(--eat-radius) var(--eat-radius) 0;
  margin: 1.75rem 0;
  padding: 18px 22px;
  font-style: italic;
  color: var(--eat-text);
}

.eat-article-content blockquote cite,
.eat-article-content blockquote footer {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--eat-muted);
}

.eat-article-content img {
  border-radius: var(--eat-radius);
  max-width: 100%;
  height: auto;
}

.eat-article-content a {
  color: var(--eat-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.18s ease;
}

.eat-article-content a:hover {
  text-decoration-color: var(--eat-accent);
}

.eat-article-content strong { font-weight: 700; }

.eat-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--eat-accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.eat-read-more-link:hover { opacity: 0.8; }

/* ============================================================
   AUTHOR BOX
   ============================================================ */

.eat-author-box {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
}

.eat-author-box__avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}

.eat-author-box__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eat-author-box__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eat-accent);
}

.eat-author-box__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--eat-text);
  margin: 0;
}

.eat-author-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eat-text);
  margin: 0;
}

.eat-author-box__bio {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--eat-muted);
  margin: 4px 0 8px;
  max-width: 62ch;
}

/* Outline button */
.eat-btn-outline {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--eat-accent);
  border-radius: var(--eat-radius);
  color: var(--eat-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background 0.18s ease, color 0.18s ease;
}

.eat-btn-outline:hover {
  background: var(--eat-accent);
  color: #fff;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.eat-faq {
	max-width: 1160px;
}

.eat-faq__title {
	font-size: clamp(1.2rem, 2.5vw, 1.5rem);
	font-weight: 700;
	color: var(--eat-text);
	margin-bottom: 20px;
	margin-top: 0;
}

.eat-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eat-faq__item {
	border: 1px solid var(--eat-border);
	border-radius: 10px;
	margin-bottom: 5px;
	padding: 0 15px;
}

.eat-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--eat-text);
  cursor: pointer;
  transition: color 0.18s ease;
}

.eat-faq__question:hover { color: var(--eat-accent); }

.eat-faq__icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--eat-muted);
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.18s ease;
  line-height: 1;
}

.eat-faq__question[aria-expanded="true"] .eat-faq__icon {
  transform: rotate(45deg);
  color: var(--eat-accent);
}

.eat-faq__answer {
  padding: 0 4px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--eat-muted);
}

.eat-faq__answer[hidden] { display: none; }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */

.eat-related {
  
}

.eat-related__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--eat-accent);
  margin-bottom: 20px;
}

.eat-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.eat-related__card {
	text-decoration: none;
	color: var(--eat-text);
	background-color: #FFFAF4;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-radius: var(--eat-radius);
	overflow: hidden;
	transition: transform 0.2s ease;
}

.eat-related__card:hover { transform: translateY(-3px); }

.eat-related__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--eat-radius);
  display: block;
}

.eat-related__card-body{
	padding: 0 20px 20px;
}

.eat-related__card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--eat-text);
  margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .eat-hero__inner {
    grid-template-columns: 1fr;
  }
  .eat-hero__image { display: none; } /* Or move below title on mobile */

  .eat-article-wrap {
    grid-template-columns: 1fr;
  }

  .eat-toc {
    position: static;
    margin-bottom: 28px;
  }

  .eat-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .eat-hero { padding: 32px 16px 0; }
  .eat-article-wrap,
  .eat-author-box,
  .eat-faq,
  .eat-related { padding-left: 16px; padding-right: 16px; }

  .eat-author-box { flex-direction: column; gap: 16px; }
  .eat-author-box__avatar img { width: 72px; height: 72px; }

  .eat-related__grid { grid-template-columns: 1fr; }
}

/* ── Full article Read More ─────────────────────────────────── */

.eat-readmore-overlay {
	max-width: var(--content-width);
  position: relative;
  text-align: left;
  margin-top: -80px; /* pull up to overlap the fade */
  padding-top: 80px; /* gradient fade height */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #fff 75%
  );
  pointer-events: none; /* let clicks pass through gradient area */
	padding-left: 10px;
    padding-bottom: 20px;
    margin-bottom: -10px;
	margin-left: auto;
	margin-right: auto;
}

/* Once expanded, remove the fade */
.eat-readmore-overlay.is-open {
  background: none;
  margin-top: 0;
  padding-top: 0;
}

.eat-read-more-btn {
  pointer-events: all; /* re-enable clicks on the button itself */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--eat-accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.18s ease;
}

.eat-read-more-btn:hover {
  opacity: 0.75;
}

/* Smooth expand transition */
.eat-readmore-wrapper {
  will-change: max-height;
}