/* ============================================================
   Soudure FLF — surcouche de marque (chargee APRES style.css)
   Palette : --flf-dark #191D21 | --flf-red #E92027 | blanc
   On ne modifie pas style.css au-dela du theme ; tout ajustement
   propre au site FLF vit ici, en un seul endroit.
   ============================================================ */

/* Ancrage de la base sombre sur le noir de marque.
   Les sections en #272727/#323232 restent legerement plus claires
   que le body -> profondeur subtile sans casser le contraste. */
body            { background: var(--flf-dark); }
.main-footer.dark { background: var(--flf-dark); }

/* Logo texte du header : garder l'accent rouge sur le sous-titre */
.logo h2 span, .logo .logo-tagline span { color: var(--flf-red); }

/* Pastille « Fabrique au Canada » reutilisable (produits, sections) */
.flf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--flf-red);
    padding: 7px 14px;
    line-height: 1;
}
.flf-badge i { font-size: 14px; }

/* Bandeau d'information sobre (ex. « fabrique a l'interne, modifiable ») */
.flf-note {
    border-left: 3px solid var(--flf-red);
    padding: 4px 0 4px 20px;
    color: #cfcfcf;
}

/* Grille de cartes (produits) batie sur l'esthetique .projects .item,
   mais figee en grille au lieu du carrousel. */
.product-grid .item { margin-bottom: 30px; }
/* Hauteur uniforme des vignettes (grille projets ET carrousel produits) :
   les photos portrait/paysage se recadrent au centre au lieu de
   donner des cartes de hauteurs inegales. */
.projects .item .position-re img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Hero statique : une seule image, sans carrousel (donc sans fleches
   ni defilement auto). On redonne a .item le flux normal + 100vh,
   le sur-specifie l'emporte sur « .slider-fade .item { absolute } ». */
.header.static-hero .item { position: relative; height: 100vh; }
.header.static-hero .left-panel { z-index: 8; }

/* Appel a l'action « soumission » (partial cta-soumission.php) */
.call-action { padding: 100px 0; text-align: center; }
.call-action h5 {
    color: var(--flf-red);
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.call-action h2 {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 36px;
    margin: 0;
}
.call-action .butn-light { display: inline-block; }

/* Logos de certification dans le sous-pied */
.footer-cert { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }
.footer-cert img { width: auto; }
@media (max-width: 767px){
    .footer-cert { justify-content: flex-start; margin-top: 10px; }
    .call-action h2 { font-size: 26px; }
}

/* Icones de services (police Font Awesome a la place des images d'icones) */
.services .item .serv-icon {
    font-size: 50px;
    line-height: 1;
    color: var(--flf-red);
    display: inline-block;
    margin-bottom: 20px;
    transition: transform .3s ease;
}
.services .item a:hover .serv-icon { transform: translateY(-4px); }

/* ---- Page Services : blocs image/texte alternes ---- */
.serv-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--flf-red);
    margin-bottom: 14px;
}
.serv-list { list-style: none; padding: 0; margin: 0 0 26px; }
.serv-list li { position: relative; padding-left: 24px; margin-bottom: 11px; color: #cfcfcf; }
.serv-list li:before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px; background: var(--flf-red);
}
.serv-list li strong { color: #fff; font-weight: 500; }

/* ---- Page Technologies : grille de cartes image + texte ---- */
.tech-card { background: #272727; height: 100%; transition: transform .3s ease; }
.tech-card:hover { transform: translateY(-6px); }
.tech-card-img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.tech-card-body { padding: 28px 26px; }
.tech-card-body h5 {
    font-family: 'Oswald', sans-serif; color: #fff; text-transform: uppercase;
    letter-spacing: 2px; font-size: 18px; font-weight: 400;
    margin: 0 0 14px; padding-bottom: 12px; position: relative;
}
.tech-card-body h5:after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 2px; background: var(--flf-red);
}
.tech-card-body p { margin: 0; font-size: 15px; line-height: 1.7em; }

/* ---- Page Produits : cartes photo + nom + description ---- */
.product-card { background: #272727; height: 100%; transition: transform .3s ease; }
.product-card:hover { transform: translateY(-6px); }
.product-card-img img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.product-card-body { padding: 30px 28px; }
.product-card-body h5 {
    font-family: 'Oswald', sans-serif; color: #fff; text-transform: uppercase;
    letter-spacing: 2px; font-size: 18px; font-weight: 400;
    margin: 0 0 14px; padding-bottom: 12px; position: relative;
}
.product-card-body h5:after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 2px; background: var(--flf-red);
}
.product-card-body p { margin: 0; font-size: 15px; line-height: 1.7em; }

/* Bandeau « fabriqué au Canada » mis en avant (page Produits) */
.flf-note strong { color: #fff; }
.flf-note.flf-note-lg { font-size: 17px; padding: 14px 0 14px 22px; }

/* ---- Formulaires : select + fichier accordés au thème sombre ---- */
.contact__form select,
.flf-apply-form select {
    width: 100%; background: transparent; color: #999;
    border: 0; border-bottom: 1px solid #323232; border-radius: 0;
    padding: 10px 0; margin-bottom: 10px;
    font-family: 'Didact Gothic', sans-serif; font-size: 16px;
}
.flf-apply-form select option { color: #222; } /* menu natif sur fond clair */
.flf-apply-form .field-label {
    display: block; color: #fff; font-family: 'Oswald', sans-serif;
    font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
    margin: 6px 0 6px;
}
.flf-apply-form input[type="file"] { color: #999; cursor: pointer; }

/* ---- Page Carrière : liste des postes (à postuler) ---- */
.position { display: flex; align-items: center; }
.position-apply {
    margin-left: auto; padding-right: 18px; align-self: center;
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
    letter-spacing: 2px; font-size: 13px; color: var(--flf-red);
    transition: color .3s;
}
.position:hover .position-apply { color: #fff; }

/* ---- Page Contact : fiches de l'équipe ---- */
.contact-person { background: #272727; padding: 30px 28px; height: 100%; }
.contact-person h5 {
    font-family: 'Oswald', sans-serif; color: #fff; text-transform: uppercase;
    letter-spacing: 2px; font-size: 17px; font-weight: 400; margin: 0 0 6px;
}
.contact-person .role { color: #999; display: block; margin-bottom: 14px; font-size: 15px; line-height: 1.6em; }
.contact-person .tel { color: var(--flf-red); font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
.contact-person .tel a { color: var(--flf-red); }

/* Carte Google + bandeau d'alerte formulaire */
.map { display: block; filter: grayscale(0.6) contrast(1.05); }
.form-alert { margin-bottom: 22px; }

/* Pot de miel anti-spam (invisible, hors écran) */
.hpot { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Cadre rouge « signature » autour des photos  (ajout FLF)
   Le meme lisere partout : bordure rouge + fine marge sombre,
   l'image posee a l'interieur. Les bannieres plein cadre
   (hero, CTA, en-tetes de page) et les logos ne sont pas encadres.
   ============================================================ */
.projects .item .position-re,   /* Accueil : carrousel produits + grille projets */
.tech-card-img,                 /* Technologies : vignettes */
.product-card-img,              /* Produits : vignettes */
.about .about-img .img {        /* Accueil « a propos » + blocs Services / Projets */
    border: 2px solid var(--flf-red);
    background: var(--flf-dark);
    padding: 6px;
}
/* On neutralise le cadre en retrait gris du gabarit sur les grandes
   images (remplace par le lisere symetrique ci-dessus). */
.about .about-img .img:before { display: none; }
.about .about-img .img img    { background: transparent; }

/* ============================================================
   Logo : grand en tete de page (desktop + mobile), tagline
   sous le logo. Le nom « SOUDURE FLF » en texte est retire du
   HTML ; le h2 ne sert plus que de conteneur a la tagline.
   L'etat sticky (.nav-scroll) reste petit — gere par le theme.
   ============================================================ */
.logo            { width: 270px; }
.logo-img        { width: 240px; margin-bottom: 8px; transition: width .3s ease; }
.logo-wrapper .logo h2,
.logo-wrapper .logo .logo-tagline { font-size: 0; margin: 0; line-height: 1; }
.logo-wrapper .logo span { font-size: 13px; margin-top: 0; line-height: 1.5em; }

@media screen and (max-width: 991px) {
    .logo                    { width: 195px; }
    .logo-img                { width: 160px; }
    .logo-wrapper .logo h2,
    .logo-wrapper .logo .logo-tagline { display: block; }      /* re-affiche la tagline */
    .logo-wrapper .logo span { font-size: 11px; letter-spacing: 3px; }
    .nav-scroll .logo-img            { width: 72px; }          /* sticky mobile : petit */
    .nav-scroll .logo-wrapper .logo h2,
    .nav-scroll .logo-wrapper .logo .logo-tagline { display: none; } /* sticky mobile : pas de tagline */
}
