/*
Theme Name: AS Theme
Theme URI: https://example.com
Description: Thème enfant Astra
Author: Simon Gouzien
Template: astra
Version: 1.0.0
Text Domain: as-theme
*/

/* TEST TEMPORAIRE */
/* body {
    border-top: 5px solid red !important;
} */

/* Navbar compacte et effet verre dépoli */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Enlever les fonds opaques internes */
.site-header .navbar,
.site-header .container {
    background: transparent !important;
}

/* Réduire la hauteur */
.site-header .navbar,
.site-header .container {
    min-height: 0 !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

/* Logo plus petit */
.site-header .custom-logo {
    max-height: 36px !important;
    width: auto;
}

/* Espacement des liens */
.site-header .menu a {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

@media (max-width: 767px) {

    /* Navbar compacte */
    .site-header {
        padding: 4px 10px !important;
        min-height: 0 !important;
    }

    /* Logo sans déformation */
    .site-header .custom-logo {
        width: auto !important;
        height: auto !important;
        max-width: 48px !important;
        max-height: 48px !important;
        object-fit: contain;
    }

    /* Réduire les espacements internes */
    .site-header .container,
    .site-header .navbar {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }
}

/* Bouton Lire l'article - Blog Astra */
.blog .read-more a,
.archive .read-more a,
.blog .ast-read-more-container a,
.archive .ast-read-more-container a {
    display: inline-block;
    padding: 12px 20px;
    background-color: #171717;
    color: #FFD000;
    border: 2px solid #171717;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Effet au survol */
.blog .read-more a:hover,
.archive .read-more a:hover,
.blog .ast-read-more-container a:hover,
.archive .ast-read-more-container a:hover {
    background-color: #FFD000;
    color: #171717;
    border-color: #FFD000;
}

/*slider 161226 min-height 400 en max-height 450*/
/* .bx-wrapper{position:relative;max-height:450px;overflow:hidden;}
.item img{}
.bx-controls-direction a{font-size:11px;color:#fff;position:absolute;z-index:1040;top:50%;left:25px;height:50px;width:50px;margin-top:-25px;border-radius:50px;border:2px solid #fff;text-align:center;line-height:45px;}
.bx-controls-direction a.bx-next{left:inherit;right:25px;} */

/* ancre */
.ast-scroll-to-top-right {
    margin-bottom: 100px;
}

/* Pied de page - Simon Gouzien */

.footer-as {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 280px;
}

.footer-as .footer-logo {
    display: block;
    width: 80px;
    height: auto;
}

.footer-as .footer-description {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #475569;
    margin: 0;
}

.footer-as .footer-phone,
.footer-as .footer-devis {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.footer-as .footer-phone a {
    color: #172033;
    font-weight: 600;
    text-decoration: none;
}

.footer-as .footer-devis a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #171717;
    color: #FFD000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.footer-as .footer-devis a:hover {
    background: #FFD000;
    color: #171717;
}


/* ===== PIED DE PAGE TABLETTE ===== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Deux colonnes sur tablette */
    .site-footer .ast-builder-grid-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    /* Espacement intérieur */
    .site-footer .site-primary-footer-inner-wrap {
        padding: 30px 24px;
    }

    /* Bloc de présentation */
    .footer-as {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .footer-as .footer-logo {
        width: 70px;
    }

    .footer-as .footer-description {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Titres et liens */
    .site-footer .widget-title {
        font-size: 16px;
        margin-bottom: 14px;
    }
}


/* ===== PIED DE PAGE TABLETTE ===== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Deux colonnes sur tablette */
    .site-footer .ast-builder-grid-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    /* Espacement intérieur */
    .site-footer .site-primary-footer-inner-wrap {
        padding: 30px 24px;
    }

    /* Bloc de présentation */
    .footer-as {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .footer-as .footer-logo {
        width: 70px;
    }

    .footer-as .footer-description {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Titres et liens */
    .site-footer .widget-title {
        font-size: 16px;
        margin-bottom: 14px;
    }
}



/* ===== FOOTER MOBILE ===== */
@media (max-width: 767px) {

  /* Passe le footer en une seule colonne */
  .site-footer .ast-builder-grid-row,
  .site-footer .ast-builder-footer-grid-columns {
    grid-template-columns: 1fr !important;
  }

  /* Espace entre les blocs */
  .site-footer .footer-widget-area,
  .site-footer .ast-builder-layout-element {
    margin-bottom: 24px;
  }

  /* Ton bloc perso */
  .footer-as {
    max-width: 100%;
    padding: 0 8px 8px;
    gap: 10px;
  }

  .footer-as .footer-logo {
    width: 64px;
    height: auto;
  }

  .footer-as .footer-description {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
  }

  .footer-as .footer-phone {
    margin: 0;
  }

  .footer-as .footer-phone a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .footer-as .footer-devis {
    margin-top: 4px;
  }

  .footer-as .footer-devis a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 8px;
  }

  /* Titres des colonnes */
  .site-footer .widget-title,
  .site-footer h2,
  .site-footer h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  /* Liens du footer */
  .site-footer ul,
  .site-footer ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
  }

  .site-footer li {
    margin-bottom: 8px;
  }

  /* Petit recentrage global si besoin */
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}