/*
Theme Name: AMD Starter Theme
Author: AMD Creation
Author URI: https://www.amd-creation.com
Description: Starter theme sur mesure de l'agence AMD Creation
Version: 2.5.0
Template: salient
*/

/* =========================================================
   1. FONTS
========================================================= */

@font-face {
    font-family: "Brasika Display";
    src: url("https://www.terraneo.org/wp-content/themes/amd-starter/fonts/Brasika_Display.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

/* =========================================================
   2. CONFIGURATION GLOBALE
========================================================= */

/* Sous-titre des sections */
.amd-hashtag-above-title {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    font-family: "Brasika Display" !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f0820e !important;
}

/* =========================================================
   3. BREADCRUMB
========================================================= */

.amd-breadcrumb {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 2px;
}

.amd-breadcrumb--active {
    color: rgb(255, 255, 255);
}

.amd-breadcrumb-dark--active {
    color: #394e38;
}

.amd-breadcrumb p::before {
    content: "";
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 1.125rem;
    vertical-align: middle;
    background-image: url("https://www.terraneo.org/wp-content/uploads/2025/12/motif-accent-orange.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* =========================================================
   4. FORMULAIRES
========================================================= */

/* Contact Form 2 */
.amd-contact-form-2 label {
    font-size: 14px !important;
    font-weight: bold !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.amd-contact-form-2 input[type="text"],
.amd-contact-form-2 input[type="email"],
.amd-contact-form-2 input[type="tel"],
.amd-contact-form-2 select,
.amd-contact-form-2 textarea {
    background-color: #ffffff !important;
}

.amd-contact-form-2 label span.wpcf7-list-item-label {
    color: #ffffff !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.amd-contact-form-2 input[type="submit"] {
    background-color: #f0820e !important;
    color: #ffffff !important;
}

.amd-contact-form-2 .wpcf7-response-output {
    color: #000000;
}

/* Contact Form 7 global */
.wpcf7 label {
    font-size: 16px;
}

/* Helper : astérisque required */
.amd-required-dot {
    color: red !important;
}

/* =========================================================
   5. HELPERS
========================================================= */

/* Opacité */
.amd-opacity-60 {
    opacity: 0.6;
}

/* Texte justifié */
.amd-justify-text {
    text-align: justify;
}

/* Hauteur SVG */
.amd-h-80 {
    height: 5rem !important;
}

/* Font-weight boutons */
.amd-button-fw {
    font-weight: 400;
}

/* Margin right bouton supprimé sur mobile */
@media only screen and (max-width: 677px) {
    .amd-button-margin-right {
        margin-right: 0 !important;
    }
}

/* =========================================================
   6. OVERRIDES SALIENT / WORDPRESS
========================================================= */

/* Enlever les underlines / backgrounds par défaut sur certains liens */
#search-results .result .title a,
.nectar-ajax-search-results .search-post-item h5,
.nectar-category-grid[data-style="mouse_follow_image"] .nectar-category-grid-item .cat-heading,
.nectar-link-underline a span,
.nectar-link-underline-effect a,
.nectar-underline h1,
.nectar-underline h2,
.nectar-underline h3,
.nectar-underline h4,
.nectar-underline h5,
.pum-theme-salient-page-builder-optimized .pum-container .pum-content + .pum-close span {
    background: none;
}

/* Reset font-size des boutons large */
.nectar-button.large {
    font-size: inherit;
}

/* Remove letter-spacing in milestones */
body .nectar-milestone .subject {
    letter-spacing: 0 !important;
}

/* Archive portfolio : taille du titre */
body.archive.tax-project-type #portfolio .work-meta .title {
    font-size: 24px;
    line-height: 34px;
}

/* Taille des catégories dans la post loop */
.nectar-post-grid-wrap .meta-category > a {
    font-size: 14px !important;
}

@media only screen and (max-width: 999px) {
    .nectar-post-grid-wrap .meta-category > a {
        display: none;
    }
}

/* Réduction des marges sur mobile pour grid spacing 15px */
@media only screen and (max-width: 691px) {
    .nectar-post-grid[data-grid-spacing="15px"],
    .nectar-post-grid[data-grid-spacing="15px"] .nectar-post-grid-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Ajustement barre de recherche */
body.material #search-outer #search input[type="text"] {
    font-family: "Playfair Display";
    text-transform: inherit;
    letter-spacing: 0;
}

/* Fix inconnu sur colonnes mobile/tablette */
@media only screen and (max-width: 999px) {
    body .vc_row-fluid:not(.full-width-content) > .span_12 .vc_col-sm-2:not(:last-child):not([class*="vc_col-xs-"]) {
        margin-bottom: 0 !important;
    }
}

/* Box vidéo */
.nectar-video-box img {
    width: inherit !important;
}

/* Team member image radius */
.team-member[data-style="meta_below"] > img {
    border-radius: 10px;
}

/* Enlever espace bas sur single portfolio */
body[data-bg-header="true"] .container-wrap {
    padding-bottom: 0;
}

/* Ne pas flouter Post Loop Builder */
#ajax-content-wrap [data-style="content_overlaid"] .nectar-post-grid .flickity-viewport .nectar-post-grid-item .content {
    transform: none;
    will-change: auto;
}

/* =========================================================
   7. PAGE D'ACCUEIL
========================================================= */

/* Texte + icône */
body.home .iwithtext .iwt-icon img:not([srcset]) {
    width: 6rem !important;
}

body.home .iwithtext .iwt-text {
    padding-left: 10rem;
}

@media only screen and (max-width: 999px) {
    body.home .iwithtext .iwt-icon img:not([srcset]) {
        width: 4rem !important;
    }

    body.home .iwithtext .iwt-text {
        padding-left: 5rem;
    }
}

/* =========================================================
   8. FOOTER
========================================================= */

@media only screen and (max-width: 690px) {
    #footer-outer > #footer-widgets > .container,
    #footer-outer > #copyright > .container {
        text-align: center;
    }

    #footer-outer > #copyright .social {
        display: flex;
        justify-content: center;
        float: none !important;
    }
}

/* =========================================================
   9. BANDEAU COOKIES
========================================================= */

.cky-notice .cky-btn.cky-btn-customize,
.cky-notice .cky-btn.cky-btn-reject,
.cky-footer-wrapper .cky-btn.cky-btn-reject,
.cky-footer-wrapper .cky-btn.cky-btn-preferences {
    color: #f0820e !important;
    border-color: #f0820e !important;
}

.cky-notice .cky-btn.cky-btn-accept,
.cky-footer-wrapper .cky-btn.cky-btn-accept {
    color: #fff !important;
    background-color: #f0820e !important;
    border-color: #f0820e !important;
}

.cky-preference-content-wrapper .cky-show-desc-btn {
    color: #f0820e !important;
}

.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
    background-color:#f0820e !important
}