/* ============================================================
   CHIEN LUNE FLEXIBLE — CSS
   Styles pour blocs natifs WordPress
   S'applique à l'editeur ET au site public
   ============================================================ */

/* --------------------------------------------------
   BASE : tous les conteneurs Chien
   -------------------------------------------------- */
.is-style-chien-carte,
.is-style-chien-carte-foncee,
.is-style-chien-box,
.is-style-chien-hero {
  font-family: 'Special Elite', 'Courier New', monospace;
  color: #17262B;
}

/* --------------------------------------------------
   GROUP : Carte (bordure double)
   -------------------------------------------------- */
.is-style-chien-carte {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  border: 3px double #17262B;
  background: #FCF4E4;
}

/* --------------------------------------------------
   GROUP : Carte foncee
   -------------------------------------------------- */
.is-style-chien-carte-foncee {
  border: 2px double #17262B;
  padding: 14px 16px;
  margin: 20px 0;
  background: #F6ECD8;
}

/* --------------------------------------------------
   GROUP : Boite laterale
   -------------------------------------------------- */
.is-style-chien-box {
  border: 1px solid #17262B;
  padding: 12px;
  background: #FCF4E4;
  margin-bottom: 14px;
}

/* --------------------------------------------------
   GROUP : Hero (accueil)
   -------------------------------------------------- */
.is-style-chien-hero {
  border: 3px double #17262B;
  padding: 0;
  overflow: hidden;
  background: #F6ECD8;
  text-align: center;
}

.is-style-chien-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #17262B;
}

/* --------------------------------------------------
   GROUP : Pied (tampon)
   -------------------------------------------------- */
.is-style-chien-pied {
  text-align: center;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #17262B;
}

/* --------------------------------------------------
   PARAGRAPH : Kicker
   -------------------------------------------------- */
.is-style-chien-kicker {
  font-size: 10px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid #17262B;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

/* --------------------------------------------------
   PARAGRAPH : Texte justifie
   -------------------------------------------------- */
.is-style-chien-texte {
  font-size: 14px;
  line-height: 1.75;
  text-align: justify;
}

/* --------------------------------------------------
   PARAGRAPH : Accroche
   -------------------------------------------------- */
.is-style-chien-accroche {
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid #17262B;
  padding-left: 12px;
  margin: 0;
}

/* --------------------------------------------------
   PARAGRAPH : Info pratique
   -------------------------------------------------- */
.is-style-chien-info {
  font-size: 12.5px;
  line-height: 1.7;
  margin: 4px 0;
}

/* --------------------------------------------------
   PARAGRAPH : Signature
   -------------------------------------------------- */
.is-style-chien-signature {
  font-size: 12.5px;
  font-style: italic;
  text-align: right;
  margin-top: 18px;
}

/* --------------------------------------------------
   PARAGRAPH : Folio
   -------------------------------------------------- */
.is-style-chien-folio {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid #17262B;
  border-bottom: 1px solid #17262B;
  padding: 3px 0;
  margin-bottom: 14px;
  text-align: center;
}

/* --------------------------------------------------
   PARAGRAPH : Tampon rond
   -------------------------------------------------- */
.is-style-chien-stamp {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px double #17262B;
  border-radius: 50%;
  padding: 16px 12px;
  transform: rotate(-6deg);
  line-height: 1.4;
  text-align: center;
}

/* --------------------------------------------------
   HEADING : Titre (capitales)
   -------------------------------------------------- */
.is-style-chien-titre {
  font-size: clamp(18px, 3.2vw, 28px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.25;
}

/* --------------------------------------------------
   HEADING : Sous-titre
   -------------------------------------------------- */
.is-style-chien-sous-titre {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  border-bottom: 1px solid #17262B;
  padding-bottom: 5px;
}

/* --------------------------------------------------
   HEADING : Masthead
   -------------------------------------------------- */
.is-style-chien-mast {
  font-size: clamp(24px, 4.2vw, 42px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

/* --------------------------------------------------
   IMAGE : Photo (filtre 74)
   -------------------------------------------------- */
.is-style-chien-photo img,
.wp-block-image.is-style-chien-photo img {
  max-width: 100%;
  height: auto;
  border: 3px double #17262B;
  display: block;
  filter: sepia(0.35) saturate(1.4) hue-rotate(-15deg) contrast(0.95) brightness(1.02);
}

/* --------------------------------------------------
   IMAGE : Hero image
   -------------------------------------------------- */
.is-style-chien-hero-img img,
.wp-block-image.is-style-chien-hero-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #17262B;
  filter: sepia(0.35) saturate(1.4) hue-rotate(-15deg) contrast(0.95) brightness(1.02);
}

/* --------------------------------------------------
   IMAGE : Logo
   -------------------------------------------------- */
.is-style-chien-logo img,
.wp-block-image.is-style-chien-logo img {
  max-width: 80px;
  height: auto;
  display: inline-block;
  margin-bottom: 6px;
  filter: sepia(0.35) saturate(1.4) hue-rotate(-15deg) contrast(0.95) brightness(1.02);
}

/* --------------------------------------------------
   QUOTE : Citation
   -------------------------------------------------- */
.is-style-chien-citation {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid #17262B;
  background: #F6ECD8;
}

.is-style-chien-citation p {
  margin: 0;
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------
   COLUMNS : Deux colonnes
   -------------------------------------------------- */
.is-style-chien-deux-col {
  gap: 18px;
}

/* --------------------------------------------------
   COLUMN : Colonne texte
   -------------------------------------------------- */
.is-style-chien-col-texte {
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------
   LETTRINE (premiere lettre du premier paragraphe)
   -------------------------------------------------- */
.is-style-chien-carte > .wp-block-paragraph:first-of-type::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.85;
  padding-right: 0.4rem;
  padding-top: 0.15rem;
  color: #17262B;
  font-family: 'Special Elite', 'Courier New', monospace;
}

/* --------------------------------------------------
   RESPONSIVE
   -------------------------------------------------- */
@media (max-width: 760px) {
  .is-style-chien-hero img {
    height: 220px;
  }
  
  .is-style-chien-carte {
    padding: 10px;
  }
}

/* --------------------------------------------------
   EDITEUR : styles visibles dans Gutenberg
   -------------------------------------------------- */
.editor-styles-wrapper .is-style-chien-carte,
.editor-styles-wrapper .is-style-chien-carte-foncee,
.editor-styles-wrapper .is-style-chien-box,
.editor-styles-wrapper .is-style-chien-hero {
  font-family: 'Special Elite', 'Courier New', monospace;
}
