/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Description: Child theme Astra — Portfolio Yann RES
Author: Yann RES
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* ============================================
   VARIABLES CSS — Charte identité Yann RES
   ============================================ */
:root {
  /* Couleurs principales */
  --vert-signature:     #28674E;
  --vert-medium:        #3A8F6E;
  --vert-clair:         #52B28A;
  --vert-accent:        #70AD47;

  /* Niveaux compétences */
  --niveau-guide:       #C00000;
  --niveau-guide-ops:   #ED7D31;
  --niveau-ops:         #FFC000;
  --niveau-ops-auto:    #70AD47;
  --niveau-autonome:    #00BFFF;
  --niveau-expert:      #DCB228;

  /* Tags projets */
  --tag-perso:          #6A4C93;
  --tag-perso-bg:       #ede8f5;

  /* Fonds */
  --fond-page:          #f7f8f6;
  --fond-carte:         #ffffff;
  --fond-header:        #28674E;

  /* Bordures */
  --bordure:            #e2e8e3;

  /* Texte */
  --texte-principal:    #111111;
  --texte-secondaire:   #4b5563;
  --texte-muted:        #6b7280;
  --texte-leger:        #9ca3af;

  /* Typographie */
  --font-principale:    'Poppins', sans-serif;

  /* Espacements */
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          14px;
  --radius-pill:        999px;
}

/* ============================================
   BASE
   ============================================ */
body {
  font-family: var(--font-principale);
  background-color: var(--fond-page);
  color: var(--texte-principal);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-principale);
  font-weight: 500;
  line-height: 1.25;
  color: var(--texte-principal);
}

a {
  color: var(--vert-signature);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--vert-accent);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header,
#masthead {
  background-color: var(--vert-signature) !important;
}

.main-header-bar {
  background-color: var(--vert-signature) !important;
}

.site-title a,
.ast-site-name-wrap a {
  color: #ffffff !important;
  font-family: var(--font-principale);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.main-header-menu .menu-item a,
#site-navigation .menu-item a {
  color: rgba(255,255,255,0.80) !important;
  font-family: var(--font-principale);
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.main-header-menu .menu-item a:hover,
#site-navigation .menu-item a:hover,
.main-header-menu .current-menu-item > a {
  color: #ffffff !important;
}

/* ============================================
   BOUTONS
   ============================================ */
.ast-button,
.button,
button[type="submit"],
.wp-block-button__link {
  font-family: var(--font-principale);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-primary-yr {
  display: inline-block;
  background-color: var(--vert-accent);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-principale);
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.btn-primary-yr:hover {
  background-color: var(--vert-signature);
  color: #ffffff;
}

.btn-secondary-yr {
  display: inline-block;
  background-color: transparent;
  color: var(--vert-signature);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--vert-signature);
  font-family: var(--font-principale);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-secondary-yr:hover {
  background-color: var(--vert-signature);
  color: #ffffff;
}

/* ============================================
   CARTES PROJET
   ============================================ */
.carte-projet {
  background: var(--fond-carte);
  border: 0.5px solid var(--bordure);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.carte-projet:hover {
  box-shadow: 0 4px 16px rgba(40, 103, 78, 0.10);
  transform: translateY(-2px);
}

/* ============================================
   TAGS
   ============================================ */
.tag-yr {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-principale);
}

.tag-powerbi  { background: #e8f4e1; color: #1a5c2a; }
.tag-python   { background: #fff3e0; color: #b45309; }
.tag-sql      { background: #e3f0ff; color: #1a5fa3; }
.tag-perso    { background: var(--tag-perso-bg); color: var(--tag-perso); }
.tag-aero     { background: #e0f4f8; color: #0e4f6b; }

/* ============================================
   BADGES NIVEAUX
   ============================================ */
.niveau-yr {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.niveau-guide      { background: #fce8e8; color: var(--niveau-guide); }
.niveau-guide-ops  { background: #fdf0e6; color: var(--niveau-guide-ops); }
.niveau-ops        { background: #fdf8e1; color: #8a6a00; }
.niveau-ops-auto   { background: #e8f4e1; color: #1a5c2a; }
.niveau-autonome   { background: #e0f7ff; color: #005f8a; }
.niveau-expert     { background: #fdf5d8; color: #7a5c00; }

/* ============================================
   KPIS / STATS
   ============================================ */
.kpi-yr {
  background: var(--fond-carte);
  border: 0.5px solid var(--bordure);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
}

.kpi-yr .valeur {
  font-size: 28px;
  font-weight: 500;
  color: var(--vert-signature);
  font-family: var(--font-principale);
  line-height: 1;
}

.kpi-yr .label {
  font-size: 12px;
  color: var(--texte-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-yr {
  background-color: var(--vert-signature);
  padding: 60px 40px;
}

.hero-yr h1 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 500;
}

.hero-yr .subtitle {
  color: rgba(255,255,255,0.80);
  font-size: 18px;
  font-weight: 300;
  margin-top: 4px;
}

.hero-yr .description {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.7;
  max-width: 600px;
  margin-top: 16px;
}

.hero-badge-yr {
  display: inline-block;
  background: rgba(112, 173, 71, 0.25);
  color: #c5eaa4;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
#colophon {
  background-color: var(--vert-signature) !important;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-principale);
  font-size: 13px;
}

.site-footer a,
#colophon a {
  color: var(--vert-accent) !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: #ffffff !important;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.section-yr {
  padding: 60px 40px;
}

.section-title-yr {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texte-leger);
  margin-bottom: 1rem;
}

.grid-3-yr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2-yr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .grid-3-yr { grid-template-columns: 1fr; }
  .grid-2-yr { grid-template-columns: 1fr; }
  .hero-yr { padding: 40px 20px; }
  .section-yr { padding: 40px 20px; }
}

/* ============================================
   HERO — Page Accueil
   ============================================ */
.hero-inner-yr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.hero-text-yr {
  flex: 1;
}

.hero-photo-yr {
  flex-shrink: 0;
}

.hero-photo-yr img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.25);
}

.hero-ctas-yr {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============================================
   KPIs SECTION
   ============================================ */
.kpis-section-yr {
  background: #fff;
  padding: 32px 40px;
  border-bottom: 0.5px solid var(--bordure);
}

.kpis-section-yr .grid-3-yr {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================
   À PROPOS
   ============================================ */
.apropos-yr {
  max-width: 1100px;
  margin: 0 auto;
}

.softskills-yr {
  list-style: none;
  padding: 0;
  margin: 0;
}

.softskills-yr li {
  font-size: 13px;
  color: var(--texte-secondaire);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--bordure);
  font-family: var(--font-principale);
  display: flex;
  align-items: center;
  gap: 8px;
}

.softskills-yr li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vert-accent);
  flex-shrink: 0;
}

/* ============================================
   PROJETS PHARES
   ============================================ */
.projets-phares-yr {
  padding: 48px 40px;
}

.projets-phares-yr .grid-3-yr {
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-inner-yr {
    flex-direction: column-reverse;
    padding: 40px 20px;
    text-align: center;
  }
  .hero-ctas-yr {
    justify-content: center;
  }
  .kpis-section-yr {
    padding: 24px 20px;
  }
  .projets-phares-yr {
    padding: 40px 20px;
  }
}

.page-id-8 .entry-title,
.page-id-8 h1.entry-title {
  display: none !important;

/* ============================================
   FOOTER — version nettoyee
   ============================================ */
.site-info {
  display: none !important;
}

.ast-footer-copyright {
  display: block !important;
  text-align: center;
  padding: 16px 40px;
}

.ast-footer-copyright .ast-footer-site-info {
  display: none !important;
}

.ast-footer-copyright {
  display: block !important;
}

.ast-footer-copyright .ast-footer-site-info {
  display: none !important;
}

.page-id-9 .entry-title {
  display: none !important;
}

.page-id-9 .entry-header .entry-title {
  display: none !important;
}

body.page-id-9 .site-content .entry-header .entry-title {
  display: none !important;
}

#post-9 .entry-title {
  display: none !important;
}

.page-id-9 .entry-title,
.page-id-9 h1.entry-title {
  display: none !important;
}
