/*
Theme Name: Alcyde B2B Showcase
Theme URI: https://alcyde.net
Author: Antigravity AI
Author URI: https://alcyde.net
Description: Thème WordPress sur-mesure B2B Industriel pour Alcyde, design classique et professionnel.
Version: 1.1.0
Text Domain: alcyde
*/

body {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    /* slate-900 */
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Enlever toute lueur ou ombre par défaut sur les conteneurs */
.site-main,
.wp-block-group,
.wp-block-columns {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Typography Refinement - Industrial Classic */
h1,
h2,
h3,
.industrial-heading {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Réduit pour plus de classicisme */
    font-weight: 800;
    /* Plus gras pour compenser la taille réduite */
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* Component Overrides - Removing AI/Tech Glows */
.glass {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    backdrop-filter: none;
    /* Removed blur for a cleaner classic look */
}

.glow-button {
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
}

.glow-button:hover {
    transform: translateY(-1px);
    background-color: #08609e !important;
}

/* Custom styles for Blog Content (Light Theme focus) */
.prose {
    color: #1e293b !important;
    /* slate-800 pour une lecture parfaite sur blanc */
    max-width: none;
    line-height: 1.8;
}

.prose strong {
    color: #0f172a !important;
    /* slate-900 */
}

.editor-styles-wrapper {
    color: #0f172a !important;
    background-color: #ffffff !important;
    padding: 4rem !important;
}

/* Classic Industrial Headings */
.prose h2,
.editor-styles-wrapper h2 {
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    /* Réduit */
    line-height: 1.2 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    border-left: 4px solid #0870b5;
    /* Plus fin */
    padding-left: 1.25rem;
    padding-bottom: 0;
}

/* Modern Quote / Box style (Sober) */
.prose blockquote,
.editor-styles-wrapper blockquote {
    border-left: 2px solid #0870b5 !important;
    background: #f8fafc !important;
    padding: 2rem !important;
    border-radius: 0 !important;
    /* Strictement carré */
    font-style: italic;
    font-size: 1.15rem;
    color: #1e293b !important;
    margin: 3rem 0 !important;
    border: 1px solid #e2e8f0;
    border-left-width: 6px;
}

/* The "Phase" box style using WP Groups - Clean & Simple */
.wp-block-group,
.wp-block-column {
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

/* Ajout de bordures industrielles sur les colonnes si souhaité */
.is-style-industrial-border {
    border: 1px solid #e2e8f0 !important;
    padding: 2rem !important;
}

.wp-block-columns.is-style-no-gap {
    gap: 0 !important;
}

/* CTA Button - Solid & Professional */
.prose .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
    background: #0870b5 !important;
    color: #ffffff !important;
    padding: 1.25rem 2.5rem !important;
    border-radius: 0 !important;
    /* Strictement carré */
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none !important;
}

.prose .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button__link:hover {
    background: #065a92 !important;
}

/* Simple Separator */
.prose hr,
.editor-styles-wrapper hr {
    border: 0;
    height: 1px;
    background: #e2e8f0 !important;
    margin: 3rem 0 !important;
}

/* List improvements */
.prose ul li::marker,
.editor-styles-wrapper ul li::marker {
    color: #0870b5 !important;
}

/* Fix Hero Image scaling in Gutenberg */
.wp-block-image img {
    border-radius: 0 !important;
}

.wp-block-group.relative {
    position: relative;
}

/* Correction Mobile pour les titres */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .wp-block-columns {
        flex-direction: column !important;
        gap: 2rem !important;
    }
}

/* Hero Split Layout fixes */
.wp-block-columns.are-vertically-aligned-center {
    align-items: center;
}

.wp-block-column figure.wp-block-image {
    margin: 0;
}

.wp-block-image.grayscale img {
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

.wp-block-column img {
    width: 100%;
    height: auto;
    display: block;
}

/* -- FIX : Force Full Color for Blog Thumbnails -- */
article .wp-block-image img,
.wp-block-post-featured-image img,
article img.wp-post-image {
    filter: none !important;
}

/* --- FIX D'ALIGNEMENT POUR LA PAGE CONTACT --- */
.page-template-page-contact .wp-block-columns,
.page-template-page-contact-php .wp-block-columns,
.page-template-page-contact section.grid {
    align-items: flex-start !important;
}

/* --- Formulaire Industriels (Alcyde Premium Boxy - Version Aérée) --- */
.wpcf7 {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Force containment */
}

.wpcf7-form {
    background: #ffffff !important;
    padding: 4rem 3rem !important; /* Plus d'espace vertical */
    border: 1px solid #e2e8f0 !important;
    box-shadow: 20px 20px 0px rgba(8, 112, 181, 0.05);
    box-sizing: border-box !important; /* CORRECTION DE L'OVERFLOW */
}

.wpcf7-form-control {
    width: 100% !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 1.5rem !important; /* Champs plus hauts */
    box-sizing: border-box !important; /* CORRECTION DE L'OVERFLOW DES CHAMPS */
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;
    margin-bottom: 2.5rem !important; /* Plus d'espace entre les champs */
}

.wpcf7-form-control:focus {
    background-color: #ffffff !important;
    border-color: #0870b5 !important;
    outline: none !important;
}

/* Style spécifique pour le bouton d'envoi majestueux */
.wpcf7-submit {
    display: block;
    width: 100% !important;
    background-color: #0870b5 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important;
    padding: 2rem !important; /* Bouton plus imposant */
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    margin-top: 1.5rem;
}

.wpcf7-submit:hover {
    background-color: #000000 !important;
    transform: translateY(-3px);
}

/* Style pour le dépôt de fichier avec espacement */
input[type="file"].wpcf7-file {
    background: #f1f5f9;
    padding: 1.5rem;
    border: 1px dashed #0870b5;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ef4444 !important;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.wpcf7-response-output {
    margin: 3rem 0 0 !important;
    padding: 2rem !important;
    border-radius: 0 !important;
    border: 2px solid #0870b5 !important;
    background: #f0f9ff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-align: center;
}

/* --- RESPONSIVE MOBILE POUR LE FORMULAIRE --- */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 2rem 1.5rem !important; /* Divise l'espace intérieur par 2 */
        box-shadow: 10px 10px 0px rgba(8, 112, 181, 0.05) !important; /* Ombre moins large */
    }
    
    .wpcf7-form-control {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .wpcf7-submit {
        padding: 1.25rem !important;
        letter-spacing: 0.1em !important;
        font-size: 1rem !important;
    }
    
    input[type="file"].wpcf7-file {
        padding: 1rem;
        font-size: 11px;
    }
}

/* --- Grille de Logos Partenaires B2B (Mettre classe "alcyde-logos-partenaires" dans le bloc Galerie) --- */
.alcyde-logos-partenaires.wp-block-gallery {
    gap: 5rem !important; /* Espacement plus grand */
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem 0;
    display: flex !important;
    flex-wrap: wrap !important;
}

.alcyde-logos-partenaires .wp-block-image {
    width: 200px !important; /* Conteneur fixe */
    height: 120px !important;
    flex-grow: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.alcyde-logos-partenaires .wp-block-image img,
.alcyde-logos-partenaires img {
    filter: grayscale(1) opacity(0.5);
    transition: all 0.4s ease;
    mix-blend-mode: multiply;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* L'image s'adapte sans distorsion */
    border-radius: 0 !important;
    box-shadow: none !important;
}

.alcyde-logos-partenaires .wp-block-image img:hover,
.alcyde-logos-partenaires img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05); /* Léger effet de zoom dynamique */
}