/*
Theme Name: GeneratePress – Place Publique
Theme URI: https://generatepress.com
Description: Thème enfant de GeneratePress — site vitrine Place Publique. Charte graphique (jaune #FFF200 / noir), polices Poppins + Inter, mentions légales en pied de page.
Author: Place Publique
Template: generatepress
Version: 2.0.0
Text Domain: generatepress-child
*/

/* ============================================================
   CHARTE GRAPHIQUE — PLACE PUBLIQUE
   Jaune  #FFF200  ·  Noir #000000
   Titres : Poppins  ·  Corps : Inter
   ============================================================ */

:root {
  --pp-yellow: #FFF200;
  --pp-black:  #000000;
  --pp-white:  #FFFFFF;
  --pp-gray:   #555555;
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--pp-black);
  background: var(--pp-white);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Titres ---------- */
h1, h2, h3, h4, h5, h6,
.site-title,
.main-title,
.entry-title,
.main-navigation a,
.button,
a.button,
.wp-block-button__link,
a.wp-block-button__link,
input[type="submit"],
input[type="button"] {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 0.5em; }
h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.01em;  line-height: 1.2;  margin-bottom: 0.5em; }
h3, h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5em; }
h5, h6 { font-size: 1.1rem; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: var(--pp-white);
  border-bottom: 3px solid var(--pp-black);
}

/* Titre du site — logo-mot */
.site-title a,
.main-title a {
  color: var(--pp-black);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
}

.site-title a:hover,
.main-title a:hover {
  color: var(--pp-black);
  text-decoration: none;
}

.site-description {
  color: var(--pp-gray);
  font-size: 0.9rem;
}

/* Logo image */
.site-logo img,
.header-image.is-logo-image {
  max-width: 110px;
  width: 110px;
  height: auto;
}

/* ---------- Menu principal ---------- */
.main-navigation ul li a {
  color: var(--pp-black);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
  color: var(--pp-black);
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ---------- Liens génériques ---------- */
a {
  color: var(--pp-black);
  transition: color 0.15s;
}

a:hover,
a:focus {
  color: var(--pp-black);
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Boutons ---------- */
.button,
a.button,
.wp-block-button__link,
a.wp-block-button__link,
.site-header a.button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  background: var(--pp-yellow);
  color: var(--pp-black);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border: 2px solid var(--pp-black);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.button:hover,
a.button:hover,
.wp-block-button__link:hover,
a.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--pp-black);
  color: var(--pp-yellow);
  text-decoration: none;
}

/* ---------- Blocs de page (hero, sections) ---------- */
.pp-hero {
  background: var(--pp-black);
  color: var(--pp-white);
  padding: 90px 24px;
  text-align: center;
}

.pp-hero h1 {
  color: var(--pp-white);
  font-size: 3.2rem;
  margin-bottom: 0.4em;
}

.pp-hero p {
  font-size: 1.25rem;
  color: #eaeaea;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pp-hero-simple {
  padding: 60px 24px;
}

.pp-hero-simple h1 {
  font-size: 2.6rem;
}

/* Bouton secondaire (contour) à l'intérieur du hero */
.pp-btn-outline,
.pp-hero .pp-btn-outline {
  background: transparent;
  color: var(--pp-white);
  border: 2px solid var(--pp-white);
}

.pp-btn-outline:hover,
.pp-hero .pp-btn-outline:hover {
  background: var(--pp-yellow);
  color: var(--pp-black);
  border-color: var(--pp-yellow);
}

/* Sections de page */
.pp-section {
  padding: 64px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.pp-section h2 {
  margin-bottom: 1.2em;
  padding-bottom: 0.4em;
  border-bottom: 3px solid var(--pp-yellow);
  display: block;                 /* casse proprement sur plusieurs lignes */
  max-width: 100%;
  overflow-wrap: break-word;      /* casse les mots trop longs sur mobile */
  word-break: break-word;
}

.pp-section p,
.pp-section ul {
  font-size: 1.1rem;
}

.pp-section-alternate {
  background: #FAFAFA;
  max-width: none;
}

.pp-section-alternate > h2,
.pp-section-alternate > p,
.pp-section-alternate > ul {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Deux colonnes */
.pp-section-2col {
  display: flex;
  gap: 40px;
  max-width: 1000px;
}

.pp-col {
  flex: 1 1 0;
}

/* ---------- Formulaire de contact ---------- */
.pp-contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.pp-field {
  margin-bottom: 18px;
}

.pp-field label {
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.pp-required {
  color: #C00;
}

.pp-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--pp-black);
  border-radius: 0;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--pp-white);
}

.pp-field input:focus {
  outline: none;
  border-color: var(--pp-black);
  box-shadow: 0 0 0 3px var(--pp-yellow);
}

/* Champ texte (message) — mêmes règles que les inputs */
.pp-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--pp-black);
  border-radius: 0;
  font-size: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--pp-white);
  resize: vertical;
  min-height: 120px;
}

.pp-field textarea:focus {
  outline: none;
  border-color: var(--pp-black);
  box-shadow: 0 0 0 3px var(--pp-yellow);
}

/* Champ honeypot anti-spam — invisible pour les humains */
.pp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messages de confirmation / erreur */
.pp-flash {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 2px solid var(--pp-black);
  font-weight: 600;
}

.pp-flash--success {
  background: var(--pp-yellow);
  color: var(--pp-black);
}

.pp-flash--error {
  background: #fff;
  color: var(--pp-black);
  border-color: #C00;
}

.pp-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--pp-gray);
}

.pp-box {
  background: #FAFAFA;
  border-left: 4px solid var(--pp-yellow);
  padding: 16px 20px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.pp-box strong {
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}

.pp-contact-submit {
  margin-top: 28px;
}

.pp-contact-submit .button {
  font-size: 1rem;
  padding: 15px 36px;
}

/* Emplacement formulaire */
.pp-form-placeholder {
  background: #FAFAFA;
  border: 2px dashed var(--pp-black);
  border-radius: 4px;
  padding: 24px;
}

.pp-note {
  font-size: 0.9rem;
  color: var(--pp-gray);
  font-style: italic;
}

.pp-cta-main {
  margin: 24px 0 8px;
}

/* Boutons côte à côte, de même largeur (dans le hero) */
.pp-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.pp-hero-cta .button {
  flex: 1 1 200px;
  min-width: 200px;
  text-align: center;
}

/* ---------- Articles / contenu ---------- */
.entry-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.entry-title a {
  color: var(--pp-black);
  text-decoration: none;
}

.entry-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.entry-meta,
.post-meta,
.entry-date,
.updated,
.byline {
  color: var(--pp-gray);
  font-size: 0.85rem;
  font-weight: 400;
}

.entry-content {
  font-size: 17px;
}

/* ---------- Section d'accueil : liste des actions ---------- */
.pp-actions-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pp-actions-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 2px solid var(--pp-black);
  padding-bottom: 24px;
}

.pp-actions-item:last-of-type {
  border-bottom: none;
}

.pp-actions-item__media {
  flex: 0 0 160px;
  display: block;
}

.pp-actions-item__thumb {
  width: 160px;
  height: 120px;
  object-fit: cover;
  display: block;
  border: 2px solid var(--pp-black);
}

.pp-actions-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pp-actions-item__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2em;
}

.pp-actions-item__title a {
  color: var(--pp-black);
  text-decoration: none;
}

.pp-actions-item__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.pp-actions-item__date {
  color: var(--pp-gray);
  font-size: 0.85rem;
  margin-bottom: 0.5em;
}

.pp-actions-item__excerpt {
  font-size: 1rem;
  color: var(--pp-black);
  margin-bottom: 0;
}

.pp-actions-more {
  margin: 24px 0 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
}

.pp-actions-more a {
  color: var(--pp-black);
  text-decoration: none;
}

.pp-actions-more a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .pp-actions-item {
    flex-direction: column;
    gap: 14px;
  }

  .pp-actions-item__media {
    flex: 0 0 auto;
    width: 100%;
  }

  .pp-actions-item__thumb {
    width: 100%;
    height: auto;
  }
}

/* ---------- Modèle d'article « Nos actions » ---------- */
.pp-article__inside {
  max-width: 820px;
  margin: 0 auto;
}

.pp-article__image {
  margin: 0 0 32px;
}

.pp-article__photo {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--pp-black);
}

.pp-article__category {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pp-gray);
  margin-bottom: 8px;
}

.pp-article__category a {
  color: var(--pp-black);
  text-decoration: none;
}

.pp-article__category a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 2px;
}

.pp-article__title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.2em;
}

.pp-article__meta {
  color: var(--pp-gray);
  font-size: 0.9rem;
  margin-bottom: 1.6em;
}

.pp-article__content {
  font-size: 1.1rem;
}

.pp-article__content p {
  margin-bottom: 1.4em;
}

.pp-article__back {
  margin-top: 2.4em;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
}

.pp-article__back a {
  color: var(--pp-black);
  text-decoration: none;
}

.pp-article__back a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pp-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .pp-article__title {
    font-size: 1.9rem;
  }

  .pp-article__image {
    margin-bottom: 24px;
  }
}

/* ---------- Séparateurs ---------- */
hr,
.wp-block-separator {
  border-color: var(--pp-black);
  opacity: 0.15;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pp-black);
  color: var(--pp-white);
  padding: 40px 20px;
  font-size: 14px;
}

.site-footer a {
  color: var(--pp-white);
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--pp-yellow);
  text-decoration: none;
}

.site-footer .site-title a,
.site-footer .main-title a {
  color: var(--pp-white);
  font-size: 1.4rem;
}

.site-footer .site-title a:hover,
.site-footer .main-title a:hover {
  color: var(--pp-yellow);
}

.site-footer .site-description {
  color: #999999;
}

/* Lien mentions légales (dans la barre du copyright) */
.footer-legal-link {
  font-size: 13px;
  color: inherit;
}

.footer-legal-link:hover {
  color: var(--pp-yellow);
  text-decoration: none;
}

/* Supprime le liseré blanc entre le contenu et le pied de page */
.separate-containers .site-main,
.separate-containers .inside-right-sidebar {
  margin-bottom: 0;
}

/* Fond noir pleine largeur (retire la limite de 1200px du conteneur) */
.site-footer.grid-container {
  max-width: none;
  width: 100%;
}

/* Neutralise le fond clair que GeneratePress applique à .site-info
   (règle générée dans l'admin : .site-info{background-color:var(--base-3)}) */
.site-footer .site-info,
.site-footer .inside-site-info {
  background: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3, h4 { font-size: 1.3rem; }

  .site-title a,
  .main-title a {
    font-size: 1.4rem;
  }

  .main-navigation ul li a {
    font-size: 13px;
    padding: 10px 12px;
  }

  .button,
  a.button,
  .wp-block-button__link,
  a.wp-block-button__link,
  input[type="submit"],
  input[type="button"] {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 320px;
  }

  .entry-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .pp-section h2 {
    font-size: 1.4rem;
    letter-spacing: -0.005em;
  }

  .site-title a,
  .main-title a {
    font-size: 1.2rem;
  }
}
