/*
Theme Name: MACROTECH
Theme URI: https://www.macrotech.cm
Author: Macrotech SA
Author URI: https://www.macrotech.cm
Description: Theme WordPress officiel MACROTECH, integrateur de transformation digitale en Afrique depuis 2005. Portail B2B complet : solutions IT, secteurs d'activite, realisations, partenaires, blog d'expertise, evenements et newsletter. Compatible Elementor. Palette et typographies officielles MACROTECH (Exo + Muli).
Version: 2.9.41
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: macrotech
Tags: business, portfolio, blog, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, right-sidebar, full-width-template, block-styles, wide-blocks

MACROTECH est un theme original developpe pour Macrotech SA.
Le design system (palette, typographies, composants) est propriete de Macrotech SA.

Les styles de ce theme sont charges depuis assets/css/main.css pour des raisons
de performance et de maintenabilite. Ce fichier ne contient que l'en-tete du
theme, requis par WordPress, ainsi que les styles de secours de l'editeur.
*/

/* --------------------------------------------------------------------------
   STYLES DE SECOURS
   Charges meme si assets/css/main.css est indisponible, afin que le site
   reste lisible dans tous les cas.
   -------------------------------------------------------------------------- */

:root {
    --mt-navy: #0C4695;
    --mt-skyblue: #4385C5;
    --mt-orange: #fac600;
    --mt-yellow: #fac600;
    --mt-anthracite: #111827;
    --mt-white: #FFFFFF;
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #fff;
    clip-path: none;
    color: var(--mt-navy);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
}

.skip-link:focus {
    left: 6px;
    top: 6px;
}

/* Alignements WordPress */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: calc(100% + 160px);
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

/* Legendes et galeries */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #6B7280;
    text-align: center;
    margin-top: 0.5em;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5em;
}

.gallery-item {
    flex: 1 1 auto;
}

.gallery-columns-2 .gallery-item { max-width: calc(50% - 4px); }
.gallery-columns-3 .gallery-item { max-width: calc(33.333% - 6px); }
.gallery-columns-4 .gallery-item { max-width: calc(25% - 6px); }

/* Contenu sticky / mot de passe */
.sticky { position: relative; }
.post-password-form input[type="password"] {
    padding: 10px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 4px;
}

/* Barre admin */
.admin-bar .mt-topbar { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .mt-topbar { top: 46px; }
}


/* v2.9.18 — Forçage de la disposition des fiches de domaines.
   Ces règles sont dans la feuille chargée après main.css pour éviter qu'une
   ancienne règle alternée ou un cache CSS ne rétablisse l'image à droite. */
body.single-mt_service .solution-detail {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 48px !important;
    align-items: center !important;
}
body.single-mt_service .solution-detail > .solution-detail-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    direction: ltr !important;
    width: 100% !important;
    min-width: 0 !important;
}
body.single-mt_service .solution-detail > .solution-detail-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    direction: ltr !important;
    width: 100% !important;
    min-width: 0 !important;
}
body.single-mt_service .solution-detail-image img {
    display: block !important;
    width: 100% !important;
    height: clamp(320px, 34vw, 560px) !important;
    object-fit: cover !important;
    object-position: center !important;
}
@media (max-width: 768px) {
    body.single-mt_service .solution-detail {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
    body.single-mt_service .solution-detail > .solution-detail-image,
    body.single-mt_service .solution-detail > .solution-detail-content {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    body.single-mt_service .solution-detail-image img {
        height: clamp(260px, 65vw, 420px) !important;
    }
}
