/* ===================================================================
   V2 — Les sens du travail — styles additionnels
   Chargé APRÈS style.css. Le SCSS du thème n'est pas compilé (pas de
   build) : tous les styles de la V2 vivent ici, servis directement.
   =================================================================== */

/* ===================================================================
   OFFRE — Sections numérotées transformées en accordéons
   Principe graphique conservé (numéro + titre + couleurs alternées),
   la description devient un panneau dépliable.
   =================================================================== */
.kl-accordion-offer__header {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    gap: 16px;
    -webkit-appearance: none;
    appearance: none;
}
@media (min-width: 992px) {
    .kl-accordion-offer__header { gap: 22px; }
}
.kl-accordion-offer__header:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}
.kl-accordion-offer__header--static,
.kl-accordion-offer__header[disabled] {
    cursor: default;
}

/* Numéro : taille réduite par rapport au titre (demande « numéros plus petits ») */
.kl-title-number.kl-title-number--sm {
    font-size: 2.4rem;
    line-height: 1.1;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .kl-title-number.kl-title-number--sm {
        font-size: 3rem;
    }
}

/* Chevron indicateur d'ouverture — placé À GAUCHE, aligné en colonne.
   Dessiné avec un carré à 2 bordures pivoté à 45° : une seule pointe nette.
   Tailles/marges ajustables ici. */
.kl-accordion-offer__icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 10px;      /* aligne le chevron sur la 1re ligne du titre/numéro */
    box-sizing: border-box;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);   /* pointe vers le bas */
    transition: transform .35s ease;
}
@media (min-width: 992px) {
    .kl-accordion-offer__icon {
        width: 17px;
        height: 17px;
        margin-top: 15px;
    }
}
.kl-accordion-offer.is-open .kl-accordion-offer__icon {
    transform: rotate(225deg);  /* pointe vers le haut à l'ouverture */
}

/* Panneau dépliable : animation de hauteur pilotée en JS (max-height) */
.kl-accordion-offer__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
}
.kl-accordion-offer__panel-inner {
    padding-top: 24px;
}
@media (min-width: 992px) {
    .kl-accordion-offer__panel-inner {
        padding-top: 30px;
        /* aligne le texte sous le titre, après la gouttière du numéro */
        padding-left: 0;
    }
}
/* Repli mouvement clavier / no-JS : si JS absent, on affiche le contenu */
.no-js .kl-accordion-offer__panel { max-height: none; }

/* ===================================================================
   RÉFÉRENCES & RÉALISATIONS — Logos + quinconce des aplats
   =================================================================== */

/* Logo affiché en haut de carte (page Références + carrousel Réalisations) */
.kl-card-ref-logo {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    height: 88px;   /* zone logo de hauteur FIXE => tous les titres démarrent au même Y */
}
.kl-card-ref-logo img {
    max-height: 88px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Harmonisation avec l'univers N&B botanique : désaturation + fondu
       du fond blanc du logo dans l'aplat de couleur. */
    filter: grayscale(100%);
    mix-blend-mode: multiply;
}

/* Alignement harmonieux des cartes de la page Références :
   - hauteurs de cartes égales (les colonnes Bootstrap s'étirent déjà,
     la carte remplit sa colonne via height:100%) ;
   - « Lire plus » plaqué en bas de chaque carte (margin-top:auto). */
/* Contenu ancré en haut de la carte (logo en haut) : le thème utilise
   justify-content:flex-end sur .kl-card-reference-modif. */
.kl-section-post-ref .kl-card-reference {
    justify-content: flex-start;
}
/* LE point clé : le thème aligne le titre par le BAS via le <h3>
   (.kl-card-header-ref h3 { align-items: end }). On le remet en HAUT →
   titre collé sous le logo, l'espace des titres courts passe dessous.
   Les extraits (hauteur fixe) restent alignés d'une carte à l'autre. */
.kl-section-post-ref .kl-card-header-ref h3 {
    align-items: flex-start;
}

/* QUINCONCE = alternance de teintes des aplats (damier sur 3 colonnes).
   1 carte sur 2 : fond sombre + texte clair + titre jaune. Le logo est
   traité à l'inverse (inversion + mix-blend screen) pour rester visible. */
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-card-reference {
    background: #212B2E;
    color: #ffffff;
}
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-card-header-ref h3 {
    color: #EEFF6E;
}
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-card-content-ref,
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-card-content-ref * {
    color: #ffffff;
}
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-btn-read-more.kl-color-black-theme {
    color: #ffffff !important;
}
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-btn-read-more-black::before {
    background: #EEFF6E;
}
/* Logo sur carte SOMBRE : inversion + screen (au lieu de multiply) */
.kl-section-post-ref .kl-col-card-ref:nth-child(even) .kl-card-ref-logo img {
    filter: grayscale(100%) invert(1);
    mix-blend-mode: screen;
}

/* Quinconce (décalage vertical alterné) — DÉSACTIVÉ au profit d'un
   alignement propre (titres à la même hauteur). Décommenter pour le
   rétablir, mais les cartes ne seront alors plus alignées entre elles.
@media (min-width: 1200px) {
    .kl-section-post-ref .kl-col-card-ref:nth-child(3n + 2) { margin-top: 64px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .kl-section-post-ref .kl-col-card-ref:nth-child(2n) { margin-top: 48px; }
}
*/

/* ===================================================================
   ACCUEIL — Carrousel de témoignages
   =================================================================== */
.kl-section-temoignages {
    padding: 60px 0;
}
@media (min-width: 992px) {
    .kl-section-temoignages { padding: 90px 0; }
}
.kl-slick-temoignages.kl-hidden-slick { opacity: 0; }
.kl-slick-temoignages { transition: opacity .3s ease; }

.kl-temoignage-slide { padding: 0 8px; }
.kl-temoignage-item {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-top: 30px;
}
/* Guillemet décoratif, dans le jaune de la marque */
.kl-temoignage-item::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    left: -4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 90px;
    line-height: 1;
    color: #eeff6e;
    pointer-events: none;
}
.kl-temoignage-quote {
    margin: 0 0 28px;
    font-style: italic;
    line-height: 1.5;
}
.kl-temoignage-quote p { margin: 0 0 12px; }
.kl-temoignage-quote p:last-child { margin-bottom: 0; }
.kl-temoignage-meta { gap: 18px; }
.kl-temoignage-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.kl-temoignage-logo img {
    max-height: 54px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}
.kl-temoignage-author { font-size: 1.15rem; }
.kl-temoignage-role { color: #5b6467; font-size: .95rem; }

/* Contrôles réutilisant l'esthétique des flèches Slick du thème */
.kl-temoignages-controls {
    display: flex;
    gap: 14px;
    margin-top: 36px;
}
.kl-temoignages-controls .kl-slick-arrow {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

/* ===================================================================
   À PROPOS — Carrousel de collaborateurs (fond sombre)
   =================================================================== */
.kl-slick-collaborateurs.kl-hidden-slick { opacity: 0; }
.kl-slick-collaborateurs { transition: opacity .3s ease; margin-top: 20px; }

.kl-collaborateur-slide { padding: 0 15px; height: auto; }
.kl-slick-collaborateurs .slick-track { display: flex; }
.kl-slick-collaborateurs .slick-slide { height: auto; }
.kl-slick-collaborateurs .slick-slide > div { height: 100%; }

.kl-collaborateur-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px 0 24px;
}
.kl-collaborateur-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 22px;
    background: #2b3538;
}
.kl-collaborateur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kl-collaborateur-nom {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.kl-collaborateur-texte {
    font-size: .98rem;
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}
.kl-collaborateur-texte p { margin: 0 0 10px; }
.kl-collaborateur-texte p:last-child { margin-bottom: 0; }
.kl-collaborateur-social {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 16px;
}
.kl-collaborateur-social a {
    display: inline-flex;
    transition: opacity .2s ease;
}
.kl-collaborateur-social a:hover { opacity: .7; }

.kl-collaborateurs-controls {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}
.kl-collaborateurs-controls .kl-slick-arrow {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

/* ===================================================================
   PARTAGE — Icônes de partage réseaux sociaux (articles)
   =================================================================== */
.kl-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid #e4e6e2;
}
.kl-share__label { font-size: 1rem; }
.kl-share__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
}
/* Le thème ajoute un tiret "-" devant chaque <li> du contenu d'article
   (.kl-gutenberg ul li::before). On le neutralise pour la liste de partage. */
.kl-share__list li::before {
    content: none !important;
    display: none !important;
}
.kl-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eeff6e;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    position: relative;
}
.kl-share__link:hover { transform: translateY(-2px); background: #e2f24a; }
.kl-share__copied {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #212b2e;
    color: #fff;
    font-size: .78rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.kl-share__copy.is-copied .kl-share__copied { opacity: 1; }

/* ===================================================================
   Sélecteur de langue GTranslate au look d'origine (Fr / En)
   Le dropdown natif de GTranslate reste dans le DOM (moteur de trad)
   mais est déporté hors écran ; les liens Fr/En réutilisent le style
   du thème (.kl-menu-language) avec le point d'état actif.
   =================================================================== */
.kl-lang-switcher {
    display: flex;
    align-items: center;
}
.kl-lang-switcher .gtranslate_wrapper {
    position: absolute !important;
    left: -9999px !important;
    top: 0;
}
.kl-gt-switcher {
    list-style: none;
    margin: 0;
}
.kl-gt-switcher .nav-link {
    cursor: pointer;
}

/* @V2-CSS-END */
