/*
Theme Name: UZV Bricks Child
Theme URI: https://unzebredanslaville.fr
Description: Thème enfant Bricks pour Un Zèbre dans la Ville
Author: Bernard FAUGUET
Template: bricks
Version: 1.5
Text Domain: uzv-bricks-child
*/

/* ==========================================================
   UZV Bricks Child — STYLE.CSS ORGANISÉ & NETTOYÉ
   ========================================================== */

/* ==========================================================
   0. RESET & VARIABLES
========================================================== */
:root {
  /* Couleurs */
  --color-bg: #FAFAFA;
  --color-article-bg: #E8F3EE;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-accent: #3A9D7A;
  --color-accent-hover: #2E8567;

  /* Typo */
  --font-base: 'Inter', sans-serif;

  /* Espaces */
  --space-s: 0.8rem;
  --space-m: 1.5rem;
  --space-l: 2rem;

  /* Ombres */
  --shadow-xs: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-m: 0 6px 14px rgba(0,0,0,0.08);

  /* Radius UZV */
  --radius-none: 0;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --radius: var(--radius-m);
}


html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

img, video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}


* {
  box-sizing: border-box;
}

/* ==========================================================
   1. TYPOGRAPHIE
========================================================== */
body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-size: clamp(16px, 1rem + 0.2vw, 18px);
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-text-light);
}

.titre-centre {
  text-align: center;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-base);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2rem, 2.5vw + 1rem, 3rem); }
h2 { font-size: clamp(1.6rem, 2vw + 0.5rem, 2.4rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + 0.4rem, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.2vw + 0.3rem, 1.4rem); }
h5 { font-size: clamp(1rem, 1vw + 0.2rem, 1.2rem); }
h6 { font-size: clamp(0.9rem, 0.9vw + 0.2rem, 1rem); }

/* ==========================================================
   2. ARTICLES & CARTES
========================================================== */

.blog, .archive, .brxe-posts {
  display: grid;
  gap: var(--space-m);
  padding: var(--space-m);
}

.article-card,
article,
.single-post .bricks-container,
.brxe-posts article,
.archive article {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: var(--color-article-bg); /* vert d’eau UZV */
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: var(--space-m);
  margin-bottom: var(--space-l);
}

.article-card:hover,
.brxe-posts article:hover,
.archive article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.article-card h2,
.article-card h3,
article h2,
article h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--color-text);
}

.article-card img,
article img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-m);
}

/* ==========================================================
   3. SINGLE POST
========================================================== */

.single-post .bricks-container {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-l);
}

.single-post blockquote {
  border-left: 4px solid var(--color-accent);
  background-color: #f4faf7;
  padding: 1.2em 1.8em;
  border-radius: var(--radius-m);
  position: relative;
}

.single-post blockquote::before {
  content: "❝";
  font-size: 2rem;
  color: var(--color-accent);
  position: absolute;
  left: 12px;
  top: -10px;
}

/* ==========================================================
   4. FORMULAIRES
========================================================== */

form {
  display: grid;
  gap: var(--space-m);
}

input, textarea, select {
  width: 100%;
  padding: var(--space-s);
  border-radius: var(--radius-s);
  border: 1px solid #ccc;
}

/* ==========================================================
   5. BOUTONS
========================================================== */

.button,
button,
input[type="submit"],
.bricks-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-l);
  cursor: pointer;
  font-family: var(--font-base);
 font-size: 1em !important;
  color: #fff;
  background-color: var(--color-accent);
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.bricks-button:hover {
  transform: translateY(-1px);
  background-color: var(--color-accent-hover);
}

/* ==========================================================
   6. RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .single-post .bricks-container,
  .single-post article {
    padding: var(--space-m);
  }
}

