/* Charte "L'Atelier Bioclimatique", reprise du site principal (app/globals.css). */
:root {
  --primary: #011323;
  --navy: #162839;
  --secondary: #4e635a;
  --sage: #8da399;
  --sage-light: #cee5da;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-low: #f3f4f5;
  --text: #191c1d;
  --text-muted: #43474c;
  --outline: #c4c6cd;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: "Montserrat", "Inter", sans-serif; color: var(--primary); line-height: 1.2; margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* En-tête */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 2; padding: 22px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: "Montserrat", sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; color: #fff; text-decoration: none; }
.header-mail { color: #fff; font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }
.header-mail:hover { border-color: #fff; }

/* Bandeau d'accueil */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; background: var(--navy); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,19,35,0.55) 0%, rgba(1,19,35,0.35) 45%, rgba(1,19,35,0.7) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 72px; }
.badge { display: inline-block; background: var(--sage); color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2rem, 5.5vw, 3.4rem); max-width: 16em; margin-bottom: 20px; }
.hero h1 strong { font-weight: 600; }
.hero p { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 36em; color: rgba(255,255,255,0.92); margin: 0 0 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--sage); color: #fff; text-decoration: none; padding: 15px 28px; border-radius: 4px; font-weight: 500; transition: background 0.2s; }
.btn:hover { background: var(--secondary); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 767px) { section { padding: 64px 0; } }
.section-head { max-width: 46em; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 500; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); margin: 0; }

.grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(1,19,35,0.06), 0 8px 24px rgba(1,19,35,0.05); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 26px; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.alt { background: var(--surface-low); }
.value { text-align: left; }
.value .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-light); color: var(--secondary); display: grid; place-items: center; margin-bottom: 16px; }
.value .icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.value p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.prose { max-width: 46em; margin: 0 auto; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 500; margin-bottom: 18px; }
.prose p { color: var(--text-muted); margin: 0 0 16px; }

.contact { background: var(--primary); color: #fff; text-align: center; }
.contact h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 400; margin-bottom: 14px; }
.contact p { color: rgba(255,255,255,0.85); max-width: 38em; margin: 0 auto 30px; }
.contact .mail { font-size: 1.05rem; word-break: break-all; }

footer { background: var(--navy); color: rgba(255,255,255,0.7); font-size: 0.875rem; padding: 28px 0; }
footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: rgba(255,255,255,0.85); }

/* Pages secondaires (mentions légales, 404) */
.page-header { background: var(--primary); padding: 22px 0; }
.page-header .brand { color: #fff; }
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 500; margin-bottom: 12px; }
.page .lead { color: var(--text-muted); margin: 0 0 40px; }
.page h2 { font-size: 1.25rem; font-weight: 600; margin: 40px 0 14px; }
.page p { color: var(--text-muted); margin: 0 0 14px; }
.page dl { margin: 0; }
.page .row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--outline); }
@media (min-width: 640px) { .page .row { grid-template-columns: 15rem 1fr; gap: 24px; } }
.page dt { font-weight: 500; color: var(--primary); font-size: 0.95rem; }
.page dd { margin: 0; color: var(--text-muted); }
