/* =============================================
   juliettedutheil.fr — Artiste cellulaire
   Design: Dark purple, lavender, light
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a0a2e;
  --bg2: #120720;
  --accent: #a78bfa;
  --accent2: #7c3aed;
  --light: #f5f3ff;
  --light2: #ede9fe;
  --muted: #c4b5fd;
  --text: #e2d9f3;
  --white: #ffffff;
  --card-bg: #2d1a4e;
  --border: #3d2560;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(167,139,250,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--light); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--light);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Containers --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 10, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 0; }
.site-nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--accent); background: rgba(167,139,250,.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all .3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/images/hero-cellulaire.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 46, 0.87);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 100px 24px 60px;
  margin: 0 auto 0 calc((100vw - 1200px) / 2 + 24px);
}
@media (max-width: 1248px) { .hero-content { margin-left: 24px; } }

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 560px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg2);
}
.btn-primary:hover { background: var(--light2); color: var(--bg2); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--accent); color: var(--bg2); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 90px 0; }
.section--alt { background: var(--bg2); }
.section--dark { background: #0d0520; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title { color: var(--light); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 48px; }

.title-group { margin-bottom: 48px; }
.title-group.centered { text-align: center; }
.title-group.centered .section-lead { margin-left: auto; margin-right: auto; }

/* =============================================
   TWO-COLUMN LAYOUT
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse .two-col__img { order: 2; }
.two-col.reverse .two-col__text { order: 1; }
.two-col__img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.two-col__text h2 { margin-bottom: 16px; }
.two-col__text p { color: var(--muted); }
.two-col__text .btn { margin-top: 24px; }

/* =============================================
   BANNER (CSS BG)
   ============================================= */
.banner {
  position: relative;
  padding: 100px 0;
  background-image: url('/images/exposition.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 46, 0.87);
}
.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.banner-content h2 { color: var(--white); margin-bottom: 16px; }
.banner-content p { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(167,139,250,.18); }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 24px; }
.card__meta { font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.card__title { font-family: var(--font-head); color: var(--light); font-size: 1.15rem; margin-bottom: 10px; }
.card__excerpt { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.card__link { font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.card__link:hover { color: var(--light); }

/* =============================================
   BLOG / ARTICLE
   ============================================= */
.article-hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  margin-top: 70px;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,10,46,.75);
}
.article-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 40px;
}
.article-hero__content h1 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--white); }
.article-meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { padding: 60px 0 90px; }
.article-body h2 { font-size: 1.6rem; color: var(--light); margin: 40px 0 16px; }
.article-body h3 { font-size: 1.25rem; color: var(--light); margin: 32px 0 12px; }
.article-body p { color: var(--text); margin-bottom: 1.2rem; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.5rem; color: var(--text); }
.article-body li { margin-bottom: .4rem; }
.article-mid-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin: 40px 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* =============================================
   BLOG INDEX
   ============================================= */
.blog-header {
  background: var(--bg2);
  padding: 120px 0 60px;
  text-align: center;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 60px 0 90px;
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  background: var(--bg2);
  padding: 120px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { color: var(--light); }
.page-header p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* =============================================
   GALLERY GRID
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .3s, opacity .3s;
}
.gallery-grid img:hover { transform: scale(1.02); opacity: .9; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: .9rem; font-weight: 500; color: var(--light2); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   PLAN DU SITE
   ============================================= */
.sitemap-section { padding: 60px 0 90px; }
.sitemap-section h2 { font-size: 1.3rem; margin-bottom: 20px; color: var(--accent); }
.sitemap-section ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.sitemap-section li { font-size: .95rem; }
.sitemap-section a { color: var(--muted); }
.sitemap-section a:hover { color: var(--accent); }

/* =============================================
   404
   ============================================= */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-page .error-num { font-size: 8rem; font-family: var(--font-head); color: var(--accent); opacity: .25; line-height: 1; }
.error-page h1 { margin-top: -20px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .two-col__img { order: 0; }
  .two-col.reverse .two-col__text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .hero { background-attachment: scroll; }
  .banner { background-attachment: scroll; }
  .section { padding: 60px 0; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
