/* EFFA Céramique — feuille de style commune */

:root {
  --beige: #F4F1EC;
  --ardoise: #2E3C45;
  --sauge: #B4C4B0;
  --sauge-dark: #8FA189;
  --terre: #D6A67A;
  --pierre: #DAD9D6;
  --sauge-pale: #EEF2EC;
  --gris-clair: #EFEDE9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ardoise);
  font-family: 'Raleway', 'Open Sans', sans-serif;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--ardoise);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p {
  margin: 0 0 1.1em;
  text-align: justify;
  hyphens: auto;
}

.hero p,
.section-title p,
.gamme-header p,
footer.site-footer p {
  text-align: center;
  hyphens: none;
}

.legal-info {
  text-align: left;
}

a { color: var(--ardoise); }

.accent {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--sauge-dark);
}

img { max-width: 100%; display: block; }

.process-image {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 4px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header.site-header {
  background: var(--beige);
  border-bottom: 1px solid var(--pierre);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--ardoise);
  letter-spacing: 0.04em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ardoise);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--sauge-dark);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero img.hero-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 1.2rem;
}

.hero h1 { margin-bottom: 0.3rem; }

.hero .baseline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--sauge-dark);
  margin-bottom: 1.2rem;
}

.hero .intro {
  max-width: 390px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.btn {
  display: inline-block;
  background: var(--sauge);
  color: var(--ardoise);
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--sauge-dark); }

/* Sections */
section { padding: 2.5rem 0; }

section.alt-bg { background: var(--pierre); }

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 { margin-bottom: 0.3rem; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.photo-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(46,60,69,0.08);
}

.photo-grid figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.photo-grid.single {
  grid-template-columns: minmax(230px, 420px);
  justify-content: center;
}

.photo-grid figcaption {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  color: var(--ardoise);
}

/* Univers page */
.univers-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0;
}

.univers-block img { border-radius: 4px; }

.univers-block.reverse .text { order: 2; }
.univers-block.reverse .photo { order: 1; }

@media (max-width: 720px) {
  .univers-block, .univers-block.reverse {
    grid-template-columns: 1fr;
  }
  .univers-block .text, .univers-block.reverse .text,
  .univers-block .photo, .univers-block.reverse .photo {
    order: initial;
  }
}

blockquote.tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--sauge-dark);
  text-align: center;
  margin: 2rem auto;
  max-width: 500px;
}

/* Gammes (page produits) */
.gamme-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  list-style: none;
}

.gamme-nav a {
  text-decoration: none;
  background: #fff;
  color: var(--ardoise);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--pierre);
}

.gamme-nav a:hover { background: var(--sauge); }

.gamme-section {
  padding: 2.5rem 1.8rem;
  margin: 0 0 2.2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(46,60,69,0.07);
}

.gamme-section:nth-of-type(even) {
  background: var(--gris-clair);
}

.gamme-section:last-child { margin-bottom: 0; }

.gamme-header { text-align: center; }

.gamme-header h2 {
  margin-bottom: 0.2rem;
  font-size: 2.3rem;
}

.gamme-header .sous-titre {
  color: var(--sauge-dark);
  font-style: italic;
  margin-bottom: 0;
}

.gamme-section > p,
.gamme-section > .photo-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.collection-block {
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--pierre);
}

.gamme-section:nth-of-type(even) .collection-block {
  border-top-color: rgba(46,60,69,0.12);
}

.collection-block:first-of-type {
  margin-top: 1.8rem;
  padding-top: 0;
  border-top: none;
}

.collection-block h3 {
  display: inline-block;
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--sauge-dark);
}

.collection-block > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Actualités */
.actu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.actu-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--pierre);
}

.actu-item:last-child { border-bottom: none; }

.actu-date {
  flex: 0 0 190px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--sauge-dark);
}

.actu-item.passee { opacity: 0.7; }

.actu-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pierre);
  color: var(--ardoise);
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  margin-bottom: 0.3rem;
}

@media (max-width: 560px) {
  .actu-item { flex-direction: column; gap: 0.3rem; }
  .actu-date { flex: none; }
}

.actu-hours {
  margin: 0.3rem 0 0;
  font-style: italic;
}

.actu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.actu-links a {
  color: var(--sauge-dark);
  text-decoration: underline;
}

.actu-links a:hover { color: var(--ardoise); }

/* Journal d'atelier / Idées cadeaux */
.journal-list {
  max-width: 760px;
  margin: 0 auto;
}

.journal-entry {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--pierre);
}

.journal-entry:first-child { padding-top: 0; }
.journal-entry:last-child { border-bottom: none; }

.journal-entry-photo {
  flex: 0 0 130px;
}

.journal-entry-photo img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.journal-entry-content {
  flex: 1;
  min-width: 0;
}

.journal-date {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--sauge-dark);
  margin-bottom: 0.3rem;
}

.journal-entry h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.journal-entry p { margin-bottom: 1rem; }
.journal-entry p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .journal-entry { flex-direction: column; gap: 1rem; }
  .journal-entry-photo img { width: 110px; height: 110px; }
}

/* Contact */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}

.contact-hero .photo img {
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.contact-hero .intro-text {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

.info h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.info h2:first-of-type { margin-top: 0.3rem; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--pierre);
}

.contact-list li:last-child { border-bottom: none; }

.contact-list .icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sauge);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-list .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ardoise);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list .icon svg.filled {
  fill: var(--ardoise);
  stroke: none;
}

.contact-list strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-list a,
.contact-list span.value {
  color: var(--ardoise);
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .contact-hero { grid-template-columns: 1fr; }
  .contact-hero .photo { max-width: 320px; margin: 0 auto; }
}

/* Footer */
footer.site-footer {
  background: var(--ardoise);
  color: var(--beige);
  padding: 2.2rem 0;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

footer.site-footer a {
  color: var(--sauge);
  text-decoration: none;
}

footer.site-footer a:hover { text-decoration: underline; }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 0.8rem;
}

@media (max-width: 340px) {
  footer .footer-links { gap: 0.9rem; }
}

footer .footer-legal {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

footer .footer-legal a {
  color: var(--beige);
  opacity: 0.7;
  text-decoration: underline;
}

footer .footer-legal a:hover { opacity: 1; }
