@charset "utf-8";
/* CSS Document */

/* Video Modal
-----------------------------------------*/
/*
 * z-index au-dessus de l'en-tête fixe (.headerAbidex, 9999 dans css/menu.2510.css) : avec 3000, l'en-tête cachait
 * le haut de la vidéo et la croix de fermeture sur les grands écrans (2026-10-05).
 */
.video-modal, .video-modal .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
}
.video-modal {
    overflow: hidden;
    position: fixed;
    opacity: 0.0;
    -webkit-transform: translate(500%, 0%);
    transform: translate(500%, 0%);
    -webkit-transition: -webkit-transform 0s linear 0s;
    transition: transform 0s linear 0s;
    /* using flexbox for vertical centering */
  /* Flexbox display */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    /* Vertical alignment */
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.video-modal .overlay {
    z-index: 0;
    background: rgba(0,56,136, 0.8); /* overlay color */
    opacity: 0.0;
    -webkit-transition: opacity 0.2s ease-out 0.05s;
    transition: opacity 0.2s ease-out 0.05s;
}
.video-modal-content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    margin: 0 auto;
    overflow-y: visible;
    background: #000;
    width: calc(100% - 12em);
    height: 0;
 padding-top: calc((100% - 12em) * 0.5625); /* 16:9 calc */
}

/* Scaling to fit within the current Viewport size:
   When viewport aspect ratio is greater than 16:9
   work off the height instead of the width for calc */
@media (min-aspect-ratio: 16/9) {
.video-modal-content {
    width: 0;
    height: calc(100vh - 10em);
    padding-top: 0;
 padding-left: calc((100vh - 10em) * 1.7778); /* 16:9 calc */
}
}

/* Mobile Layout Tweaks - side margins reduced */
@media (max-width: 640px) {
.video-modal-content {
    width: calc(100% - 1em);
 padding-top: calc((100% - 1em) * 0.5625); /* 16:9 calc */
}
}
/* modal close button */
.close-video-modal {
    display: block;
    position: absolute;
    left: 0;
    top: -40px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
/* set the iframe element to stretch to fit its parent element */
iframe#youtube {
    /* Taille de la fenêtre (avant : attributs width et height de l'iframe) */
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: #000;
    box-shadow: 0px 2px 16px rgba(0,0,0,0.5);
}
.noscroll {
    overflow: hidden;
}
/* show the modal: 
   add class to the body to reveal */
.show-video-modal .video-modal {
    opacity: 1.0;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}
.show-video-modal .video-modal .overlay {
    opacity: 1.0;
}
.show-video-modal .video-modal-content {
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}


.imgconcept {
    margin-bottom: 3%;
    width: 30%;
    float: left;
}

@media (max-width: 1040px) {
.imgconcept {
    margin-bottom: 0%;
}
}

@media (max-width: 640px) {
.imgconcept {
    width: 35%;
}
}

.parent {
    text-align: justify;
    padding-bottom: 8px;
}
.parentb {
    text-align: justify;
}
.parentc {
    float: left;
    width: 30%;
}
.buttonb {
    background-color: rgb(0,56,136);
    color: white;
}
.buttonc {
    background-color: rgb(255,102,0);
}
/* Bouton « Contactez nous » des pages de chapitres (2026-10-05) : vert ; le survol (.button:hover) reste prioritaire */
.buttoncontact {
    background-color: rgb(0,176,80);
}
.titrebleu {
    color: rgb(0,56,136);
}

/*
 * Référencement (2026-10-04) : un seul <h1> par page. Les autres titres de section sont des <h2 class="titreh1">,
 * affichés comme l'ancien <h1> (css/css.2510.css ramène sinon les <h2> à la taille du texte).
 */
h2.titreh1 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
}

/*
 * Sous-titres des pages de chapitres (2026-10-05) : sous le titre principal (h1), plus petits et plus en retrait,
 * comme les familles ou les utilisations des catalogues (ex. CH02 : non auto-amorçantes / auto-amorçantes).
 */
h2.titregamme {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    margin: 1.2em 0 0.5em 0;
    padding-left: 4%;
}

/*
 * Sous 1040 px, les CSS des pages justifient les titres (.titreprimaire) : un titre de plusieurs lignes s'étirait
 * (« Groupes      de »). Alignés à gauche ; deux classes, pour l'emporter sur la règle des pages chargée après ce fichier.
 */
@media (max-width: 1040px) {
    .titrebleu.titreprimaire {
        text-align: left;
    }
}

/* Titre réservé aux petits écrans (doublon de la colonne de gauche) : masqué dès 1000 px, comme dans les CSS des pages */
@media (min-width: 1000px) {
    h2.titreh1.titresmallecran {
        display: none;
    }
}

/* Fenêtre vidéo : le lien « vidéo » est un vrai lien YouTube, ouvert dans la fenêtre par js/video_modal.js */
a.video-thumb {
    color: inherit;
    text-decoration: none;
}

/*
 * Boutons « Catalogue PDF » et « Contactez nous » sous la bande bleue du haut des pages de chapitres (2026-10-04) :
 * côte à côte et centrés, à la place des boutons placés dans le texte.
 */
.boutonsChapitre {
    clear: both;
    text-align: center;
    padding-top: 6px;
}

.boutonsChapitre a.button {
    margin-left: 4px;
    margin-right: 4px;
}

/* Bloc « En savoir plus » toujours sous les tuiles flottantes qui le précèdent (ex. piscine-fontainerie), pas à côté */
.savoirplusdiv {
    clear: both;
}
