/*
Theme Name: Kadence Land Ressources
Theme URI: https://land-ressources.com
Description: Thème enfant de Kadence pour Land Ressources
Author: Land Ressources
Template: kadence
Version: 1.0.0
*/

/* =============================================
   PALETTE LAND RESSOURCES — fidèle au logo
   Vert forêt:     #1B4332  (logo bas gauche)
   Vert vif:       #3A7D1E  (courbe logo)
   Rouge-orangé:   #D94010  (logo fond haut)
   Orange chaud:   #ff8a65  (texte clair sur fond sombre)
   Fond:           #F8F5F0
   Texte:          #2D3748
   ============================================= */

:root {
  /* Palette */
  --lr-vert: #1b4332;
  --lr-olive: #3a7d1e;
  --lr-orange: #d94010;
  --lr-orange-light: #ff8a65;
  --lr-fond: #ffffff;
  --lr-fond-creme: #f8f5f0;
  --lr-texte: #1a2332;
  --lr-texte-muted: #64748b;
  --lr-blanc-casse: #fcfaf6;
  --lr-bordure: rgba(27, 67, 50, 0.1);
  --lr-ombre: 0 14px 34px rgba(16, 45, 32, 0.08);
  --lr-dark: #080e0b;
  --lr-dark-mid: #0d1f18;

  /* ── SYSTÈME TYPOGRAPHIQUE PREMIUM ── */

  /* Display : hero H1 uniquement — impact maximal */
  --lr-font-display: "Clash Display", "General Sans", "Inter", system-ui, sans-serif;

  /* Heading : H2, H3, titres sections — moderne & élégant */
  --lr-font-heading: "General Sans", "Inter", system-ui, sans-serif;

  /* Body : paragraphes, UI, navigation — lisibilité maximale */
  --lr-font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Aliases pour compatibilité avec l'existant */
  --halpes-heading-font-family: var(--lr-font-heading);
  --halpes-font-sans-serif: var(--lr-font-body);
  --halpes-font-display: var(--lr-font-display);

  /* Échelle de taille — fluid type scale */
  --lr-fs-label:    0.75rem;    /* labels uppercase */
  --lr-fs-small:    0.875rem;   /* meta, captions */
  --lr-fs-body:     1rem;       /* paragraphes */
  --lr-fs-body-lg:  1.0625rem;  /* body large */
  --lr-fs-lead:     clamp(1.05rem, 1.6vw, 1.2rem);  /* intro paragraphs */
  --lr-fs-h4:       clamp(1.1rem, 1.4vw, 1.3rem);
  --lr-fs-h3:       clamp(1.25rem, 1.8vw, 1.55rem);
  --lr-fs-h2:       clamp(2.2rem, 3.5vw, 3.2rem);   /* section headings */
  --lr-fs-h1:       clamp(2.8rem, 5.5vw, 4.8rem);   /* hero title */
  --lr-fs-display:  clamp(3.2rem, 6.5vw, 6rem);     /* display hero */

  /* Interlignage */
  --lr-lh-tight:   1.05;
  --lr-lh-heading: 1.12;
  --lr-lh-body:    1.72;
  --lr-lh-loose:   1.85;

  /* Espacements lettrales */
  --lr-ls-display:  -0.04em;
  --lr-ls-heading:  -0.03em;
  --lr-ls-subhead:  -0.015em;
  --lr-ls-label:    0.12em;
  --lr-ls-label-lg: 0.2em;
}

/* ─────────────────────────────────────────────
   BASE TYPOGRAPHIQUE
   ───────────────────────────────────────────── */
html {
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--lr-font-body) !important;
  font-size: var(--lr-fs-body);
  line-height: var(--lr-lh-body);
  color: var(--lr-texte);
  background: var(--lr-fond) !important;
  padding-top: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--lr-font-heading);
  color: var(--lr-vert);
  font-weight: 600;
  line-height: var(--lr-lh-heading);
  margin-top: 0;
}

h1 {
  font-size: var(--lr-fs-h1);
  letter-spacing: var(--lr-ls-display);
}

h2 {
  font-size: var(--lr-fs-h2);
  letter-spacing: var(--lr-ls-heading);
}

h3 {
  font-size: var(--lr-fs-h3);
  letter-spacing: var(--lr-ls-subhead);
}

h4 {
  font-size: var(--lr-fs-h4);
  letter-spacing: var(--lr-ls-subhead);
}

p {
  font-size: var(--lr-fs-body);
  line-height: var(--lr-lh-body);
}

small,
.text-small {
  font-size: var(--lr-fs-small);
}

strong {
  font-weight: 600;
}

/* Header */
.site-header,
#masthead {
  background-color: #ffffff;
  border-bottom: 3px solid var(--lr-vert);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-branding .site-title a {
  color: var(--lr-vert);
  font-family: var(--halpes-heading-font-family);
  font-weight: 700;
}

/* Navigation */
.main-navigation a,
.primary-menu a {
  color: var(--lr-texte);
  font-weight: 500;
  transition: color 0.2s;
}
.main-navigation a:hover,
.primary-menu a:hover {
  color: var(--lr-orange);
}

/* Boutons */
.wp-block-button__link,
.button,
button[type="submit"] {
  background-color: var(--lr-vert) !important;
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s;
}
.wp-block-button__link:hover,
.button:hover {
  background-color: var(--lr-orange) !important;
}

/* Hero / bannière */
.wp-block-cover,
.hero-section {
  background-color: var(--lr-vert);
}

/* Cartes services */
.wp-block-group.service-card {
  background: #ffffff;
  border-left: 4px solid var(--lr-olive);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wp-block-group.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-left-color: var(--lr-orange);
}

/* Section fond naturel */
.section-fond {
  background-color: var(--lr-fond);
  padding: 4rem 0;
}

/* Liens */
a {
  color: var(--lr-olive);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 0.22s ease;
}
a:hover {
  color: var(--lr-orange);
}

/* =============================================
   CONTENU GLOBAL
   ============================================= */
.content-area,
.site-main,
.entry-content-wrap {
  position: relative;
}

.entry-content,
.wp-site-blocks {
  color: var(--lr-texte);
}

.entry-content > * + *,
.wp-block-group__inner-container > * + * {
  margin-top: 1.15rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--lr-vert);
}

.entry-content h2 {
  position: relative;
  padding-bottom: 0.45rem;
}

.entry-content h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lr-orange) 0%, var(--lr-olive) 100%);
}

.entry-content p,
.entry-content li {
  line-height: 1.8;
}

.entry-content ul li::marker,
.entry-content ol li::marker {
  color: var(--lr-orange);
}

.entry-content strong {
  color: var(--lr-vert);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--lr-orange);
  background: linear-gradient(
    135deg,
    rgba(248, 245, 240, 0.92) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border-radius: 0 10px 10px 0;
  box-shadow: var(--lr-ombre);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content hr,
.wp-block-separator {
  border-color: rgba(82, 121, 111, 0.35);
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--lr-ombre);
}

.entry-content table th,
.wp-block-table th {
  background: var(--lr-vert);
  color: #ffffff;
  font-weight: 700;
}

.entry-content table th,
.entry-content table td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(27, 67, 50, 0.08);
}

.entry-content table tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
  background: rgba(248, 245, 240, 0.85);
}

.entry-content img,
.entry-content .wp-block-image img {
  border-radius: 10px;
}

.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content .wp-block-media-text,
.entry-content .wp-block-cover,
.entry-content .wp-block-pullquote {
  border-radius: 12px;
}

.entry-content .wp-block-group:not(.alignfull):not(.has-background),
.entry-content .wp-block-columns:not(.alignfull) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(252, 250, 246, 0.96) 100%
  );
  border: 1px solid var(--lr-bordure);
  box-shadow: var(--lr-ombre);
  padding: 1.5rem;
}

.entry-content .wp-block-cover {
  overflow: hidden;
}

.entry-content .wp-block-pullquote {
  border-top: 3px solid var(--lr-orange);
  border-bottom: none;
  background: var(--lr-fond);
}

.entry-content .wp-block-button__link,
.entry-content .button,
.entry-content button,
.entry-content input[type="submit"] {
  background: linear-gradient(
    135deg,
    var(--lr-vert) 0%,
    #275840 100%
  ) !important;
  border: 1px solid rgba(27, 67, 50, 0.1);
  box-shadow: 0 10px 24px rgba(27, 67, 50, 0.16);
}

.entry-content .wp-block-button__link:hover,
.entry-content .button:hover,
.entry-content button:hover,
.entry-content input[type="submit"]:hover {
  background: linear-gradient(
    135deg,
    var(--lr-orange) 0%,
    #b85a25 100%
  ) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  border: 1px solid rgba(27, 67, 50, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(212, 106, 46, 0.65);
  box-shadow: 0 0 0 3px rgba(212, 106, 46, 0.12);
  outline: none;
}

.widget,
.sidebar .widget,
.wp-block-latest-posts,
.wp-block-categories,
.wp-block-archives {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(252, 250, 246, 0.96) 100%
  );
  border: 1px solid var(--lr-bordure);
  border-radius: 12px;
  box-shadow: var(--lr-ombre);
  padding: 1.25rem;
}

.widget-title,
.sidebar .widget-title {
  color: var(--lr-vert);
}

.page .entry-content,
.single .entry-content {
  padding-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: var(--lr-vert);
  color: #ffffff;
  padding: 2rem 0;
}
.site-footer a {
  color: #a8d5b5;
}
.site-footer a:hover {
  color: var(--lr-orange);
}

/* Séparateur coloré */
.wp-block-separator {
  border-color: var(--lr-olive);
}

/* =============================================
   CONTAINER GLOBAL
   ============================================= */
.lr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   FOOTER — design Halpes, toutes pages
   ============================================= */
.lr-footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(212, 106, 46, 0.08) 0, rgba(212, 106, 46, 0.08) 2px, transparent 2px),
    linear-gradient(135deg, rgba(16, 31, 25, 0.92) 0%, rgba(22, 43, 35, 0.9) 55%, rgba(29, 53, 44, 0.88) 100%),
    url("/wp-content/uploads/2020/09/Amboromalandy.jpg");
  background-size: auto, auto, cover;
  background-position: top left, center, center;
  color: rgba(255, 255, 255, 0.72);
  width: 100%;
  overflow: hidden;
}

.lr-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
    rgba(7, 15, 11, 0.46);
  pointer-events: none;
}

.lr-footer > * {
  position: relative;
  z-index: 1;
}

.lr-footer__top {
  padding: 5rem 0 4rem;
  display: block !important;
}

.lr-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.lr-footer__col h4 {
  font-family: var(--halpes-font-sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f4a562;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.lr-footer__col--brand .lr-footer__logo img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.lr-footer__col--brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.lr-footer__btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 999px;
  color: #1b4332 !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lr-footer__btn:hover {
  background: #d46a2e;
  border-color: #d46a2e;
  color: #fff !important;
}

.lr-footer__col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.lr-footer__col ul li {
  margin-bottom: 0.7rem;
}
.lr-footer__col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62) !important;
  text-decoration: none;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.lr-footer__col ul li a:hover {
  color: #f4a562 !important;
  padding-left: 4px;
}

/* Contact */
.lr-footer__contact {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.lr-footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}
.lr-footer__contact li:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
}

.lr-footer__contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 106, 46, 0.12);
  border: 1px solid rgba(212, 106, 46, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4a562;
}

.lr-footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.lr-footer__contact-text small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.44);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.lr-footer__contact-text strong {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* Newsletter */
.lr-footer__nl-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.lr-footer__nl-form {
  display: flex;
  margin-top: 0.5rem;
}
.lr-footer__nl-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  outline: none;
  border-radius: 3px 0 0 3px;
}
.lr-footer__nl-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.lr-footer__nl-form button {
  background: #d46a2e;
  color: #fff;
  border: none;
  padding: 0 1.2rem;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lr-footer__nl-form button:hover {
  background: #b85a25;
}

/* Sub-footer */
.lr-footer__bottom {
  background: rgba(5, 12, 9, 0.34);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lr-footer__bottom-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.lr-footer__bottom-inner > span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
  text-align: right;
}

.lr-footer__logo-sq {
  background: #d46a2e;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lr-footer__logo-sq span {
  color: #fff;
  font-family: var(--halpes-heading-font-family);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.lr-footer__social {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.lr-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.lr-footer__social a:hover {
  background: #d46a2e;
  border-color: #d46a2e;
  color: #fff !important;
}

@media (max-width: 900px) {
  .lr-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .lr-footer__grid {
    grid-template-columns: 1fr;
  }
  .lr-footer__bottom-inner > span {
    text-align: left;
    flex: 100%;
  }
}

/* =============================================
   MENU NAVIGATION
   ============================================= */
.primary-menu > li > a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem !important;
  color: #2d3748 !important;
  transition: color 0.2s;
}

.primary-menu > li > a:hover {
  color: #d46a2e !important;
}

.primary-menu > li.current-menu-item > a {
  color: #1b4332 !important;
  border-bottom: 2px solid #d46a2e;
}

/* Sous-menu */
.primary-menu .sub-menu {
  background: #ffffff;
  border-top: 3px solid #1b4332;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
}

.primary-menu .sub-menu a {
  color: #2d3748 !important;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem !important;
}

.primary-menu .sub-menu a:hover {
  color: #d46a2e !important;
  background-color: #f8f5f0;
}

/* Logo dans le header */
.site-branding .site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1b4332;
}

/* ── Full-bleed heroes — sortent du container Kadence ── */
.lrp-hero,
.lr-post-hero,
.lr-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ── Override Kadence content-width limit ── */
/* Kadence injecte max-width via .site-container — on force 1440px partout */
.site-container,
.content-container.site-container,
.content-width-narrow .content-container.site-container,
.content-width-narrow .hero-container.site-container {
  max-width: 1440px !important;
}
/* Supprimer les boîtes blanches sur single */
.single-entry,
.entry.single-entry {
  box-shadow: none !important;
}
.entry-content-wrap {
  padding: 0 !important;
}
.lr-single-wrap .entry-content-wrap,
.lr-single-wrap .content-container {
  max-width: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
