/*
Theme Name: VTR8 Theme
Author: Antso Ulrick Amour RAKOTOMALALA
Author URI: https://www.linkedin.com/in/antso-rakotomalala/ 
Description: Thème WordPress éditorial pour vtr8.org, compatible ACF.
Version: 1.0.0
Requires at least: 7.1.2
Requires PHP: 8.2
Text Domain: vtr8-theme
*/
:root {
  --paper: #f3f0e8;
  --paper2: #e8e3d8;
  --ink: #202522;
  --muted: #74766f;
  --green: #174a3a;
  --yellow: #e6b83f;
  --red: #c73a32;
  --white: oklch(100% 0 0);
  --line: #cfcac0;
  --snow: #f4f6f8;
  --navyblue: #003366;
  --darkblue: #1e293b;
  --orange: #ff6115;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --border: #d6d0c5;
  --neon: #ff6115;
  --color-stone-500: oklch(55.3% 0.013 58.071);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* background: var(--paper); */
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: var(--white);
  backdrop-filter: blur(10px);
  /*
  background: #f3f0e8e8;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  */
}

.site-header .container {
  width: 80%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0 24px;
}

.picto-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.picto-panneau {
  background: var(--navyblue);
  color: var(--white);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.logo {
  margin: 0.5rem;
}

.brand {
  font: 700 1.55rem/1 var(--sans);
  letter-spacing: -0.08em;
  color: var(--navyblue);
  display: flex;
}

.brand b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  /* background: var(--green); */
  color: white;
  border-radius: 50%;
  width: 1.25em;
  height: 1.25em;
  font-size: 0.75em;
  margin-left: 0.08em;
  display: flex;
  align-items: center;
  line-height: 1.25em;
}

.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a {
  color: var(--navyblue);
  position: relative;
}

.main-nav a:hover {
  color: var(--orange);
}

.main-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  /* background: var(--green); */
  background: var(--orange);
  transition: 0.25s;
}

.main-nav a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: 600 0.75rem var(--sans);
}

/*CONTENT*/
section .row {
  width: 80%;
  margin: 0 auto;
}

/*END CONTENT*/
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #89917d;
}

footer {
  background: var(--ink);
  color: #e8e5dc;
  padding: 5rem 8vw;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font: 700 1.6rem var(--sans);
}

footer p {
  margin: 0;
  color: #aaa;
}

footer nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
}

footer small {
  color: #888;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 78px;
    right: 5vw;
    flex-direction: column;
    background: var(--paper);
    padding: 1.2rem 1.5rem;
    box-shadow: 0 8px 25px #0001;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 7vw;
  }

  footer nav {
    grid-column: 1/-1;
    order: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }

  .story-image:before,
  .route-link span {
    transition: none;
  }
}

/* HERO */
/* ==========================================================================
   VTR8 — Styles du Hero Slider
   ========================================================================== */
.site-container.hero_layout {
  width: 100%;
  max-width: unset;
  padding: 0;
}
.vtr8-hero-wrapper {
  position: relative;
  background-color: #121417;
  overflow: hidden;
  margin-top: 46px;
}

.vtr8-slide {
  position: relative;
  min-height: 580px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  outline: none;
}

/* 1. Gestion des ambiances (ACF theme) */
.vtr8-theme-dark {
  background-color: #121417;
  color: #ffffff;
}

.vtr8-theme-green {
  background-color: #063a27;
  color: #ffffff;
}

.vtr8-theme-light {
  background-color: #f4f1ea;
  color: #1c1917;
}

/* 2. Image d'arrière-plan et filtres (Scrims) */
.vtr8-slide-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.vtr8-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slick-current .vtr8-slide-bg {
  transform: scale(1.03);
}

.vtr8-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 20, 23, 0.94) 0%,
    rgba(18, 20, 23, 0.7) 50%,
    rgba(18, 20, 23, 0.2) 100%
  );
}

.vtr8-theme-green .vtr8-slide-scrim {
  background: linear-gradient(
    to right,
    rgba(6, 58, 39, 0.95) 0%,
    rgba(6, 58, 39, 0.72) 50%,
    rgba(6, 58, 39, 0.25) 100%
  );
}

.vtr8-theme-light .vtr8-slide-scrim {
  background: linear-gradient(
    to right,
    rgba(244, 241, 234, 0.96) 0%,
    rgba(244, 241, 234, 0.75) 50%,
    rgba(244, 241, 234, 0.3) 100%
  );
}

/* 3. Contenu textuel */
.vtr8-slide-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
}

.vtr8-slide-inner {
  max-width: 820px;
}

.vtr8-slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.vtr8-theme-dark .vtr8-eyebrow {
  color: var(--neon);
}

.vtr8-theme-green .vtr8-eyebrow {
  color: #6ee7b7;
}

.vtr8-theme-light .vtr8-eyebrow {
  color: #064e3b;
}

.vtr8-slide-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  line-height: 1.18;
  font-weight: 400;
  margin-bottom: 20px;
  text-wrap: auto;
}

.vtr8-slide-text {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* 4. Boutons d'action */
.vtr8-slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vtr8-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  background-color: #ffffff;
  color: #121417;
  transition: opacity 0.2s ease;
}

.vtr8-slide-btn:hover {
  opacity: 0.9;
}

.vtr8-theme-light .vtr8-slide-btn {
  background-color: #1c1917;
  color: #ffffff;
}

.vtr8-theme-indicator {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  opacity: 0.65;
  letter-spacing: 0.1em;
}

/* 5. Pagination Slick & Flèches */
.vtr8-hero-slider .slick-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 8px;
  list-style: none;
  z-index: 20;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.vtr8-hero-slider .slick-dots li button {
  background: rgba(0, 0, 0, 1);
  border: 1px solid rgba(31, 240, 12, 0.1);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtr8-hero-slider .slick-dots li button:before {
  display: none;
}

.vtr8-hero-slider .slick-dots li.slick-active button {
  background: rgba(3, 53, 11, 1);
  border: 1px solid rgba(31, 240, 12, 1);
  font-weight: 700;
}

.slick-custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 44px;
  height: 44px;
  background: rgba(18, 20, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.slick-custom-arrow:hover {
  background: rgba(18, 20, 23, 0.95);
}

.slick-custom-prev {
  left: 20px;
}

.slick-custom-next {
  right: 20px;
}

.slick-dotted.slick-slider {
  margin-bottom: unset !important;
}

@media (max-width: 768px) {
  .slick-custom-arrow {
    display: none !important;
  }
}

/* END HERO */

/*TEXTE_ET_IMAGE*/
.section-wrap {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.feature-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.sec-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  font-weight: 700;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: normal;
  margin-top: 4px;
}

.feature-img-box {
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1c1917;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec-kicker {
  font-size: clamp(0.7rem, 1vw, 1rem);
  letter-spacing: 0.15em;
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 12px;
}

.sec-title {
  font-size: 2.2rem;
  font-weight: normal;
  margin-top: 4px;
  margin-bottom: 16px;
}

.texte_et_image p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

.slide-action-btn {
  background: #1c1917;
  color: #fff;
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

section.right .text-box {
  order: 1;
}
section.right .feature-img-box {
  order: 2;
}
section.left .text-box {
  order: 2;
}
section.left .feature-img-box {
  order: 1;
}
/*END TEXTE_ET_IMAGE*/

/*TEXTE_3_COLONNES*/
.section-texte_3_colonnes {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}
.site-container.texte_3_colonnes {
  background: var(--darkblue);
  width: 100%;
  max-width: unset;
  color: var(--white);
  padding: 20px;
}
.col2 p {
  color: var(--yellow);
  padding: 10px 20px;
  background: #000;
  border-radius: 20px;
  font-size: clamp(0.7rem, 1vw, 1rem);
}
.col3 em {
  font-size: 0.8em;
}
@media (min-width: 768px) {
  .section-texte_3_colonnes {
    grid-template-columns: repeat(3, 1fr); /* Passe à 3 colonnes égales */
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1200px;
  }
  .site-container.texte_3_colonnes {
    padding: 0;
  }
}
/* END TEXTE_3_COLONNES*/

/*SECTION TERRITOIRE*/
.section-header-section_territoire {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.sec-ref {
  color: var(--muted);
  font-size: 0.8em;
}

.vtr8-ancrage {
  text-align: center;
  margin: 60px 0;
  border: 1px solid var(--border);
  box-shadow:
    1px 1px 10px var(--border),
    -1px -1px 10px var(--border);
}

.vtr8-ancrage__head {
  background: #2c4f34;
  padding: 20px 10px;
  color: var(--white);
}

.vtr8-ancrage__label {
  color: oklch(84.5% 0.143 164.978);
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
}

.vtr8-ancrage__titre {
  font-size: 1.25rem;
  line-height: calc(2 / 1.25);
}

.vtr8-ancrage__items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
  grid-gap: 1rem;
}

.vtr8-ancrage__item {
  border: 1px solid var(--border);
  background: #faf8f5;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
}

.vtr8-ancrage__lien {
  display: flex;
  flex-direction: column;
  padding: 1em;
}

.vtr8-piliers {
  display: grid;
  grid-template-columns: 1fr;
}
.vtr8-piliers__item {
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.vtr8-piliers__item.vert:hover {
  border: 1px solid var(--green);
}
.vtr8-piliers__item.orange:hover {
  border: 1px solid var(--orange);
}
.vtr8-piliers__item.bleu:hover {
  border: 1px solid var(--navyblue);
}
.vtr8-piliers__item.vert .vtr8-piliers__head {
  background: var(--green);
}
.vtr8-piliers__item.orange .vtr8-piliers__head {
  background: var(--orange);
}
.vtr8-piliers__item.bleu .vtr8-piliers__head {
  background: var(--navyblue);
}

.vtr8-piliers__head {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: space-between;
  align-items: center;
}

.vtr8-piliers__item .vtr8-piliers__head,
.vtr8-piliers__body,
.vtr8-piliers__footer {
  padding: 0.5rem;
}

.vtr8-icon {
  background: var(--white);
  border-radius: 50%;
  margin: 0 1rem;
  color: var(--orange);
}
.vtr8-piliers__titre {
  text-align: center;
  margin: 0.5rem;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}
.vtr8-piliers__numero {
  margin: 0.5rem;
  text-align: center;
  color: var(--snow);
}

.vtr8-piliers__body p {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-stone-500);
}
.vtr8-piliers__body ul {
  padding-left: 1rem;
  font-weight: bold;
}
.vtr8-piliers__item.vert .vtr8-piliers__body li::marker {
  color: var(--green);
  font-size: 1.25em;
}
.vtr8-piliers__item.orange .vtr8-piliers__body li::marker {
  color: var(--orange);
  font-size: 1.25em;
}
.vtr8-piliers__item.bleu .vtr8-piliers__body li::marker {
  color: var(--navyblue);
  font-size: 1.25em;
}
.vtr8-piliers__body {
  border-bottom: 1px solid var(--border);
}
.vtr8-piliers__item.vert .vtr8-piliers__footer {
  color: var(--green);
}
.vtr8-piliers__item.orange .vtr8-piliers__footer {
  color: var(--orange);
}
.vtr8-piliers__item.bleu .vtr8-piliers__footer {
  color: var(--navyblue);
}
.vtr8-piliers__footer {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  font-size: 0.75rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .section-header-section_territoire {
    grid-template-columns: auto auto;
    justify-content: space-between;
    text-align: unset;
  }
  .vtr8-ancrage {
    margin: 60px auto;
    width: 80%;
  }
  .vtr8-ancrage__items {
    grid-template-columns: repeat(4, 1fr);
  }
  .vtr8-piliers {
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 1rem;
  }
  .vtr8-piliers__head {
    grid-template-columns: auto auto;
  }
  .vtr8-piliers__item {
    display: grid;
    grid-template-rows: 70px auto 60px;
  }
}

/* END SECTION TERRITOIRE*/
