/**
 * Serrurier41 - CSS Personnalisé
 * ==============================
 */

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header-sticky .branding {
    position: inherit;
}

/* ==========================================================================
   FORMULAIRES
   ========================================================================== */

/* Masquer badge reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden;
}

/* Couleur texte inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    color: #000000;
}

input.wpcf7-form-control.wpcf7-text,
textarea.wpcf7-form-control.wpcf7-textarea {
    color: black !important;
}

/* Style formulaire CF7 */
.wpcf7 label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #0066cc;
    outline: none;
}

.wpcf7 input[type="submit"] {
    background: #0066cc;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    background: #0052a3;
}

.form-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: center;
}

/* ==========================================================================
   ÉLÉMENTS DÉCORATIFS
   ========================================================================== */

.bordered {
    padding: 20px;
    border: 2px solid #23b3c3;
    border-radius: 8px;
}

.borderedyoutube {
    padding: 7px;
    border: 2px solid #23b3c3;
    border-radius: 8px;
}

/* ==========================================================================
   MASQUAGE ÉLÉMENTS
   ========================================================================== */

/* Masquer dates/meta articles */
.entry-meta .entry-date.published {
    display: none;
}

.entry-header .header-entry-meta,
.entry-body .header-entry-meta {
    display: none;
}

.entry-header .entry-title-meta span span,
.entry-header .entry-header .entry-title span span,
.entry-body .entry-title-meta span span,
.entry-body .entry-header .entry-title span span {
    display: none;
}

/* Masquer bouton tel sur page barreaudage */
.postid-18 .top-contact-bar {
    display: none;
}

/* Masquer Google powered */
.wp-google-powered,
.wp-google-wr {
    display: none !important;
}

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */

h1 {
    font-size: 2.75rem;
}

/* ==========================================================================
   BLOG - ARTICLES
   ========================================================================== */

/* Contenu article plus aéré */
.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5em;
}

/* Images dans les articles */
.single-post .entry-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 1.5em auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Photos de contenu (wp-image-*) - forcer plus grande taille */
.single-post .entry-content img[class*="wp-image-"]:not(.alignleft):not(.alignright):not(.wp-image-2838):not(.wp-image-2302) {
    width: 100% !important;
    max-width: 600px;
    height: auto !important;
}

/* Petites images/icônes alignées - ne pas agrandir */
.single-post .entry-content img.alignleft,
.single-post .entry-content img.alignright,
.single-post .entry-content img[width="50"],
.single-post .entry-content img[width="200"],
.single-post .entry-content img[width="148"],
.single-post .entry-content img.wp-image-2838 {
    width: auto !important;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Images avec légende */
.single-post .entry-content .wp-caption {
    max-width: 100%;
    margin: 1.5em auto;
}

.single-post .entry-content .wp-caption img {
    margin-bottom: 0.5em;
}

.single-post .entry-content .wp-caption-text,
.single-post .entry-content figcaption {
    font-size: 1.5rem;
    color: #666;
    text-align: center;
    font-style: italic;
    padding: 0.5em 1em;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

/* Titres dans articles */
.single-post .entry-content h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #23b3c3;
}

/* Liens dans le contenu */
.single-post .entry-content a {
    color: #23b3c3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.single-post .entry-content a:hover {
    border-bottom-color: #23b3c3;
}

/* Badges catégories/tags en haut d'article (pas dans le footer) */
.single-post .entry-meta a,
.single-post .entry-header .cat-links a,
.single-post .entry-header .tags-links a {
    display: inline-block;
    background: rgba(35, 179, 195, 0.1);
    color: #23b3c3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.single-post .entry-meta a:hover,
.single-post .entry-header .cat-links a:hover,
.single-post .entry-header .tags-links a:hover {
    background: #23b3c3;
    color: #fff;
}

/* Icônes Font Awesome dans les métas et footer */
.single-post .fa-folder-open,
.single-post .fa-comments,
.single-post .entry-meta .fa,
.single-post .entry-footer .fa,
.single-post .cat-links .fa,
.single-post .comments-link .fa,
.single-post .tags-links .fa,
.entry-footer .fa,
.comments-link .fa-comments,
.cat-links .fa-folder-open {
    color: #23b3c3 !important;
}

/* Liens footer article (Laisser un commentaire, Chantiers réalisés) */
.single-post .entry-footer .comments-link,
.single-post .entry-footer .cat-links {
    margin-right: 15px;
}

.single-post .entry-footer .comments-link a,
.single-post .entry-footer .cat-links a {
    color: #23b3c3;
    text-decoration: none;
}

.single-post .entry-footer .comments-link a:hover,
.single-post .entry-footer .cat-links a:hover {
    text-decoration: underline;
}

/* Badges Métallerie / Localisation (premiers paragraphes) */
.single-post .entry-content > p:first-child,
.single-post .entry-content > p:nth-child(2) {
    display: inline-block;
    background: rgba(35, 179, 195, 0.15);
    color: #23b3c3;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 15px;
    margin-bottom: 20px;
}

.single-post .entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: #333;
}

/* Listes dans articles */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.single-post .entry-content li {
    margin-bottom: 0.5em;
}

/* Galerie d'images */
.single-post .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 2em 0;
}

.single-post .gallery-item {
    margin: 0;
}

.single-post .gallery-item img {
    margin: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Blockquote style */
.single-post .entry-content blockquote {
    border-left: 4px solid #23b3c3;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

/* Bouton recherche */
.widget_search input[type="submit"],
.search-form input[type="submit"] {
    background: #23b3c3 !important;
    border-color: #23b3c3 !important;
    color: #fff !important;
}

.widget_search input[type="submit"]:hover,
.search-form input[type="submit"]:hover {
    background: #1a9aa8 !important;
}

/* Liens sidebar au hover */
.widget a:hover,
.sidebar a:hover {
    color: #23b3c3 !important;
}

/* Listes sidebar avec chevrons */
.widget ul li::before,
.widget_categories ul li::before,
.widget_recent_entries ul li::before {
    color: #23b3c3;
}

/* ==========================================================================
   COMMENTAIRES
   ========================================================================== */

/* Textarea focus */
#respond textarea:focus,
.comment-form textarea:focus {
    border-color: #23b3c3 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(35, 179, 195, 0.2);
}

#respond input:focus,
.comment-form input:focus {
    border-color: #23b3c3 !important;
    outline: none;
}

/* Bouton commentaire */
#respond input[type="submit"],
.comment-form input[type="submit"] {
    background: #23b3c3 !important;
    border-color: #23b3c3 !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 12px 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

#respond input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    background: #1a9aa8 !important;
}

/* ==========================================================================
   NAVIGATION ARTICLES (prev/next)
   ========================================================================== */

/* Cacher les anciennes flèches triangles */
.post-navigation .meta-nav,
.paging-navigation .meta-nav,
.comment-navigation .meta-nav,
.webulous_page_navi .meta-nav {
    display: none !important;
}

/* Style des boutons */
.post-navigation .nav-links a {
    display: inline-block;
    background: #fff;
    color: #23b3c3;
    border: 2px solid #23b3c3;
    border-radius: 5px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-navigation .nav-links a:hover {
    background: #23b3c3;
    color: #fff;
}

/* Chevron gauche intégré */
.post-navigation .nav-previous a::before {
    content: "← ";
}

/* Chevron droit intégré */
.post-navigation .nav-next a::after {
    content: " →";
}

/* Espacement entre les boutons */
.post-navigation .nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 200px;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .single-post .entry-content {
        font-size: 1rem;
    }

    .single-post .entry-content img {
        margin: 1em auto;
    }

    h1 {
        font-size: 2rem;
    }

    /* Images services homepage : pleine largeur sur mobile */
    .services-wrapper .wp-block-image img {
        width: 100%;
    }
}
