/*
Theme Name: Divi Enfant
Template: Divi
Author: Fred
Version: 1.1 (refonte harmonisation 2025)
*/

/*
======================================================
FEUILLE DE STYLE PERSONNALISÉE - THEME ENFANT DIVI
======================================================

== SOMMAIRE ==
01. Style global typographique (Poppins partout)
02. Titre H1 principal
03. Titres H2 avec ligne orange
04. Bouton lien accessible : Demande de devis
05. Bandeau supérieur (top header)
06. Pied de page (footer widgets)
07. Lien vers page "services"
08. Barre sociale flottante (réseaux sociaux)
09. Compteur d'années d'expérience - Version statique
10. EN-TÊTE FIXE – CORRECTION CLS SUR MOBILE UNIQUEMENT
11. AVIS CLIENTS – PHRASE + INTÉGRATION TRUSTINDEX
*/

/* ======================================================
   1. STYLE GLOBAL TYPOGRAPHIQUE - POLICE POPPINS PARTOUT
====================================================== */
body, p, li, span, h1, h2, h3, h4, h5, h6, a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #222222;
    line-height: 1.7;
}

/* ====================================================
   2. TITRE H1 PRINCIPAL + SLOGAN
==================================================== */

/* Style général du H1 */
h1.titre-principal {
    font-weight: 700;
    text-align: center;
    color: #222222;
    margin: 40px 0;
    padding: 0 10px;
    line-height: 1.1;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Lignes du H1 sur deux lignes fixes */
.ligne-1 {
    display: block;
    margin-bottom: 4px; /* ✅ espacement équilibré entre ligne 1 et ligne 2 */
}

.ligne-2 {
    display: block;
    margin-bottom: 0.2em; /* ✅ léger espace avant le slogan */
}

/* Slogan en-dessous du H1 */
.slogan {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #b85a00;
    text-align: center;
    line-height: 1.4;
    font-size: 17px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Responsive MOBILE */
@media (max-width: 600px) {
    h1.titre-principal {
        font-size: 26px;
        margin-bottom: 20px;
        hyphens: none;
        letter-spacing: 0;
        overflow-x: hidden;
    }

    .ligne-1 {
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 20px;
    }

    .ligne-2 {
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 19px; /* ✅ ajustement précis */
    }

    .slogan {
        font-size: 15px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
}

/* Responsive TABLETTE */
@media (min-width: 601px) and (max-width: 1024px) {
    h1.titre-principal {
        font-size: 36px;
    }

    .ligne-1 {
        margin-bottom: 4px;
    }

    .ligne-2 {
        margin-bottom: 0.2em;
    }

    .slogan {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Responsive DESKTOP */
@media (min-width: 1025px) {
    h1.titre-principal {
        font-size: 44px;
    }

    .slogan {
        font-size: 18px;
        margin-top: 12px;
        margin-bottom: 12px;
    }
}

/* ====================================================
   PHRASE HERO RESPONSIVE (Sur bouton devis)
==================================================== */
.hero-phrase {
    text-align: center;
    font-weight: 600;
    font-size: 22px;
    color: #222;
    margin-bottom: 20px;
    padding: 0 10px;
    line-height: 1.1; /* réduit l’écart global */
}

.hero-phrase .ligne-1,
.hero-phrase .ligne-2 {
    display: block;
    white-space: nowrap;
}

.hero-phrase .ligne-1 {
    margin-bottom: 6px; /* ✅ écart légèrement rétabli pour bureau/tablette */
}

.hero-phrase .ligne-2 {
    margin-bottom: 0;
}

/* Responsive MOBILE */
@media (max-width: 600px) {
    .hero-phrase {
        font-size: 18px;
        overflow-x: hidden;
        line-height: 1;
    }

    .hero-phrase .ligne-1 {
        margin-bottom: 2px; /* ✅ réduit uniquement sur mobile */
    }

    .hero-phrase .ligne-1,
    .hero-phrase .ligne-2 {
        font-size: 17px;
    }
}

/* ======================================================
   3. TITRE H2 AVEC TRAIT ORANGE
   ====================================================== */
.h2-ligne-orange {
    position: relative;
    display: table;
    padding-bottom: 10px;
    margin: 20px auto 40px auto; /* marge basse optimisée */
    color: #222222;
    text-align: center;
}

.h2-ligne-orange::after {
    content: "";
    display: block;
    height: 4px;
    background-color: #f7931e;
    margin: 8px auto 0 auto;
    width: 100%;
}

/* ===============================================
   4. Bouton lien accessible : Demande de devis
   =============================================== */
.cta-accessible {
    display: inline-block;
    background-color: #a64b00; /* plus foncé */
    color: white;
    font-size: 18px;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    border: 2px solid #a64b00;
    transition: all 0.3s ease-in-out;
}

/* ✅ Hover  : texte bien contrasté */
.cta-accessible:hover {
    background-color: white;
    color: #a64b00;
    border-color: #a64b00;
}

/* ======================================================
   5. BANDEAU SUPERIEUR (TOP HEADER)
   ====================================================== */
#top-header,
#top-header #et-secondary-nav li ul {
    background-color: #000;
}

/* ======================================================
   6. PIED DE PAGE (FOOTER WIDGETS) – VERSION NETTOYÉE
   ====================================================== */

/* Structure générale des widgets footer */
.footer-widget {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

#footer-widgets {
    display: flex;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
}

/* Image logo centrée */
#footer-widget-1 img {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Texte centré dans le widget 2 */
#footer-widget-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
}

.footer-widget h2 {
    margin: 0 0 5px 0;
}

.footer-widget p {
    margin: 5px 0;
}

/* Barre orange du bas (copyright) */
#main-footer {
    background-color: #f7931e;
    padding: 10px 0;
    margin: 0;
    border: none;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    height: auto;
}

/* Masquer toute barre vide inutile sous le pied de page */

/* Supprimer les divs ou widgets vides éventuels */
#footer-widgets div:empty,
#main-footer div:empty,
#main-footer p:empty {
    display: none;
}

/* Responsive mobile */
@media (max-width: 600px) {
    #footer-widgets {
        flex-direction: column;
        align-items: center;
    }

    .footer-widget {
        width: 100%;
        padding: 10px 0;
    }
}

/* Amélioration accessibilité mobile : agrandir les zones cliquables */
.footer-tel,
.footer-mail {
    display: inline-block;
    padding: 12px 16px;
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    touch-action: manipulation;
}

@media (max-width: 600px) {
    .footer-tel,
    .footer-mail {
        width: 100%;
        text-align: center;
    }
}

/* Style du titre "Contactez-nous" */
.footer-title {
    margin: 0 0 5px 0;
}

/* ======================================================
   7. LIEN VERS LA PAGE SERVICES - VERSION ÉPURÉE
   ====================================================== */
.lien-services {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lien-services:hover {
    color: #f7931e;
}

/* ======================================================
   8. BARRE SOCIALE FLOTTANTE (RESEAUX SOCIAUX)
   ====================================================== */
.social-floating-bar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.social-floating-bar a {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease;
}

.social-floating-bar a[aria-label="Facebook"]    { background: #1877F2; }
.social-floating-bar a[aria-label="Instagram"]   { background: #E4405F; }
.social-floating-bar a[aria-label="LinkedIn"]    { background: #0077B5; }
.social-floating-bar a[aria-label="Pinterest"]   { background: #BD081C; }
.social-floating-bar a[aria-label="Google Maps"] { background: #34A853; }
.social-floating-bar a[aria-label="Pages Jaunes"] {
    background: #FFD700;
    color: black;
}

.social-floating-bar a:hover {
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .social-floating-bar {
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    background: none;
    padding: 0;
  }
}

/* Masquer la barre sociale flottante sur la page Mentions légales */
.page-id-293 .social-floating-bar {
    display: none !important;
}

/* ======================================================
   9. COMPTEUR D'ANNÉES D'EXPÉRIENCE - VERSION STATIQUE
   ====================================================== */
.compteur-annees {
    font-size: 64px; /* même taille que l’ancien compteur */
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15); /* pour l’effet d’ombre léger */
    margin-bottom: 10px;
}

.sous-texte-annees {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    color: #222222;
}

/* ============================================================================
   10.EN-TÊTE FIXE – CORRECTION CLS SUR MOBILE UNIQUEMENT
============================================================================ */

/* === 1. HEADER MOBILE FIXE === */
@media (max-width: 980px) {
    #main-header {
        height: 110px !important;
    }
    #main-header .container {
        height: 110px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #main-header .logo_container img {
        max-height: 60px !important;
        height: auto;
        object-fit: contain;
    }
    .et_mobile_nav_menu {
        top: 110px !important;
    }
    body.et_fixed_nav.et_show_nav #page-container {
        padding-top: 110px !important;
    }
}

/* ======================================================
   11. AVIS CLIENTS – PHRASE + INTÉGRATION TRUSTINDEX
====================================================== */

.avis-phrase {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    margin-bottom: 16px;
    padding: 0 10px;
}

@media (max-width: 480px) {
    .avis-phrase {
        font-size: 16px;
    }
}