@import url('https://fonts.googleapis.com/css2?family=Almendra+Display&family=Parisienne&family=Roboto:wght@400;700;800&display=swap');

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #111;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Centered page wrapper */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---------- Hero (landing) ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  cursor: pointer;

  /* Background image path is relative to this CSS file */
  background-image: url("../images/broderie1.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-content{
  color: #fff;
  text-shadow: 0 0 30px #000;
}
.brand{
  margin: 0 0 8px;
  font-family: "Parisienne", cursive;
  font-size: clamp(42px, 8vw, 72px);
}
#slogan{
  display: block;
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 600;
  font-family: "Almendra Display", arial, sans-serif;
  font-style: italic;
  text-shadow: 0 0 50px #000;
  color: #fff;
}

/* ---------- Main section ---------- */
.content{ padding-block: 24px 40px; }

.page-title{
  margin: 0 0 10px;
  text-align: center;
  font-family: "Parisienne", serif;
  font-size: 40px;
}
#top{
  font-size: 19px;
  text-align: center;
  margin: 0 0 40px;
}

/* ---------- Tiles grid ---------- */
.tile-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Single clickable tile */
.tile{
  /* background via CSS var set inline: style="--bg:url('...')" */
  --bg: none;

  position: relative;
  display: flex;
  flex-direction: column; /* title above subline */
  justify-content: center;
  align-items: center;
  text-align: center;

  min-height: 400px;
  color: #fff;
  text-shadow: 0 0 30px #000;
background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 3px solid #fff;
  border-radius: 30px;
  font-size: 40px;       /* base size for title (see .tile-title) */
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

/* Special tile spans, matching your previous layout */
#ideas { /* was #deco */ grid-row: 1 / 3; }
#accessories { /* was #access */ grid-column: 2 / 4; }
#fashion { /* was #mode */ }
#moments { /* was #event */ }

/* Title + subline inside tile */
.tile-title{
  font-size: 1em;
  font-weight: 700;
  line-height: 1.1;
}
.tile-sub{
  display: block;
  margin-top: .35em;
  font-family: "Parisienne", cursive;
  font-size: .70em;
  font-weight: 600;
  opacity: .98;
  /* crisp shadow for readability on photos */
  text-shadow:
    0 1px 2px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.85);
}

/* Hover: orange border + wavy underline only under the first line */
.tile { text-decoration: none; }
.tile:hover{
  border-color: #FF7373;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.tile:hover .tile-title{
  text-decoration: underline wavy #FF7373;
  text-underline-offset: .25em;
  text-decoration-thickness: 2px;
}

/* “See more” link */
.see-more{ text-align: right; margin-top: 10px; }
#see-all{
  display: inline-flex;
  align-items: center;
  color: #FF7373;
  gap: 0;
  transition: gap .4s;
}
#see-all:hover{ gap: 10px; }

/* ---------- Footer (frosted overlay) ---------- */
.site-footer{
  position: relative;
  background: center / cover url("../images/broderie1.webp"), #EBF2FA;
  margin-top: 40px;
  padding: 15px 0;
}
.site-footer::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(235,235,235,.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}
.footer-inner{
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand{ display: flex; align-items: center; gap: 10px; color: #111; }
.footer-links{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 16px;
}
/* Force footer links black (no global nav color anymore) */
.site-footer a, .site-footer a:visited { color: #000; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1350px){
  .tile-grid{ grid-template-columns: repeat(2, 1fr); }
  #ideas { grid-row: auto; }
  #accessories { grid-column: auto; }
}
@media (max-width: 800px){
  .tile-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 570px){
  .hero{ padding: 15px; }
}

.icon-left { transform: scaleX(-1); }        /* or: rotate(180deg) */

/* Make the brand link look like the original text */
.brand a{
  color: inherit;
  text-decoration: none;
  display: inline-block; /* nicer click target */
}
.brand a:focus-visible{
  outline: 3px solid rgba(0,0,0,.35);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Make the title link look like the original text */
.shop-title a{
  color: inherit;
  text-decoration: none;
  display: inline-block;     /* better click target */
}

/* Optional: visible keyboard focus */
.shop-title a:focus-visible{
  outline: 3px solid rgba(0,0,0,.35);
  outline-offset: 3px;
  border-radius: 6px;
  text-decoration: none;
}

.article-hero{
  position: relative;              /* needed for absolute children */
  display: block;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  border: 2px solid #f4f2cc;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  overflow: hidden;
}

/* the overlay sits between the image and the text */
.article-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
  z-index: 0;                      /* BELOW the caption */
  pointer-events: none;            /* never block clicks */
}

/* the text layer sits above the overlay */
.article-hero .hero-caption{
  position: absolute;
  inset: auto 0 0 0;               /* pinned to the bottom */
  padding: 24px;
  text-align: center;
  color: #fff;
  z-index: 1;                      /* ABOVE the overlay */
}

.article-hero .tile-title{
  font-family: "Almendra Display", serif;
  font-size: clamp(28px, 4vw, 56px);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}


/* Big centered title on top of the image */
.article-hero h2{
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Almendra Display", serif;
  font-size: clamp(28px, 4.5vw, 56px);
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* Article text area */
.article{
  margin: 22px 0 44px;
  text-align: left;
}

.article p{
  max-width: 70ch;                /* nice readable line length */
  margin: 14px auto;               /* center the text block */
  line-height: 1.7;
  font-size: 18px;
}

/* design/style.css */

.tile{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  min-height: 400px;
  color: #fff;
  text-shadow: 0 0 30px #000;

  /* Use the element’s background-image directly */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  border: 3px solid #fff;
  border-radius: 30px;
  font-size: 40px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.banner-cta{
  grid-column: 1 / -1;
  display: grid; place-items: center; text-align: center;
  min-height: 340px;
  border-radius: 22px;
  border: 3px solid var(--accent);

  /* identical to .tile background resolution */
  background: center / cover no-repeat var(--bg);
  color:#fff; text-shadow: 0 0 28px rgba(0,0,0,.85);
}

.banner-cta .tile-title{
  font-family: "Almendra Display", serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
}
.banner-cta .tile-sub{
  display:block; margin-top:.25em;
  font-family: "Parisienne", cursive;
  font-size: clamp(16px, 2.6vw, 28px);
  font-weight:600; opacity:.98;
}

/* Category tiles set their background via CSS var */
.tile { background: center / cover no-repeat var(--bg); }

/* Put the actual URLs here, not inline */
#ideas       { --bg: url('/images/table.webp'); }
#accessories { --bg: url('/images/pochette4.webp'); }
#fashion     { --bg: url('/images/fleurs.webp'); }
#moments     { --bg: url('/images/cigogne.jpg'); }
