/*
Theme Name: PiotPilot
Theme URI: https://piotpilot.eu
Author: Yannis Piot Pilot
Author URI: https://piotpilot.eu
Description: Thème WordPress personnalisé pour mon blog
Version: 1.1
*/

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

footer {
      flex-shrink: 0;
}


/* search bar  */
.search-bar-neon {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #141414, #1e1e1e);
    border-radius: 40px;
    padding: 12px 18px;
    width: 280px;
    max-width: 100%;
    box-shadow: inset 2px 2px 5px #0a0a0a, inset -2px -2px 5px #222;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}

.search-bar-neon i {
    color: #ff5722;
    font-size: 20px;
    margin-right: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-bar-neon input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.search-bar-neon input::placeholder {
    color: #777;
}

.search-bar-neon:focus-within {
    border-color: #ff5722;
    box-shadow: 0 0 12px rgba(255,87,34,0.7), 0 0 25px rgba(255,87,34,0.3);
}

.search-bar-neon:focus-within i {
    color: #ff784e;
    transform: scale(1.2);
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper {
    border: none !important;
    padding: 4px !important;
}


/* age about  */
.about-banner {
    width: 100%;
    max-height: 500px; /* plus grande */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

.about-intro h1 {
    font-size: 2.5rem;
    color: #fff;
}

.about-intro p {
    font-size: 1.1rem;
    color: #ccc;
}

.about-history {
    color: #ddd;
}

.timeline li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}
.timeline li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #ff5722;
    border-radius: 50%;
}
.timeline li strong {
    color: #ff5722;
}

/* widget articles */


.latest-posts .card {
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px; /* largeur maximale */
    width: 100%; /* reste responsive sur mobile */
    margin: 0 auto; /* centre horizontalement */
}

.latest-posts .card img.card-img {
    width: 100%;
    height: 200px; /* réduit un peu la hauteur pour s’adapter à la largeur */
    object-fit: cover;
    display: block;
}

.latest-posts .card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.latest-posts .card-title-overlay h5 {
    margin: 0;
    font-size: 1.1rem;
}

/** INFO CARD **/

.nf-about-card .nf-bg-grad{
  background: linear-gradient(145deg, #1a1a1a 0%, #222 60%, #2a2a2a 100%);
  z-index: 0;
}
.nf-about-card {
  background-color: #121212; /* fond sombre */
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.nf-about-card .card-body{ min-height: 340px; }
.nf-about-card .nf-avatar{
  width:112px; height:112px; object-fit:cover;
  border-radius:50%;
  border:3px solid #2b2b2b;
  z-index:1;
}
.nf-about-card h3{
  color: #fff;
}
.nf-about-card p{
  color: #bbb;
}
.nf-about-card a{
  z-index:1;
}

/* Bouton CV en blanc */
.nf-about-card .btn-cv {
  background: #fff;
  color: #000;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.nf-about-card .btn-cv:hover{
  background: #e6e6e6;
  color: #000;
}
@media (prefers-reduced-motion:no-preference){
  .nf-about-card:hover{ transform: translateY(-2px); transition: transform .2s ease; }
}


/* Style spécial widgets */
.nf-widget-card {
  background-color: #1e1e1e; /* gris anthracite */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  color: #ddd;
  margin-bottom: 1rem;
}

/* Titre widget */
.nf-widget-card h5 {
  color: #fff;
}

/* Boutons slash */
.nf-widget-card .btn-outline-light {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  background-color: rgba(255,255,255,0.03);
}
.nf-widget-card .btn-outline-light:hover {
  background: #fff;
  color: #000;
}

/* Badges Twitch */
.nf-widget-card .badge {
  font-size: 0.8rem;
  padding: .35em .6em;
  border-radius: .5rem;
}



.perfecty-push-dialog-box{font-size:20px;width:450px auto;border-radius:10px 10px 20px 20px;text-align:left;margin:5% auto;}
#perfecty-push-dialog-cancel{background:#fff;color:#0078d1 !important; }
#perfecty-push-dialog-subscribe{background:#0078d1 !important;border-radius:10px}
.perfecty-push-dialog-buttons{text-align:right}
.perfecty-push-dialog-icon{padding-right:5px;}
