/* =============================================================
   BVTC — CSS PERSONNALISÉ (wp-custom-css)
   Fichier source local — dev.bvtc.fr
   Dernière mise à jour : 2026-08-03
   Catégories :
     1.  Variables CSS (design tokens flex-box)
     2.  Utilitaires texte & layout
     3.  Formulaires HubSpot
     4.  FAQ & Blocs Détails Gutenberg
     5.  Encarts articles — info-index (sommaire)
     6.  Encarts articles — info-card (4 couleurs)
     7.  Encarts articles — info-box
     8.  Maillage interne — Related posts & pages
     9.  Blocs Gutenberg — Colonnes & images
     10. Templates articles — Hero, contenu, fixes
     11. Boutons — Template Création entreprise (29506)
     12. Elementor — Fixes globaux
     13. Footer — Formulaire HubSpot
     [ANCIEN HEADER] Menu / Navigation — À supprimer lors du déploiement du nouveau header
============================================================= */


/* ============================================================
   1. VARIABLES CSS — Design tokens encarts (flex-box-custom)
   Utilisées par info-card et info-index dans les articles blog
============================================================= */
:root {
    --flex-box-custom-color-primary:     #072F85;

    --flex-box-custom-color-blue-bg:     #EFF8FF;
    --flex-box-custom-color-blue-border: #D1E9FF;

    --flex-box-custom-color-red-bg:      #ffefef;
    --flex-box-custom-color-red-border:  #fec7c7;

    --flex-box-custom-color-yellow-bg:   #FFFAEB;
    --flex-box-custom-color-yellow-border: #FEF0C7;

    --flex-box-custom-color-green-bg:    #E6F7F2;
    --flex-box-custom-color-green-border: #C9EDE2;

    --flex-box-custom-font-title: "Roboto", sans-serif;
    --flex-box-custom-font-text:  "Open Sans", sans-serif;
}


/* ============================================================
   2. UTILITAIRES TEXTE & LAYOUT
============================================================= */

/* Couleurs utilitaires (appliquées sur des <span> dans Elementor) */
.text-light { color: var(--e-global-color-3a1dbb6); }
.text-gold  { color: var(--e-global-color-97b77f6); }
.text-blue  { color: var(--e-global-color-f37ef91); }

/* Alignement */
body .center { text-align: center; }

/* Titre H2 custom réutilisable */
body .title-h2 {
    font-size: 46px;
    line-height: 1.3em;
    font-family: "Public Sans";
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    body .title-h2 { font-size: 28px; }
}

/* Verrouillage scroll (menu mobile ouvert) */
body.no-scroll {
    position: fixed;
    overflow-y: hidden;
    width: 100%;
}

/* Débordement horizontal global */
html, body { overflow-x: hidden !important; }

/* Icône SVG dans les boutons Elementor */
.elementor-button-icon svg {
    height: auto;
    width: 1.2rem;
}

/* Lien dans paragraphes */
p a { color: #0A40A6; }

/* Listes & paragraphes — typographie globale */
ul,
ol {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 1.5em;
}

p, ul, li { font-size: 16px; }


/* ============================================================
   3. FORMULAIRES HUBSPOT
   Cible tous les formulaires HubSpot embarqués (shortcode ou widget Elementor)
============================================================= */

.hs-form {
    border-radius: 12px;
    font-family: "Open Sans";
}

/* Labels inline avec le champ */
.hs-form label,
.hs-form .hs-form-required {
    display: contents !important;
}

.hs-form label span {
    color: var(--Primary-900, #041F63);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

/* Colonnes */
.hs-form fieldset.form-columns-2 {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    align-self: stretch;
}

fieldset.form-columns-1 { margin-top: 24px; }

/* Champs texte */
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-input {
    width: 100% !important;
    padding: 14px 12px;
    gap: 10px;
    font-size: 16px;
    background-color: #f9fbff;
    color: #333;
    margin-top: 0;
    border-radius: 10px;
    border: 1px solid var(--Primary-900, #041F63);
    background: var(--Quaternary-200, #FAFCFF);
}

.hs-form ::placeholder {
    color: #777;
    font-weight: 400;
}

/* Bouton submit */
.hs-form input[type="submit"] {
    background-color: #041F63;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.hs-form input[type="submit"]::after {
    content: '↗';
    font-size: 16px;
    display: inline-block;
}

/* Champs & erreurs */
.hs-form-field           { margin-bottom: 20px; }
.input                   { margin-top: 6px; }
.hs-form-booleancheckbox { list-style-type: none; padding: 0 !important; }
.hs-form-booleancheckbox span { margin-left: 10px; }
.hs-form-booleancheckbox a { color: var(--e-global-color-d8db1ee); }
.hs-form ul.inputs-list  { padding: 0; margin-bottom: 20px; }
ul.no-list.hs-error-msgs.inputs-list { display: block; color: red; list-style: none; }
label.hs-error-msg.hs-main-font-element { font-size: 14px; }

/* Texte de description HubSpot (masqué car redondant) */
.hs-richtext.hs-main-font-element { display: none; }

/* Cas particuliers */
.fieldset.form-columns-1  { margin: 9px 0 !important; }

/* Guide VTC — formulaire mobile */
@media (max-width: 700px) {
    .form1guidevtc { min-height: 340px; }
}

/* Overrides desktop pour formulaires en footer et guide */
@media screen and (min-width: 768px) {
    .form1guidevtc .hs-form-field,
    footer .hs-form-field { margin-bottom: 0; }
    footer .input         { margin-top: 0; }
}

/* Responsive 2 colonnes → 1 colonne */
@media (max-width: 767px) {
    .hs-form fieldset.form-columns-2 { flex-direction: column; }
    .fieldset.form-columns-1         { margin: 0 !important; }
    .hs-form-field                   { margin: 0; }
    input.hs-button.primary.large    { width: -webkit-fill-available; justify-content: center; }
}

/* Formulaire HubSpot en ligne (override paragraphes parasites) */
.hbspt-form p { display: none; }


/* ============================================================
   4. FAQ & BLOCS DÉTAILS GUTENBERG
============================================================= */

/* Bloc <details> natif Gutenberg */
.wp-block-details {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 24px;
    background-color: #ffffff;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wp-block-details[open] { background-color: #f9f9ff; }

.wp-block-details summary {
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    position: relative;
    padding-right: 56px;
}

.wp-block-details p { width: 95%; margin-top: 12px; font-size: 16px; line-height: 1.6; }

/* Carré bleu (arrière-plan de l'icône) */
.wp-block-details summary::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #0039A6;
    border-radius: 12px;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Chevron Font Awesome (tourne à l'ouverture) */
.wp-block-details summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: white;
    position: absolute;
    top: 50%;
    right: 0;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    z-index: 2;
}

.wp-block-details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Bloc FAQ SEOPress — espacement */
.wp-block-wpseopress-faq-block-v2.is-layout-flow.wp-block-faq-block-v2-is-layout-flow {
    margin-top: 3%;
}


/* ============================================================
   5. ENCARTS ARTICLES — INFO-INDEX (Sommaire d'article)
============================================================= */

.info-index { margin-bottom: 20px; }

.info-index__section {
    width: 100%;
    border: 1px solid var(--flex-box-custom-color-primary);
    border-radius: 15px;
}

.info-index__title {
    color: var(--flex-box-custom-color-primary);
    margin: 0 0 15px !important;
}

.info-index__list { list-style: none; margin: 0; padding: 0; }

.info-index__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: underline;
    color: var(--flex-box-custom-color-primary);
    margin-top: 5px;
}

.info-index__icon {
    display: flex;
    fill: var(--flex-box-custom-color-primary);
    transition: fill 0.3s;
}

.info-index__text { display: inline-block; }

/* Desktop : centré à 60% */
@media (min-width: 1024px) {
    .info-index         { width: 60%; margin: 0 auto 70px; }
    .info-index__section { padding: 50px; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .info-index__section { padding: 30px; }
}

/* Mobile */
@media (max-width: 767px) {
    .info-index__section { padding: 20px; }
    .info-index__title   { font-size: 24px; }
}


/* ============================================================
   6. ENCARTS ARTICLES — INFO-CARD (4 couleurs : bleu, rouge, jaune, vert)
   Icônes chargées depuis go.bvtc.fr/hubfs/bvtc.fr/ (HubSpot CDN)
============================================================= */

.info-card { margin-bottom: 20px; }

.flex-box-custom { display: flex; flex-direction: column; }
.flex-box-custom .info-card__title { font-family: var(--flex-box-custom-font-text); }

.info-card__box {
    padding: 20px;
    border-left: 8px solid;
    border-radius: 12px;
}

.info-card__box--blue   { background: var(--flex-box-custom-color-blue-bg);   border-color: var(--flex-box-custom-color-blue-border); }
.info-card__box--red    { background: var(--flex-box-custom-color-red-bg);    border-color: var(--flex-box-custom-color-red-border); }
.info-card__box--yellow { background: var(--flex-box-custom-color-yellow-bg); border-color: var(--flex-box-custom-color-yellow-border); }
.info-card__box--green  { background: var(--flex-box-custom-color-green-bg);  border-color: var(--flex-box-custom-color-green-border); }

.info-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }

.info-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: center / 16px no-repeat;
}

.info-card__icon--blue   { background-color: var(--flex-box-custom-color-blue-border);   background-image: url("https://go.bvtc.fr/hubfs/bvtc.fr/a-savoir-icon.svg"); }
.info-card__icon--red    { background-color: var(--flex-box-custom-color-red-border);    background-image: url("https://go.bvtc.fr/hubfs/bvtc.fr/important-icon.svg"); }
.info-card__icon--yellow { background-color: var(--flex-box-custom-color-yellow-border); background-image: url("https://go.bvtc.fr/hubfs/bvtc.fr/a-noter-icon.svg"); }
.info-card__icon--green  { background-color: var(--flex-box-custom-color-green-border);  background-image: url("https://go.bvtc.fr/hubfs/bvtc.fr/saviez-vous-icon.svg"); }
.info-card__icon2--green { background-color: var(--flex-box-custom-color-green-border);  background-image: url("https://go.bvtc.fr/hubfs/bvtc.fr/smile-icon.svg"); }

.info-card__title { font-weight: 700; font-size: 18px; }

.info-card__content p,
.info-card__content ul { margin: 0 !important; }
.info-card__content ul { padding-left: 14px; line-height: 1.6; }

/* Bouton dans les encarts */
.info-card__button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 16px;
    font-family: var(--flex-box-custom-font-text);
    font-weight: 700;
    color: #fff !important;
    background: #0A40A6;
    border: 1px solid #0A40A6;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.3em;
}

.info-card__button:hover,
.info-card__button:focus {
    background: transparent;
    color: #0A40A6 !important;
}

.info-card__button-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
}

.info-card__button-icon     { display: flex; align-items: center; }
.info-card__button-icon svg { width: 1.2rem; }


/* ============================================================
   7. ENCARTS ARTICLES — INFO-BOX (encart générique simple)
============================================================= */

p.info-box-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    background: center / 16px 16px no-repeat;
}

p.info-box-icon + p {
    display: inline-block;
    margin-bottom: 12px;
    vertical-align: middle;
    line-height: 32px;
    font-weight: 700;
    font-size: 18px;
}

.info-box p { margin-bottom: 9px !important; }


/* ============================================================
   8. MAILLAGE INTERNE — Related posts & pages
============================================================= */

/* Grille articles liés */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.related-post-card {
    background-color: #fff;
    border: 1px solid #e6e9f1;
    border-radius: 14px;
    transition: box-shadow 0.3s ease;
}

.related-post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.related-post-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 17px;
    gap: 14px;
}

.related-post-icon {
    flex-shrink: 0;
    background-color: #b8862c;
    border-radius: 12px;
    padding: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-post-icon img { width: 24px; height: 24px; object-fit: contain; }
.related-post-title    { flex: 1; }

/* Grille pages piliers liées */
.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.related-page-card {
    background-color: #fff;
    border: 1px solid #e6e9f1;
    border-radius: 14px;
    transition: box-shadow 0.3s ease;
}

.related-page-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.related-page-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 17px;
    gap: 14px;
}

.related-page-icon {
    flex-shrink: 0;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-page-icon img { width: 40px; height: 40px; object-fit: contain; }
.related-page-title    { flex: 1; }


/* ============================================================
   9. BLOCS GUTENBERG — Colonnes & images
============================================================= */

.wp-block-columns {
    padding: 3% 0;
    gap: 5%;
}

:where(.wp-block-columns) { margin-bottom: 0em; }

.wp-block-columns > .wp-block-column { overflow: hidden; }

.wp-block-columns > .wp-block-column img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrondis asymétriques : image seule dans la première colonne */
.wp-block-columns > .wp-block-column:first-child:has(> figure:only-child) img {
    border-radius: 64px 0 0 64px;
}

/* Arrondis asymétriques : image seule dans la dernière colonne */
.wp-block-columns > .wp-block-column:last-child:has(> figure:only-child) img {
    border-radius: 0 64px 64px 0;
}

/* Override : aucun arrondi */
.no-border img { border-radius: 0 !important; }

@media (max-width: 767px) {
    .wp-block-columns {
        padding: 3% 0;
        gap: 32px;
    }
    .wp-block-columns > .wp-block-column img {
        border-radius: 12px !important;
    }
}


/* ============================================================
   10. TEMPLATES ARTICLES — Hero, contenu, fixes
============================================================= */

/* Bandeau pleine largeur (casse le container Gutenberg) */
.post-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #f3f3f3;
    padding: 3rem 0;
}

.post-hero .wp-block-column { padding: 0 1rem; }

/* Fix padding mobile page formation-taxi */
@media (max-width: 767px) {
    body .formation-taxi-bloc {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Espacement titres et paragraphes dans les articles Elementor */
.elementor-widget-theme-post-content p  { line-height: 1.8; margin-bottom: 20px; }
.elementor-widget-theme-post-content h2 { margin-top: 40px; margin-bottom: 20px; }
.elementor-widget-theme-post-content h3 { margin-top: 30px; margin-bottom: 15px; }

/* Fix layout single-post */
.single-post .elementor-location-single .elementor-element.elementor-element-581a28c.e-flex.e-con-boxed.e-con.e-parent.e-lazyloaded {
    padding: 0;
}

.single-post figure { height: 100%; }


/* ============================================================
   11. BOUTONS — Template Création entreprise (Elementor ID 29506)
   Scopé à ce template uniquement
============================================================= */

.elementor-29506 .btn-primary a {
    background-color: var(--e-global-color-d8db1ee, #0a40a6);
    border-color: var(--e-global-color-d8db1ee, #0a40a6);
    color: #fff;
}

.elementor-29506 .btn-outline a {
    background-color: transparent;
    color: var(--e-global-color-d8db1ee, #0a40a6);
    border-color: var(--e-global-color-d8db1ee, #0a40a6);
}

.elementor-29506 .btn-line {
    display: flex;
    flex-direction: row;
}

.elementor-29506 .btn-line a:hover,
.elementor-29506 .btn-line a:focus {
    background-color: #fff;
    color: #0A40A6;
    border-color: #0A40A6;
}


/* ============================================================
   12. ELEMENTOR — Fixes globaux
============================================================= */

/* Fix widgets avec animation d'entrée qui restent invisibles sans JS */
.elementor-invisible.elementor-widget-icon-box {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
}

/* Pagination blog — réorganisation flex (Précédent | numéros | Suivant) */
.elementor-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.elementor-pagination .page-numbers.prev { order: 1; flex: 1; text-align: left; }
.elementor-pagination .page-numbers.next { order: 3; flex: 1; text-align: right; }
.elementor-pagination .page-numbers      { margin: 0 5px; }
.elementor-pagination .page-numbers:not(.prev):not(.next) { order: 2; flex: none; display: inline-block; text-align: center; }

@media screen and (max-width: 768px) {
    .elementor-pagination { justify-content: center; }
    .elementor-pagination .page-numbers.prev,
    .elementor-pagination .page-numbers.next { display: none; }
    .swiper-pagination-bullets.swiper-pagination-horizontal { bottom: 10px; left: 50% !important; width: 100%; }
}

/* Accordéon Elementor Pro — icône SVG blanche */
.elementor-widget-n-accordion .e-n-accordion-item-title-icon span > svg {
    fill: #ffffff !important;
    height: var(--n-accordion-icon-size);
}

/* Masque pages spécifiques sur mobile (IDs pages de formation) */
@media (max-width: 767px) {
    .page-id-253741 .elementor-27092 .elementor-element.elementor-element-f03245c,
    .page-id-107994 .elementor-27092 .elementor-element.elementor-element-f03245c,
    .page-id-107859 .elementor-27092 .elementor-element.elementor-element-f03245c,
    .page-id-108451 .elementor-27092 .elementor-element.elementor-element-f03245c,
    .page-id-226784 .elementor-27092 .elementor-element.elementor-element-f03245c { display: none; }
}

/* Icon-box responsive (media 900px) */
@media (max-width: 900px) {
    .elementor-icon-box-wrapper,
    .elementor-icon-box-title { width: 100%; }
    .elementor-icon-box-title p,
    .elementor-icon-box-title a { padding: 4px 0; display: block; width: 100%; }
}


/* ============================================================
   13. FOOTER — Formulaire HubSpot
============================================================= */

/* Masque le récapitulatif d'erreurs global HubSpot (redondant avec erreurs inline) */
.elementor-location-footer .hs_error_rollup { display: none; }


/* =============================================================
   [ANCIEN HEADER] MENU / NAVIGATION
   ⚠️  À SUPPRIMER lors du déploiement du nouveau header
   (actuellement en cours de conception sur la page création-entreprise-vtc)
   Ces règles gèrent : sticky header desktop, menu mobile pleine hauteur,
   couleur chevrons, padding titres menu, icon-box dans le menu.
============================================================= */

/* Header sticky desktop */
@media (min-width: 767px) {
    header > .elementor-element:first-of-type {
        position: fixed !important;
        width: 100%;
        top: 0 !important;
        background-color: white !important;
        margin: 0;
    }
}

/* Menu déroulant mobile — plein écran */
.elementor-widget-n-menu .e-n-menu[data-layout=dropdown] .e-n-menu-wrapper {
    background-color: #fff;
    height: 100vh;
}

/* Padding titres menu mobile */
@media (max-width: 900px) {
    .elementor-widget-n-menu .e-n-menu-title {
        padding: 15px 20px !important;
    }
}

/* Couleur chevron — global (blanc dans le header) */
svg.e-font-icon-svg.e-fas-chevron-up { fill: #ffffff !important; }

/* Couleur chevron — sous-menu (noir) */
.e-n-menu-title svg.e-font-icon-svg.e-fas-chevron-up { fill: #000000 !important; }

/* ============================================================
   FIN — [ANCIEN HEADER]
============================================================= */
