/*
Theme Name: Parteja
Theme URI: https://parteja.net
Author: Parteja
Author URI: https://parteja.net
Description: Thème Full-Site Editing pour l'agence numérique Parteja — au service de l'intérêt général.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parteja
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ═══════════════════════════════════════════════════════════
   RESET & GLOBAUX
═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.wp-element-button,
.wp-block-button__link {
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.18s, transform 0.15s;
}
.wp-element-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Forcer les sections pleine largeur à déborder du conteneur WP */
.wp-block-group.alignfull {
  width: 100%;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */

.wp-block-navigation a {
  text-decoration: none;
  font-weight: 500;
  color: #0C1631;
  transition: color 0.15s;
}
.wp-block-navigation a:hover {
  color: #0066FF;
}

.wp-block-site-title a {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0066FF;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */

.parteja-hero {
  background: linear-gradient(160deg, #F0F5FF 0%, #F7F9FF 60%, #EEF2FF 100%);
  padding: 9rem 6vw 5rem !important;
  text-align: center;
}

/* Badge "agence numérique engagée" */
.parteja-badge {
  display: inline-block;
  background: rgba(0, 102, 255, 0.07);
  border: 1px solid rgba(0, 102, 255, 0.18);
  color: #0066FF !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 40px;
  margin-bottom: 1.5rem !important;
}

/* Titre principal */
.parteja-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: #0C1631 !important;
  margin-bottom: 1.5rem !important;
}

.parteja-hero-title mark {
  background: none;
  color: #0066FF;
}

.parteja-hero-title .has-primary-color {
  color: #0066FF;
}

/* Sous-titre */
.parteja-hero-sub {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: #5A6A8E !important;
  max-width: 600px;
  margin: 0 auto 2.5rem !important;
}

/* Boutons hero */
.parteja-hero-btns {
  justify-content: center !important;
  gap: 1rem !important;
  flex-wrap: wrap;
  margin-bottom: 3.5rem !important;
}

.parteja-btn-primary .wp-block-button__link {
  background: #0066FF !important;
  color: #fff !important;
  border-radius: 40px !important;
  font-weight: 700 !important;
  padding: 0.8rem 2rem !important;
  transition: background 0.18s, transform 0.15s !important;
}
.parteja-btn-primary .wp-block-button__link:hover {
  background: #0047CC !important;
  transform: translateY(-2px);
}

.parteja-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: #0066FF !important;
  border: 2px solid #0066FF !important;
  border-radius: 40px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.75rem !important;
  transition: background 0.18s, color 0.18s, transform 0.15s !important;
}
.parteja-btn-outline .wp-block-button__link:hover {
  background: #0066FF !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Stats 80+ / 95% / 8 ans / 40+ */
.parteja-stats-row {
  border-top: 1px solid rgba(12, 22, 49, 0.1);
  padding-top: 2.5rem !important;
  margin-top: 0.5rem !important;
  gap: 0 !important;
}

.parteja-stat {
  border-right: 1px solid rgba(12, 22, 49, 0.08);
  padding: 0 1rem;
}
.parteja-stat:last-child {
  border-right: none;
}

.parteja-stat-num {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #0066FF !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.parteja-stat-label {
  font-size: 0.8rem !important;
  color: #5A6A8E !important;
  margin: 0.25rem 0 0 !important;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   BANDE CLIENTS
═══════════════════════════════════════════════════════════ */

.parteja-clients {
  background: #fff !important;
  padding: 2.5rem 6vw !important;
  border-bottom: 1px solid rgba(12, 22, 49, 0.06);
}

.parteja-clients-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #5A6A8E !important;
  margin-bottom: 1.5rem !important;
}

.parteja-clients-row {
  gap: 0.5rem 1rem !important;
}

.parteja-client {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #3A4B6E !important;
  padding: 0.4rem 1.2rem !important;
  background: #F7F9FF !important;
  border: 1px solid rgba(12, 22, 49, 0.07) !important;
  border-radius: 40px !important;
  margin: 0 !important;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS GÉNÉRIQUES
═══════════════════════════════════════════════════════════ */

.parteja-section-light {
  background: #F7F9FF !important;
  padding: 5rem 6vw !important;
}

.parteja-section-alt {
  background: #EEF2FF !important;
  padding: 5rem 6vw !important;
}

/* En-tête de section (titre à gauche + bouton à droite) */
.parteja-section-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  margin-bottom: 3rem !important;
}

/* En-tête de section centré */
.parteja-section-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem !important;
}
.parteja-section-center p,
.parteja-section-center h2 {
  text-align: center;
}

/* Label "Nos services" / "Notre méthode" */
.parteja-label {
  display: inline-block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #0066FF !important;
  background: rgba(0, 102, 255, 0.07) !important;
  border: 1px solid rgba(0, 102, 255, 0.14) !important;
  padding: 0.3rem 0.9rem !important;
  border-radius: 40px !important;
  margin-bottom: 1rem !important;
}

/* Titres de section */
.parteja-section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
  color: #0C1631 !important;
  margin: 0 0 0.75rem !important;
}

/* Sous-titre de section */
.parteja-section-sub {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #5A6A8E !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   CARTES SERVICES
═══════════════════════════════════════════════════════════ */

.parteja-cards-grid {
  gap: 1.5rem !important;
}

.parteja-card {
  background: #fff !important;
  border: 1.5px solid rgba(12, 22, 49, 0.07) !important;
  border-radius: 20px !important;
  padding: 2rem 1.75rem !important;
  box-shadow: 0 2px 16px rgba(12, 22, 49, 0.05) !important;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.parteja-card:hover {
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1) !important;
  transform: translateY(-3px);
}

.parteja-card-icon {
  font-size: 2rem !important;
  margin: 0 0 1rem !important;
  line-height: 1 !important;
}

.parteja-card-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #0C1631 !important;
  margin: 0 0 0.75rem !important;
  line-height: 1.3 !important;
}

.parteja-card-desc {
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  color: #5A6A8E !important;
  margin: 0 0 1.25rem !important;
}

.parteja-card-link {
  margin: 0 !important;
}
.parteja-card-link a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0066FF;
  text-decoration: none;
  transition: gap 0.15s;
}
.parteja-card-link a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   ÉTAPES DE PROCESSUS
═══════════════════════════════════════════════════════════ */

.parteja-steps {
  gap: 2rem !important;
  counter-reset: steps;
}

.parteja-step {
  text-align: center;
  padding: 0 1rem;
}

.parteja-step-num {
  width: 3rem;
  height: 3rem;
  background: #0066FF !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 3rem !important;
  margin: 0 auto 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.parteja-step-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0C1631 !important;
  margin: 0 0 0.6rem !important;
}

.parteja-step-desc {
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: #5A6A8E !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   CARTES RÉFÉRENCES
═══════════════════════════════════════════════════════════ */

.wp-block-post-template {
  gap: 1.5rem !important;
}

.parteja-ref-card {
  background: #fff !important;
  border: 1.5px solid rgba(12, 22, 49, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 24px rgba(12, 22, 49, 0.06) !important;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex !important;
  flex-direction: column !important;
}
.parteja-ref-card:hover {
  box-shadow: 0 8px 36px rgba(0, 102, 255, 0.1) !important;
  transform: translateY(-3px);
}

.parteja-ref-thumb .wp-block-post-featured-image img,
.parteja-ref-card .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
}

.parteja-ref-body {
  padding: 1.5rem 1.6rem 1.75rem !important;
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.parteja-ref-cat .wp-block-post-terms,
.parteja-ref-cat {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #0066FF !important;
  margin: 0 !important;
}
.parteja-ref-cat a {
  color: #0066FF;
  text-decoration: none;
}

.parteja-ref-title .wp-block-post-title,
.parteja-ref-title {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #0C1631 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.parteja-ref-title a,
.parteja-ref-title .wp-block-post-title a {
  color: #0C1631 !important;
  text-decoration: none;
  transition: color 0.15s;
}
.parteja-ref-title a:hover,
.parteja-ref-title .wp-block-post-title a:hover {
  color: #0066FF !important;
}

.parteja-ref-excerpt .wp-block-post-excerpt,
.parteja-ref-excerpt {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  color: #5A6A8E !important;
  margin: 0 !important;
  flex: 1;
}

.parteja-read-more .wp-block-read-more,
.parteja-read-more {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #0066FF !important;
  text-decoration: none !important;
  margin-top: auto !important;
  display: inline-block;
  transition: gap 0.15s;
}
.parteja-read-more .wp-block-read-more:hover,
.parteja-read-more:hover {
  text-decoration: underline !important;
}

.parteja-no-results {
  text-align: center;
  color: #5A6A8E;
  padding: 3rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   TÉMOIGNAGES
═══════════════════════════════════════════════════════════ */

.parteja-testi-grid {
  gap: 1.5rem !important;
}

.parteja-testi-card {
  background: #fff !important;
  border: 1.5px solid rgba(12, 22, 49, 0.07) !important;
  border-radius: 20px !important;
  padding: 2rem 1.75rem !important;
  box-shadow: 0 2px 16px rgba(12, 22, 49, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.parteja-stars {
  color: #F59E0B !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
  margin: 0 !important;
}

.parteja-testi-text {
  font-size: 0.93rem !important;
  line-height: 1.7 !important;
  color: #3A4B6E !important;
  font-style: italic;
  flex: 1;
  margin: 0 !important;
}

.parteja-testi-author {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #0C1631 !important;
  margin: 0 !important;
}

.parteja-testi-role {
  font-weight: 400;
  color: #5A6A8E;
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════════ */

.parteja-section-cta {
  background: linear-gradient(135deg, #051A40 0%, #0047CC 60%, #0066FF 100%) !important;
  padding: 5rem 6vw !important;
}

.parteja-section-cta .parteja-label {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.parteja-section-cta .parteja-section-title {
  color: #fff !important;
}

.parteja-section-cta .parteja-section-sub {
  color: rgba(255, 255, 255, 0.8) !important;
}

.parteja-cta-box {
  max-width: 680px;
  margin: 0 auto !important;
}

/* Bouton outline blanc dans le CTA */
.parteja-section-cta .parteja-btn-outline .wp-block-button__link {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}
.parteja-section-cta .parteja-btn-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   LOGOS CLIENTS
═══════════════════════════════════════════════════════════ */

.parteja-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.5rem 0;
}

.plogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(12, 22, 49, 0.09);
  border-radius: 14px;
  color: #0C1631;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.25s, filter 0.25s, box-shadow 0.25s;
  cursor: default;
}
.plogo:hover {
  opacity: 1;
  filter: grayscale(0);
  box-shadow: 0 4px 18px rgba(12, 22, 49, 0.08);
}
.plogo svg {
  display: block;
  height: 44px;
  width: auto;
}

/* ═══════════════════════════════════════════════════════════
   IMAGES & MÉDIAS
═══════════════════════════════════════════════════════════ */

.wp-block-post-featured-image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.wp-block-post-terms a {
  text-decoration: none;
  color: inherit;
}
.wp-block-post-terms a:hover {
  text-decoration: underline;
}

.wp-block-read-more {
  text-decoration: none;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .parteja-hero {
    padding: 5.5rem 5vw 4rem !important;
  }

  .parteja-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .parteja-steps,
  .parteja-cards-grid,
  .parteja-testi-grid {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 640px) {
  .parteja-hero {
    padding: 4.5rem 1.25rem 3rem !important;
  }

  .parteja-hero-title {
    font-size: 2rem !important;
  }

  .parteja-stats-row {
    flex-wrap: wrap !important;
  }
  .parteja-stat {
    min-width: 45%;
    border-right: none !important;
    border-bottom: 1px solid rgba(12, 22, 49, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .parteja-clients-row {
    justify-content: flex-start !important;
  }

  .parteja-section-light,
  .parteja-section-alt,
  .parteja-section-cta {
    padding: 3rem 1.25rem !important;
  }

  .parteja-hero-btns {
    flex-direction: column !important;
    align-items: center !important;
  }

  .wp-block-navigation__responsive-container {
    padding: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO VARIANTES
═══════════════════════════════════════════════════════════ */

/* Hero plus compact pour pages intérieures */
.parteja-hero-sm {
  padding: 8rem 6vw 4rem !important;
}
.parteja-hero-local {
  padding: 9rem 6vw 5rem !important;
}

/* ═══════════════════════════════════════════════════════════
   PAGE CONTACT
═══════════════════════════════════════════════════════════ */

.parteja-contact-cols {
  align-items: flex-start !important;
  gap: 3rem !important;
}

.parteja-contact-form-wrap {
  padding: 2.5rem !important;
}

.parteja-contact-form-title {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #0C1631 !important;
  margin: 0 0 1.5rem !important;
}

/* Formulaire */
.parteja-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pf-row {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pf-row--2 {
  flex-direction: row;
  gap: 1rem;
}

.pf-row--rgpd {
  padding: 0.5rem 0;
}

.pf-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.pf-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0C1631;
  letter-spacing: 0.01em;
}

.pf-req {
  color: #0066FF;
}

.pf-field input,
.pf-field select,
.pf-field textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(12, 22, 49, 0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0C1631;
  background: #F7F9FF;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  background: #fff;
}

.pf-field textarea {
  resize: vertical;
  min-height: 120px;
}

.pf-field select {
  cursor: pointer;
  appearance: auto;
}

.pf-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #5A6A8E;
  line-height: 1.5;
  cursor: pointer;
}

.pf-checkbox input {
  width: auto !important;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0066FF;
}

.pf-checkbox a {
  color: #0066FF;
}

.pf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0066FF;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 0.85rem 2.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  align-self: flex-start;
}

.pf-submit:hover {
  background: #0047CC;
  transform: translateY(-2px);
}

/* Infos contact sidebar */
.parteja-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.parteja-contact-info-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #0C1631 !important;
  margin: 0 !important;
}

.parteja-contact-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
}

.parteja-contact-icon {
  font-size: 1.2rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.parteja-contact-item-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #5A6A8E !important;
  margin: 0 !important;
}

.parteja-contact-item-value {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #0C1631 !important;
  margin: 0.1rem 0 0 !important;
}

.parteja-contact-item-value a {
  color: #0066FF;
  text-decoration: none;
}
.parteja-contact-item-value a:hover {
  text-decoration: underline;
}

.parteja-contact-sep {
  border: none !important;
  border-top: 1px solid rgba(12, 22, 49, 0.1) !important;
  margin: 0.5rem 0 !important;
}

.parteja-contact-note {
  font-size: 0.85rem !important;
  color: #5A6A8E !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Témoignage en pleine largeur */
.parteja-testi-featured {
  max-width: 780px;
  margin: 0 auto !important;
  text-align: center;
}
.parteja-testi-featured .parteja-stars {
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .pf-row--2 {
    flex-direction: column;
  }

  .parteja-contact-cols {
    flex-direction: column !important;
    gap: 2rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   UTILITAIRES
═══════════════════════════════════════════════════════════ */

.no-margin { margin: 0 !important; }
