/* ==========================================================================
   Vitrine publique (accueil, actualités) et cartes d'actualité (aussi sur le tableau de bord).
   ========================================================================== */
.public { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.public-header { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.public-header .brand-lg { margin: 0; font-size: 1.7rem; }
.public-nav { display: flex; gap: 1.2rem; flex: 1; }
.public-nav a { color: var(--muted); font-family: var(--font-title); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.public-nav a.active, .public-nav a:hover { color: #ffe2a0; border-color: #f2b84b; text-decoration: none; }
.public-actions { display: flex; gap: .5rem; align-items: center; }
.public-main { padding: 1.25rem 0 2rem; }
.public-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; text-align: center; }
@media (max-width: 640px) {
  .public-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .public-header { justify-content: space-between; }
}

.home-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .home-hero { grid-template-columns: 1fr; } }
.hero-banner {
  position: relative; min-height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid rgb(244 210 138 / 35%);
  background: linear-gradient(90deg, rgb(10 6 18 / 85%) 0%, rgb(10 6 18 / 35%) 55%, transparent 100%), var(--hero) center / cover;
  box-shadow: 0 20px 50px rgb(0 0 0 / 50%), var(--glow); display: flex; align-items: flex-end;
}
.hero-text { padding: 2rem; max-width: 560px; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; margin: 0 0 .75rem;
  background: linear-gradient(180deg, #fff6d8, #f2b84b 55%, #a8641a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 60%));
}
.hero-tagline { font-size: 1.15rem; color: #f4ecff; text-shadow: 0 2px 8px rgb(0 0 0 / 70%); margin-bottom: 1.1rem; }
.hero-tagline strong { color: #ffd27a; }
.btn-hero { font-family: var(--font-title); font-size: 1.15rem; padding: .85rem 1.6rem; display: inline-flex; align-items: center; gap: .75rem; }
.btn-hero-arrow {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: linear-gradient(180deg, #9be37a, #3f9a32); color: #fff; font-size: .8rem; box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%);
}
.hero-note { color: #d8cbe8; margin-top: .6rem; }

.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.carousel { margin: 0; padding: .75rem; text-align: center; }
.carousel-title { font-family: var(--font-title); font-weight: 800; color: #ffe2a0; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.carousel-sub { color: var(--muted); margin-bottom: .5rem; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; }
.carousel-slide img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 10px; background: #120b1d; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem; font-size: .8rem; font-weight: 800;
  background: linear-gradient(transparent, rgb(0 0 0 / 75%)); border-radius: 0 0 10px 10px;
}
.carousel-arrow {
  position: absolute; top: 55%; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgb(244 210 138 / 40%);
  background: rgb(20 13 32 / 85%); color: #ffe2a0; cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.carousel-arrow.prev { left: .4rem; }
.carousel-arrow.next { right: .4rem; }
.carousel-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .5rem; }
.carousel-dots button { width: .55rem; height: .55rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / 25%); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: #f2b84b; }

.home-section { margin-bottom: 2rem; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.home-section-head .section-title { margin: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }

.news-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(180deg, rgb(52 39 78 / 92%), rgb(26 19 40 / 94%)); transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 30px rgb(0 0 0 / 40%);
}
.news-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 16px 34px rgb(0 0 0 / 50%), var(--glow); }
.news-img { height: 150px; background: center / cover; position: relative; }
.news-tag {
  position: absolute; top: .6rem; left: .6rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .55rem; border-radius: 6px; color: #10200a; background: linear-gradient(180deg, #a6e98a, #58b347); box-shadow: 0 2px 6px rgb(0 0 0 / 40%);
}
.news-tag.tag-bientot { background: linear-gradient(180deg, #ffe08f, #e2a640); color: #2a1904; }
.news-tag.tag-maj { background: linear-gradient(180deg, #a9c8ff, #5b8ef0); color: #0a1530; }
.news-body { padding: .9rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.news-date { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.news-body h3 { font-family: var(--font-title); font-size: 1.1rem; margin: 0; color: #fff3d6; }
.news-more { margin-top: auto; font-weight: 900; font-size: .8rem; color: #ffd27a; text-transform: uppercase; letter-spacing: .05em; }
.news-article { max-width: 820px; margin: 0 auto; }
.news-hero { height: 260px; border-radius: 12px; background: center / cover; position: relative; margin-bottom: 1rem; }
.news-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem);
  background: linear-gradient(180deg, #fff6d8, #f2b84b 60%, #a8641a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.news-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 1.5rem; }
@media (max-width: 400px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { display: flex; gap: .9rem; align-items: center; padding: .7rem; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgb(52 39 78 / 90%), rgb(26 19 40 / 92%)); }
.feature-card img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.feature-card h3 { font-family: var(--font-title); margin: 0 0 .25rem; color: #ffe2a0; }
.carousel-slide.square img { object-fit: contain; background: radial-gradient(circle, #3a2a55, #160e24); }

/* Pages légales (CGV, mentions légales) */
.legal { max-width: 820px; margin: 1.5rem auto; }
.legal h2 { font-size: 1.1rem; margin-top: 1.4rem; }
