/*
 Theme Name: Industrial Technology Child
 Theme URI: http://82deals.fr
 Description: Thème enfant de Industrial Technology parent
 Author: Richard
 Author URI: http://82deals.fr
 Template: industrial-technology parent
 Version: 1.0.0
 Text Domain: industrial-technology-child

couleurs du site :
red wood B26E63
Tiffany Blue (from logo) 91DEE1
Charcoal (text) 264653
light purple (background) FAE8EB
Dark purple "devis" 31081F 
safran E9C46A
*/
/* ====== TITRES & TEXTES ====== */
h2 {
color: #1d5c8b !important; 
}

.machine-categories {
  margin-bottom: 10px;
}
.machine-category {
  display: inline-block;
  background: #FAE8EB;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
}

/* === Archive Machines Grid === */
.archive-machine .machines-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* espacement entre les cartes */
  justify-content: flex-start; /* gauche par défaut */
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 15px;
}
.archive-machine .machine-card {
  flex: 1 1 calc(33.333% - 20px); /* 3 colonnes sur desktop */
  background-color: #e0e5ec; /* gris/bleu métal */
  border: 1px solid #c0c4cc; /* bordure douce */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.archive-machine .machine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.archive-machine .machine-card img {
  width: 100%;
  height: auto;
  display: block;
}
.archive-machine .machine-card h2 {
  font-size: 1.2rem;
  margin: 15px;
  color: #264653; /* bleu foncé industriel */
}
.archive-machine .machine-card .excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 15px 15px;
  color: #333; /* texte principal */
}
/* === Responsive === */
@media (max-width: 992px) {
  .archive-machine .machine-card {
    flex: 1 1 calc(50% - 20px); /* 2 colonnes */
  }
}
@media (max-width: 600px) {
  .archive-machine .machine-card {
    flex: 1 1 100%; /* 1 colonne */
  }
}

/* --- Top Head Bandeau --- */
.header-info-box {
    width: 100%;
    background-color: #B26E63; /* couleur de fond */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.top-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    box-sizing: border-box;
    height: 75px; /* ajustable */
    font-weight: 500;
}
/* Hover des liens du menu dans top-head uniquement */
.top-head .nav-menu-header-right .nav-menu li a:hover {
    color: #f9fafb !important;   /* couleur souhaitée au survol */
    transition: color 0.3s; /* animation douce */
}
/* Neutralisation du container du thème pour occuper toute la largeur (top-head)*/
.header-info-box .top-head .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 60px;
    box-sizing: border-box;
}
/* Conteneur gauche : nom + slogan */
.top-head .top-left {
    flex: 1 1 auto;
    min-width: 0;
}
.top-head .site-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none; /* wrapper ne bloque pas les clics */
}
.top-head .site-title-wrapper a,
.top-head .site-title-wrapper .site-slogan {
    pointer-events: auto; /* rend les liens cliquables */
}
/* Nom du site */
.top-head .site-name {
    font-size: 2rem;
    font-weight: bold;
    color: #1d3557;
    text-decoration: none;
    line-height: 1.2;
}
.top-head .site-name:hover {
color: #f9fafb;
transition: color 0.3s;
}
/* Slogan */
.top-head .site-slogan {
    font-size: 1rem;
    color: #555;
    margin-top: 2px;
    line-height: 1.2;
}
/* Conteneur central (menu) */
.top-head .middle-center {
    flex: 0 0 auto;
    pointer-events: auto;
}
/* Conteneur droit (recherche) */
.top-head .middle-right {
    flex: 0 0 auto;
    pointer-events: auto;
}
/* Bloc sous-menu "Expertises" */
.top-head .middle-center .menu-item-207 .sub-menu {
  background: transparent; /* on laisse les liens gérer leur fond */
  padding: 0;
  margin: 0;
  border: none;
}

/* Liens du sous-menu */
.top-head .middle-center .menu-item-207 .sub-menu a {
  background: #ffffff;           /* fond blanc */
  color: #1d3557 !important;     /* texte bleu foncé */
  display: inline-block;         /* largeur = texte */
  padding: 6px 12px;             /* espace interne */
  border-radius: 6px;            /* coins arrondis */
  margin: 4px 0;                 /* espacement vertical */
  transition: all 0.3s ease;
}

/* Effet au survol */
.top-head .middle-center .menu-item-207 .sub-menu a:hover {
  background: #f1f1f1;           /* fond légèrement gris au survol */
  color: #B26E63 !important;     /* couleur de texte modifiée */
  text-decoration: none !important;
}

/* Optionnel : alignement visuel propre du sous-menu */
.top-head .middle-center .menu-item-207 .sub-menu li {
  display: block;
  list-style: none;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .top-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 5px;
        height: auto;
    }
    .top-head .site-name {
        font-size: 0.95rem;
    }
    .top-head .site-slogan {
        font-size: 0.8rem;
    }
}
/* === MOBILE : CACHER LE STICKY HEADER ET LE BOUTON RECHERCHE === */
@media (max-width: 768px) {

.sticky-header {
display: none !important;
}

.top-head .middle-right {
display: none !important;
}

.site-header {
position: static !important;
top: auto !important;
box-shadow: none !important;
}

.header-menu-box {
margin-top: 0 !important;
}

.header-menu-box .container.menu {
padding: 0 20px !important;
}
.middle-head {
        display: none !important;
  }
}
/*Cacher la barre de recherche et désactiver le sticky sur mobile*/
.is-mobile .search-bar,
.is-mobile .sticky-header {
    display: none !important;
}
/*----------Fin MEF header---------------*/
/* === FORCER LE FOOTER EN BAS DE LA PAGE === */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding-bottom: 0;
}

.site-footer {
    margin-top: auto;
}

/* === MISE EN FORME DU FOOTER === */

.footer-legal-link {
    color: #B26E63 !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.footer-legal-link:hover {
    color: #f9fafb !important;
    transition: color 0.3s;
}

.social-links-footer {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links-footer li {
    display: inline-block;
}

.social-links-footer a {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

/* === FIN MEF FOOTER === */
/* bouton sur fond sombre #1d3557 : */
.btn-secondaryS {
  border: 2px solid #E9C46A;      /* couleur accent claire */
  color: #1d3557 !important;                 /* texte visible sur fond clair */
  background: #f9fafb;            /* fond clair */
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}
.btn-secondaryS:hover {
  background: #E9C46A;            /* inversion fond / texte au hover */
  color: #000000 !important;
  border-color: #1d3557;
  transition: color 0.3s, background-color 0.3s; 
}

/* bouton sur fond clair #f9fafb : */
.btn-secondaryC {
  border: 2px solid #264653;      /* couleur sombre contrastante */
  color: #1d3557 !important;                 /* texte visible sur fond clair */
  background: #f9fafb;            /* fond clair */
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}
.btn-secondaryC:hover {
  background: #264653;            /* inversion fond / texte au hover */
  color: #f9fafb !important;
  border-color: #f9fafb;
  transition: color 0.3s, background-color 0.3s; 
}
/*Hero*/
.hero {
  position: relative;
  background: #1d3557; /* fallback si pas d'image */
  color: #f9fafb;
  padding: 120px 20px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-image img {
  width: 100%;
  border-radius: 12px;
}
/*page diagnostic */
.diagnostic-illustration {
  display: flex;
  align-items: flex-start;
  justify-content: left;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  flex-wrap: wrap; /* pour être responsive */
}
.diagnostic-image {
  flex: 1 1 600px;
  text-align: left;
}
.diagnostic-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.diagnostic-text {
  flex: 1 1 400px;
}
.diagnostic-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}
.diagnostic-steps li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}
.diagnostic-steps li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #1d5c8b; /* couleur accent 82 Deals */
  font-weight: bold;
}
/*Réduction de l'interligne:*/
.accompagnement.engagement p {
  line-height: 1.4;
  margin-bottom: 10px;
  }
/* ====== SECTIONS COMMUNES (Frises "diagnostic" & "recherche") ====== */
.timeline-section,
.methodologie-frise {
  background: #f9fafb;
  padding: 80px 0;
}
.timeline-section h2,
.methodologie-frise h2 {
  text-align: center;
  color: #1d5c8b;
  margin-bottom: 40px;
  font-weight: 700;
}
.timeline-section .intro,
.methodologie-frise .intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #555;
  font-size: 1.1em;
}
/* ====== STRUCTURE DE LA FRISE ====== */
.timeline,
.methodologie-frise .timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}
.timeline::before,
.methodologie-frise .timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #1d5c8b;
  z-index: 1;
}
/* ====== ÉLÉMENTS COMMUNS ====== */
.timeline-item,
.methodologie-frise .step {
  background: #fff;
  width: 18%;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.timeline-item:hover,
.methodologie-frise .step:hover {
  transform: translateY(-5px);
}
/* ====== ICÔNES ====== */
.timeline-icon,
.methodologie-frise .icon {
  background: #1d5c8b;
  color: #fff;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
}
.timeline-content h3,
.methodologie-frise .step h3 {
  color: #1d5c8b;
  margin-bottom: 10px;
  font-size: 1.1em;
}
.timeline-content p,
.methodologie-frise .step p {
  color: #333;
  font-size: 0.95em;
  line-height: 1.6;
}

/* ====== BOUTON COMMUN ====== */
.btn-more {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #1d5c8b !important;
  color: #f9fafb !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-more:hover {
  background-color: #2176b3;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .timeline,
  .methodologie-frise .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline::before,
  .methodologie-frise .timeline::before {
    top: 0;
    left: 30px;
    width: 3px;
    height: 100%;
  }

  .timeline-item,
  .methodologie-frise .step {
    width: 90%;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 80px;
  }

  .timeline-icon,
  .methodologie-frise .icon {
    position: absolute;
    left: 0;
    top: 20px;
  }
}

/* ====== CAS D'ÉTUDE ====== */
.case-study {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 40px 60px;
  margin: 40px auto;
  text-align: left;
}

.case-study h3 {
  color: #1d5c8b;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.case-study p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ====== SECTION ACCOMPAGNEMENT ====== */
.accompagnement {
  width: 100%;
  background: #f9fafb;
  overflow: hidden;
  padding: 60px 0;
}
/* Le conteneur centralisé du thème */
.accompagnement .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px; /* espace intérieur à gauche et à droite */
}
.accompagnement-illustration {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  width: 100%;
}
.accompagnement-image {
  flex: 0 0 25%;
  max-width: 380px;
  min-width: 300px;
}
.accompagnement-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.accompagnement-text {
  flex: 0 0 55%;
  padding: 0 20px;
  max-width: 1200px;
}
.accompagnement-text h2 {
  margin-bottom: 20px;
  color: #1d5c8b;
}
.accompagnement-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.accompagnement-steps li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}
.accompagnement-steps li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #1d5c8b;
  font-weight: bold;
}
/* Responsive */
@media (max-width: 900px) {
  .accompagnement-illustration {
    flex-direction: column;
    text-align: center;
  }
  .accompagnement-image,
  .accompagnement-text {
    flex: 1 1 100%;
    padding: 0 20px;
  }
  .accompagnement-image img {
    border-radius: 10px;
    max-width: 80%;
    margin: 0 auto;
  }
}
.engagement-list {
  max-width: 900px;
  margin: 20px 0 20px 0; /* plus d'auto-centre */
  padding-left: 40px; /* pour garder un bon retrait visuel à gauche */
  line-height: 1.7;
  text-align: left;
}
.engagement-list li {
  margin-bottom: 12px;
  list-style-type: disc; /* rond classique */
}
.engagement-list li strong {
  color: #1d5c8b; /* met en valeur les mots-clés */
}
.engagement-list {
  max-width: 900px;
  margin: 20px 0 20px 0; /* plus d'auto-centre */
  padding-left: 40px; /* pour garder un bon retrait visuel à gauche */
  line-height: 1.7;
  text-align: left;
}
.engagement-list li {
  margin-bottom: 12px;
  list-style-type: disc; /* rond classique */
}
.engagement-list li strong {
  color: #1d5c8b; /* met en valeur les mots-clés */
}
.accompagnement-steps li strong {
  color: #1d5c8b; /* met en valeur les mots-clés */
}
.accompagnement {
  background: #f9fafb;
  padding: 80px 20px;
}
.accompagnement h2 {
  text-align: center;
  margin-bottom: 40px;
}
.accompagnement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.accompagnement-grid div {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 1.1rem;
}
.accompagnement-grid i {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 10px;
}
.accompagnement a {
  text-decoration: none; /*supprime le soulignement du texte-lien dans les cases*/
}
/*dernière zone sur bandeau bleu*/
.cta-final {
  background: #1d3557;
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.cta-final .container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: white !important;
}
.cta-final .btn-cta, .cta-final .btn-secondary {
  margin: 0 10px;
  display: inline-block;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
}
.btn-cta {
  background: #31081F;
}
.btn-cta:hover {
  background: #31081F;
  transition: background-color 0.3s;
}
.confirmation-message {
  padding: 15px 20px;
  background-color: #e6ffed;
  border: 1px solid #00a86b;
  color: #006b43;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.echec-message {
  padding: 15px 20px;
  background-color: #ffe6e6;
  border: 1px solid #a80000;
  color: #6b0000;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* === EMPILE LES BOUTONS CTA AU CENTRE DE LA PAGE SUR MOBILE === */

@media (max-width: 768px) {
    .cta-final .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .cta-final .btn-secondaryS,
    .cta-final .btn-secondaryC {
        margin: 10px 0 !important;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
/*MEF page dans recherche :*/
.search-result-block {
    margin-bottom: 20px;
}

.search-result-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-result-link:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none; /*supprime le soulignement du texte-lien dans les cases*/
}

.search-result-link .entry-header {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.search-result-link .entry-content {
    padding: 20px;
}

.search-result-link .entry-content .hero {
    margin: 0;
}
/* === CARTE MACHINE — POUR LES RÉSULTATS DE RECHERCHE et mise en forme en grille === */

.machine-card {
    margin-bottom: 20px;
}
.machine-slide {
    display: block;
    width: 100%;
    max-width: 580px;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #e0e5ec;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0;
    position: relative;
    text-align: center;
    margin: 0 auto;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.machine-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Image */
.machine-slide .machine-image img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

/* Contenu (titre + résumé) */
.machine-slide .machine-content {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0 0 12px 12px;
}

/* Titre */
.machine-slide h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #1d3557;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

/* Résumé */
.machine-slide .machine-summary p {
    margin: 0;
    font-size: 0.95rem;
    color: #1d3557;
    line-height: 1.3;
}
/* === GRILLE RESPONSIVE POUR LES RÉSULTATS DE RECHERCHE === */

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 -10px; /* pour compenser le padding des cartes */
}

.search-result-item {
    padding: 0 10px; /* pour compenser le margin négatif */
}
/* MEF page CONTACT */
/* === STYLISER LE CHAMP DE PIÈCES JOINTES === */

#piece_jointe {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 16px;
    line-height: 1.5;
}
#piece_jointe:focus {
    border-color: #B26E63;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.contact-message-editor {
    width: 100%;
    max-width: 100%;
    height: 300px;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Pour les écrans très petits */
@media (max-width: 480px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

/* Pour les écrans moyens */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Pour les écrans larges */
@media (min-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}