/*
Theme Name: UPC Theme
Theme URI: https://uneplaceencreche.fr
Author: uneplaceencreche.fr
Description: Thème sur mesure — style neumorphisme + charte Babilou
Version: 1.0
Text Domain: upc-theme
*/

/* ============================================================
   DESIGN SYSTEM — Variables CSS globales
   ============================================================ */
:root {
  /* Base neumorphisme */
  --bg:            #EEF0F5;
  --neu-light:     #FFFFFF;
  --neu-dark:      #C8CAD4;
  --neu-sm:        5px 5px 12px #C8CAD4, -5px -5px 12px #FFFFFF;
  --neu-md:        9px 9px 20px #C8CAD4, -9px -9px 20px #FFFFFF;
  --neu-lg:        14px 14px 32px #C2C4CF, -14px -14px 32px #FFFFFF;
  --neu-inset:     inset 5px 5px 12px #C8CAD4, inset -5px -5px 12px #FFFFFF;
  --neu-inset-act: inset 7px 7px 16px #B8BACC, inset -2px -2px 6px #FFFFFF;

  /* Couleurs Babilou */
  --violet:    #5B2D8E;
  --violet-l:  #EDE5F6;
  --violet-d:  #3E1E63;
  --orange:    #F07D00;
  --orange-l:  #FEF0DC;
  --orange-d:  #C46300;
  --green:     #00A88F;
  --green-l:   #E0F6F3;
  --green-d:   #007A69;
  --pink:      #E5006A;
  --pink-l:    #FCE0EE;
  --yellow:    #FFD200;
  --yellow-l:  #FFF9CC;
  --blue:      #0072CE;
  --blue-l:    #E0EFFC;

  /* Texte */
  --text-1: #1A1A2E;
  --text-2: #5A5A7A;
  --text-3: #A0A0BC;

  /* Rayons */
  --r-sm:   14px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   36px;
  --r-pill: 100px;

  /* Typo */
  --f:     'Nunito', sans-serif;
  --f-acc: 'Playfair Display', serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: var(--f);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
  text-decoration: none;
  transition: opacity .2s;
}
a:hover { opacity: .8; }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
h4 { font-size: 18px; }

h1 em, h2 em {
  font-family: var(--f-acc);
  font-style: italic;
  color: var(--violet);
  font-weight: 600;
}

p {
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.7;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.upc-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 44px;
}

.upc-section {
  padding: 64px 44px;
  max-width: 1140px;
  margin: 0 auto;
}

.upc-section-title {
  text-align: center;
  margin-bottom: 8px;
}

.upc-section-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.upc-section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 46px;
  font-weight: 500;
}

/* ============================================================
   COMPOSANTS NEUMORPHIQUES
   ============================================================ */

/* Carte raised */
.neu-card {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--neu-md);
  padding: 30px;
  transition: box-shadow .25s, transform .25s;
}
.neu-card:hover {
  box-shadow: var(--neu-lg);
  transform: translateY(-4px);
}

/* Carte inset (creux) */
.neu-inset {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--neu-inset);
  padding: 26px 40px;
}

/* Badge pill raised */
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--neu-sm);
  font-size: 12px;
  font-weight: 700;
}

/* Input inset */
.neu-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--neu-inset);
}
.neu-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: var(--f);
  font-weight: 500;
  color: var(--text-1);
  outline: none;
}
.neu-input input::placeholder { color: var(--text-3); font-weight: 400; }

/* Groupe logins inset */
.neu-logins {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: var(--r-pill);
  box-shadow: var(--neu-inset);
}

/* Sous-onglets inset */
.neu-tabs {
  display: flex;
  gap: 3px;
  padding: 5px;
  border-radius: var(--r-md);
  box-shadow: var(--neu-inset);
}
.neu-tab {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 11px;
  font-family: var(--f);
  transition: all .2s;
  text-align: center;
}
.neu-tab.active {
  background: var(--bg);
  box-shadow: var(--neu-sm);
  color: var(--orange-d);
  font-weight: 800;
}

/* Séparateur vertical */
.neu-sep {
  width: 1px;
  background: var(--neu-dark);
  opacity: .5;
  align-self: stretch;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--f);
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 3px 3px 10px rgba(91,45,142,.42), -2px -2px 6px rgba(255,255,255,.7);
}
.btn-violet:hover {
  box-shadow: 5px 5px 14px rgba(91,45,142,.52), -2px -2px 6px rgba(255,255,255,.7);
  color: #fff;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 10px rgba(240,125,0,.42), -2px -2px 6px rgba(255,255,255,.7);
}
.btn-orange:hover {
  box-shadow: 5px 5px 14px rgba(240,125,0,.52), -2px -2px 6px rgba(255,255,255,.7);
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 3px 3px 10px rgba(0,168,143,.42), -2px -2px 6px rgba(255,255,255,.7);
}
.btn-green:hover {
  box-shadow: 5px 5px 14px rgba(0,168,143,.52), -2px -2px 6px rgba(255,255,255,.7);
  color: #fff;
}

.btn-ghost {
  background: var(--bg);
  color: var(--text-2);
  box-shadow: var(--neu-sm);
  font-size: 12px;
  padding: 10px 18px;
}
.btn-ghost:hover {
  box-shadow: var(--neu-md);
  color: var(--text-1);
}

.btn-pill {
  border-radius: var(--r-pill);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
  border-radius: var(--r-pill);
}

.btn-full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.upc-nav {
  background: var(--bg);
  box-shadow: 0 5px 16px rgba(200,202,212,.65);
  padding: 0 44px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.upc-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.upc-logo-orb {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--violet);
  box-shadow: var(--neu-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.upc-logo-text { line-height: 1.1; }
.upc-logo-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  display: block;
}
.upc-logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .05em;
  display: block;
}

.upc-nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.upc-nav-link {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--f);
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.upc-nav-link:hover {
  box-shadow: var(--neu-sm);
  color: var(--text-1);
}
.upc-nav-link.current {
  color: var(--violet);
  font-weight: 700;
}

.upc-login-btn {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: var(--f);
  transition: all .2s;
  white-space: nowrap;
}
.upc-login-btn:hover {
  box-shadow: var(--neu-sm);
  color: var(--text-1);
  background: var(--bg);
}
.upc-login-btn.active {
  background: var(--bg);
  box-shadow: var(--neu-sm);
  color: var(--violet);
  font-weight: 800;
}

.upc-nav-cta {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 4px 4px 12px rgba(240,125,0,.42), -2px -2px 8px rgba(255,255,255,.6);
  font-family: var(--f);
  margin-left: 10px;
  transition: all .2s;
  text-decoration: none;
}
.upc-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 6px 6px 16px rgba(240,125,0,.52), -2px -2px 8px rgba(255,255,255,.6);
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.upc-footer {
  padding: 28px 44px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(200,202,212,.5);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}
.upc-footer a { color: var(--violet); font-weight: 700; }

/* ============================================================
   CARTES PROFILS — barre de couleur top + gradient
   ============================================================ */
.upc-profile-card {
  position: relative;
  overflow: hidden;
}
.upc-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.upc-profile-card.variant-violet::before {
  background: linear-gradient(90deg, var(--violet), var(--pink));
}
.upc-profile-card.variant-green::before {
  background: linear-gradient(90deg, var(--green), var(--yellow));
}
.upc-profile-card.variant-orange::before {
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.upc-profile-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  box-shadow: var(--neu-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.upc-feat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upc-feat {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.upc-feat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Grid 2 boutons côte à côte */
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ============================================================
   TRUST BAND
   ============================================================ */
.upc-trust-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--violet);
  text-align: center;
}
.upc-trust-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   ÉTAPES "COMMENT ÇA MARCHE"
   ============================================================ */
.upc-step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  box-shadow: var(--neu-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--violet);
}

/* ============================================================
   GRIDS UTILITAIRES
   ============================================================ */
.upc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.upc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.upc-grid-hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .upc-grid-hero {
    grid-template-columns: 1fr;
  }
  .upc-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .upc-container,
  .upc-section,
  .upc-nav,
  .upc-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 680px) {
  .upc-grid-3,
  .upc-grid-2 {
    grid-template-columns: 1fr;
  }
  .upc-nav-center {
    display: none; /* menu burger à implémenter */
  }
  .upc-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  h1 { font-size: 32px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.text-violet { color: var(--violet); }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-3); }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }

.w-full { width: 100%; }

/* WordPress specifics */
.wp-block-image { margin: 0; }
.aligncenter { text-align: center; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
