/* ============================================================================
   FONDATIONS DONALD BECOTTE — styles propres au site

   Emplacement : templates/contractor/becotte.css

   POURQUOI ICI. Le manifeste du gabarit enfant (templateDetails.xml) ne livre
   que templateDetails.xml et le dossier html/. Tout le reste — css, fonts,
   images, js — est livre par la balise <media> et REMPLACE a chaque mise a
   jour du gabarit. Ces regles etaient dans
   media/templates/site/contractor/css/custom.css : elles auraient donc ete
   perdues a la prochaine mise a jour, malgre la mention contraire qui figurait
   en tete de ce fichier. Un fichier ajoute ici, a cote de templateDetails.xml,
   n'est jamais ecrase (verifie avec error.php).

   COMMENT IL EST APPELE. Gabarits > Styles > Fondations Donald Becotte >
   onglet Custom > « Custom head code », a la premiere ligne. Il se charge donc
   apres custom.css et avant les styles ecrits en base : exactement la position
   qu'avaient ces regles. Si la balise <link> disparait, ces styles ne
   s'appliquent plus : c'est la premiere chose a verifier.

   POUR MODIFIER. Systeme > Gabarits du site > Contractor Details and Files,
   puis becotte.css dans la liste des fichiers. Modifiable depuis l'admin,
   sans passer par le serveur.

   Agence Panican — 10/11/2026
   ============================================================================ */

/* --- Bandeau d'en-tête : le titre est un H1, il reprend le style du H2 ---- */
.hot_swipe_carousel_slides .contents h1 {
    margin: 0;
    padding-bottom: 0;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 500;
    color: #fff;
}

.hot_swipe_carousel_slides .contents h1 span {
    color: var(--sparkycolor1);
}

.hot_swipe_carousel_slides .contents img {
    margin-bottom: 18px;
}

/* --- Services : titre à gauche, photo dessous, texte à côté --------------- */
.sparky_row_service .sparky_col0 figure {
    margin: 18px 0 0;
}

.sparky_row_service .sparky_col0 figure + figure {
    margin-top: 12px;
}

.sparky_row_service .sparky_col0 h2,
.sparky_row_service .sparky_col0 h3 {
    padding-bottom: 0;
    border-left: 4px solid var(--sparkycolor1);
    padding-left: 14px;
}

.sparky_row_service.alt_service {
    background: #f6f6f6;
}

.sparky_row_service img {
    border-radius: 10px;
}

/* --- Réalisations : trois cartes noires et rouges ------------------------- */
.realisations_row .sparky_cell {
    padding-left: 12px;
    padding-right: 12px;
}

.realisation_carte {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 42px 28px 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.realisation_carte:hover,
.realisation_carte:focus-within {
    border-color: var(--sparkycolor1);
    background: rgba(237, 27, 36, 0.07);
    transform: translateY(-4px);
}

.realisation_carte i {
    font-size: 46px;
    line-height: 1;
    color: var(--sparkycolor1);
    margin-bottom: 20px;
}

.realisation_carte h2,
.realisation_carte h3 {
    color: #fff;
    padding-bottom: 10px;
    font-size: 24px;
}

.realisation_carte p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 24px;
    flex: 1 1 auto;
}

.realisation_carte .sparky_button {
    margin: 0;
}

/* --- Bandeau d'appel à l'action ------------------------------------------ */
.cta_row {
    background: #f6f6f6;
}

.cta_row h2 span {
    color: var(--sparkycolor1);
}

/* --- Pied de page --------------------------------------------------------- */
.becotte_copyright {
    margin: 0;
    font-size: 14px;
}

.becotte_copyright a {
    color: #fff;
    text-decoration: underline;
}

.becotte_copyright a:hover,
.becotte_copyright a:focus {
    color: var(--sparkycolor1);
}

.becotte_facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.becotte_facebook i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sparkycolor1);
    color: #fff;
    font-size: 17px;
}

.becotte_facebook:hover i,
.becotte_facebook:focus i {
    background: #fff;
    color: var(--sparkycolor1);
}

/* --- Carte Google sur la page Nous joindre -------------------------------- */
.becotte_carte {
    position: relative;
    min-height: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: #ededed;
}

.becotte_carte iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

.becotte_carte > p {
    margin: 0;
    padding: 140px 20px;
    text-align: center;
    color: #666;
}

.becotte_formulaire_attente {
    padding: 24px;
    border: 1px dashed #bbb;
    border-radius: 10px;
    color: #777;
}

/* --- Accessibilité : visibilité du focus au clavier ----------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--sparkycolor1);
    outline-offset: 2px;
}

/* --- Mobile --------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    .hot_swipe_carousel_slides .contents h1 {
        font-size: 36px !important;
    }

    .sparky_row_service .sparky_col0 h2,
    .sparky_row_service .sparky_col0 h3 {
        border-left: 0;
        padding-left: 0;
        border-bottom: 4px solid var(--sparkycolor1);
        padding-bottom: 10px;
    }

    .realisation_carte {
        padding: 32px 22px 26px;
    }
}

@media screen and (max-width: 600px) {
    .hot_swipe_carousel_slides .contents h1 {
        font-size: 28px !important;
    }
}

/* Filet de sécurité : sans JavaScript, les éléments animés restent visibles. */
@media screen {
    .no-js .img-with-animation,
    .img-with-animation.animated_in {
        opacity: 1;
    }
}

/* Service illustré par deux photos : côte à côte. */
.service_photos {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.service_photos figure {
    flex: 1 1 0;
    margin: 0;
}

.service_photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.sparky_row_service .sparky_col0 > figure {
    margin-top: 18px;
    max-width: 440px;
}

/* Le module carrousel injecte « .hot_swipe_carousel_slides img { width:100% } »,
   ce qui écrase la largeur du logo d'acquisition posé dans le texte du bandeau.
   On lui rend sa taille, sans toucher à l'image de fond de la diapositive. */
.hot_swipe_carousel_slides .contents img {
    width: 150px !important;
    max-width: 45% !important;
    height: auto !important;
    margin-bottom: 18px;
}

@media screen and (max-width: 600px) {
    .hot_swipe_carousel_slides .contents img {
        width: 120px !important;
    }
}

/* Voile sombre sur le bandeau : la photo de chantier est très chargée et le
   texte blanc ne passait pas le contraste. Le dégradé garde la photo lisible
   tout en rendant le titre net. */
.carouselrow .hot_swipe_carousel_slides .gallery-cell {
    position: relative;
}

.carouselrow .hot_swipe_carousel_slides .gallery-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.30) 40%,
        rgba(0, 0, 0, 0.70) 100%);
}

.carouselrow .hot_swipe_carousel_slides .contents {
    z-index: 2;
}

.carouselrow .hot_swipe_carousel_slides .contents h1,
.carouselrow .hot_swipe_carousel_slides .contents p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.carouselrow .hot_swipe_carousel_slides .contents .sparky_button {
    text-shadow: none;
    border-width: 2px;
    background: rgba(0, 0, 0, 0.35);
}

.carouselrow .hot_swipe_carousel_slides .contents .sparky_button:hover,
.carouselrow .hot_swipe_carousel_slides .contents .sparky_button:focus {
    background: var(--sparkycolor1);
    border-color: var(--sparkycolor1);
    color: #fff;
}

/* Filet de sécurité sur les animations d'apparition.
   .img-with-animation met l'élément à opacity:0 et c'est le script de Sparky
   qui le révèle, mais uniquement s'il porte aussi un attribut data-animation.
   Sans cet attribut, le contenu resterait invisible pour toujours. */
.img-with-animation:not([data-animation]) {
    opacity: 1;
}

/* Pied de page : la cellule « copyright » de Sparky contient une ligne figée
   dans le framework (« Template by Hot Joomla Templates »), non modifiable
   sans toucher à ses fichiers. On la masque et la vraie ligne de copyright
   est servie par un module placé en position footer. */
.footerrow .sparky_cell.mp_copyright {
    display: none;
}

.footerrow .sparky_cell.mp_footer {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.footerrow .mp_footer .sparky_feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 26px;
}

.footerrow .mp_footer .moduletable {
    margin: 0;
}

.footerrow .mp_footer ul.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media screen and (max-width: 700px) {
    .footerrow .mp_footer .sparky_feature {
        justify-content: center;
        text-align: center;
    }
}

/* ---- MENU PRINCIPAL : LISIBILITE ----
   La rangee d'en-tete .toprow a un fond quasi noir (#0b0b0b) alors que le
   gabarit laisse les liens du menu en #333 : contraste 1,6:1, illisible.
   En blanc, le contraste passe a 18,1:1.
   Ces couleurs ne sont pas reglables dans Gabarits > Styles > onglet Menus :
   cet onglet n'expose ici que le menu responsive (seuil et icone), pas les
   couleurs. D'ou ces regles. */
:root { --bq-rouge-clair: #F5333B; }  /* rouge de marque eclairci, pour fond sombre : 5,1:1 sur #0b0b0b, alors que #ED1B24 tombe a 4,5:1 */

.toprow nav.container_mainmenu ul.menu > li > a { color: #fff; }
.toprow nav.container_mainmenu ul.menu > li > a:hover,
.toprow nav.container_mainmenu ul.menu > li > a:focus,
.toprow nav.container_mainmenu ul.menu > li.active > a,
.toprow nav.container_mainmenu ul.menu > li.current > a { color: var(--bq-rouge-clair); }

/* ---- SOUS-MENUS ----
   Joomla sort un bleu (#4975FC) qui n'appartient pas a la marque.
   Fond sombre, survol sur le rouge fonce : blanc sur #B3121A = 7,0:1. */
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub {
    background: #1b1b1b; border: 1px solid rgba(255,255,255,.14); }
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li > a { color: rgba(255,255,255,.92); }
/* Le survol doit couvrir TOUTE la ligne. Pose uniquement sur le lien, il
   laissait depasser le bleu de Joomla a gauche et a droite. */
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li { background: transparent; }
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li:hover,
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li:focus-within,
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li.active,
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li.current { background: var(--bq-rouge-f); }
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li > a {
    display: block; width: 100%; background: transparent; }
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li:hover > a,
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li > a:hover,
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li > a:focus,
.toprow nav.container_mainmenu ul.menu ul.mod-menu__sub > li.active > a {
    background: transparent; color: #fff; }

/* ---- CARTE GOOGLE : ZONE D'ATTENTE ET BOUTON ----
   La carte n'est chargee qu'au clic : aucune requete vers Google, donc aucun
   temoin depose, tant que le visiteur ne l'a pas demandee.
   Le bouton utilise le rouge fonce de la marque et non le rouge vif : blanc
   sur #B3121A = 7,0:1, alors que sur #ED1B24 on tombe a 4,4:1, sous le seuil. */
.becotte_carte_attente { margin: 0 0 14px; color: var(--bq-gris); font-size: .95rem; line-height: 1.5; }
.becotte_carte_attente a { color: var(--bq-rouge-f); }
.becotte_carte_action { margin: 0 0 6px; }
.becotte_carte_bouton {
    display: inline-block; padding: 12px 26px;
    background: var(--bq-rouge-f); color: #fff;
    border: 0; border-radius: 3px;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer; }
.becotte_carte_bouton:hover { background: #8E0E14; }
.becotte_carte_bouton:focus-visible { outline: 3px solid var(--bq-rouge); outline-offset: 2px; }

/* ---- GALERIES BA GALLERY ----
   Mise en page reglee dans le composant : Composants > Gallery > la galerie >
   onglet reglages. « Masonry » pour la disposition, « Caption Below Thumbnail »
   pour afficher le titre sous la photo.
   J'avais d'abord essaye la disposition « Grid » : elle impose des cases
   carrees et ne laisse pas de place sous l'image, la legende chevauchait la
   rangee suivante. Masonry dimensionne les cases d'apres leur contenu, donc
   aucune regle CSS n'est necessaire ici. Si un jour les photos debordent de
   nouveau de leur case, c'est le reglage de disposition qu'il faut regarder,
   pas du CSS a rajouter. */

/* Le h2 de la description de categorie heritait du style general des h2 et
   sortait a 40px, donc plus gros que le h1 de la page a 32px. On le remet
   sous le h1 : la hierarchie se voit autant qu'elle se lit. */
.category-desc h2 { font-size: 24px; margin: 30px 0 16px; }

