/* 
    Created on : 2015-08-08, 14:13:39
    Author     : Guillaume Ross
    Modifié le : 2024 - Responsive Design
*/

/*Le padding est utilisé pour que le menu n'aille pas par-dessus le texte*/

@font-face {
    font-family: myriadProBold;
    src: url('../fonts/MyriadPro-Bold.otf');
}

@font-face {
    font-family: myriadProRegular;
    src: url('../fonts/MyriadPro-Regular.otf');
}

/* Mobile First Approach - Media Queries */
@media (max-width: 575px) {
  /* Extra small devices (phones) */
  body, .texte {
    padding-top: 60px;
  }
  
  .titreSection, #contact h2 {
    font-size: 2.5rem; /* Augmenté de 2rem à 2.5rem */
    padding-left: 3%; /* Padding réduit sur mobile */
    margin-left: 0;
  }
  
  #divMenu {
    height: 100vh;
    margin-bottom: 60px;
  }
  
  .parallax {
    height: 100vh;
  }
  
  .parallax__layer {
    height: 150vh;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  /* Small devices (landscape phones) */
  body, .texte {
    padding-top: 55px;
  }
  
  .titreSection, #contact h2 {
    font-size: 2.7rem; /* Augmenté de 2.2rem à 2.7rem */
    padding-left: 4%;
    margin-left: 0;
  }
  
  #divMenu {
    height: 110vh;
    margin-bottom: 80px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Medium devices (tablets) */
  body, .texte {
    padding-top: 50px;
  }
  
  .titreSection, #contact h2 {
    font-size: 3.2rem; /* Augmenté de 2.8rem à 3.2rem */
    padding-left: 4%;
    margin-left: 0;
  }
  
  #divMenu {
    height: 115vh;
    margin-bottom: 100px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* Large devices (desktops) */
  .titreSection, #contact h2 {
    font-size: 3.5rem; /* Augmenté de 3.2rem à 3.5rem */
    padding-left: 5%;
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  /* Extra large devices (large desktops) */
  .titreSection, #contact h2 {
    font-size: 3.8rem; /* Augmenté de 3.5rem à 3.8rem */
    padding-left: 5%;
    margin-left: 0;
  }
}

@media (min-width: 1900px) {
    .large {
        min-height: auto; /* Supprime la hauteur minimale fixe */
        height: auto; /* S'adapte au contenu */
    }
    
    .container {
        min-width: 100%;
    }
    
    #divMenu {
        min-height: 70vh; /* Hauteur réduite sur très grands écrans */
        margin-bottom: 40px;
    }
    
    #contact {
        min-height: auto; /* S'adapte au contenu */
        padding: 40px 0; /* Padding vertical pour l'espacement */
    }
}

html {
    width: 100%;
}
/*Couleurs pour clarifier les blocs*/
body {
    font-family: myriadProRegular;
    line-height: 1.6;
    color: #333;
}

/* Amélioration de l'accessibilité */
*:focus {
    outline: 2px solid #06A7DF;
    outline-offset: 2px;
}

/* Amélioration de la lisibilité des liens */
a {
    color: #06A7DF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0596C7;
    text-decoration: underline;
}

/* Amélioration du contraste pour les textes */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    line-height: 1.3;
}

/*Parallax*/
.parallax {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-perspective: 1px;/*Zoom*/
    perspective: 1px;/*Zoom*/
    perspective-origin-x: 100%;
}

.parallax__layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform-origin-x: 100%;
    height: 200vh;
    z-index: -10;
}

.parallax__layer1 {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background-image: url('../img/XL_1er_plan.png');
  background-size: cover;
  background-position: center;
}

.parallax__layer2 {
  -webkit-transform: translateZ(-1);
  transform: translateZ(-1px) scale(3);
  background-image: url('../img/XL_2e_plan.png');
  background-size: cover;
  background-position: center;
}

.parallax__layer3 {
  -webkit-transform: translateZ(-3px) scale(4);
  transform: translateZ(-3px) scale(4);
  background-image: url('../img/XL_3e_plan.png');
  background-size: cover;
  background-position: center;
}


/*===Menu===*/
#divMenu
{
    background-image: url('../img/menu_background.png');
    background-repeat: no-repeat;
    background-size: cover; /* Couvre la zone sans étirement */
    background-position: center center; /* Centre l'image */
    min-height: 80vh; /* Hauteur minimale plus raisonnable */
    height: auto; /* S'adapte au contenu */
    margin-bottom: 60px; /* Marge réduite */
    padding-top: 20px;
    padding-bottom: 40px; /* Ajoute un padding en bas */
}

#laNavigation {
    position: relative;
    margin: auto;
    width: 80%;
    background: none;
    border: none;
}

#menuLogo img {
    height: 50px; /* Taille fixe pour s'harmoniser avec les autres items du menu */
    width: auto; /* Préserve les proportions */
    max-width: 200px; /* Limite maximale raisonnable */
}

.leMenu {
    width: 80%;
}

.menuItem {
    width: 20%;
}

.wrap {
    display: inline-block;
    position: relative;
}

.barreBleue {
    width: 2%;
    height: 5px;
    background: white; /* Retour au blanc pour la barre */
    -webkit-transition: width 1s, background 1s; /* For Safari 3.1 to 6.0 */
    transition: width 1s, background 1s;
    position: absolute;
    bottom: 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.5); /* Ombre pour contraste */
}

.anim:hover .barreBleue {
    width: 100%;
    background: rgb(6,167,223);
}

/*Retrait de l'effet hover sur le texte*/
.wrap a:hover,
.wrap a:focus,
.wrap a {
    font-size: 2.2rem; /* Agrandi de 1.5rem à 2.2rem */
    font-weight: bold;
    color: white; /* Retour au blanc */
    line-height: 1em;
    text-decoration: none;
    padding-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Ombre pour contraste */
}

/* Responsive font sizes for menu */
@media (max-width: 767px) {
    .wrap a {
        font-size: 1.8rem; /* Agrandi de 1.2rem à 1.8rem */
    }
    
    /* Menu mobile optimisé */
    #divMenu {
        padding-top: 10px;
    }
    
    #laNavigation {
        width: 95%;
    }
    
    .leMenu {
        width: 100%;
    }
    
    .menuItem {
        width: 100%;
        margin-bottom: 15px; /* Augmenté pour plus d'espace */
    }
    
    .navbar-toggle {
        border-color: #4A4A4A;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #4A4A4A;
    }
    
    .navbar-collapse {
        border-color: transparent;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .wrap a {
        font-size: 2rem; /* Agrandi de 1.3rem à 2rem */
    }
}

@media (min-width: 992px) {
    .wrap a {
        font-size: 2.2rem; /* Agrandi de 1.5rem à 2.2rem */
    }
}

.scrollup {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 50px;
    right: 100px;
    /*display: none;*/
    text-indent: -9999px;
    background-color: gray;
    z-index: 100;
}
/*===Fin Menu===*/
/*===Spécialité et clientèle===*/
#specialite {
    min-height: 70vh; /* Hauteur minimale réduite */
    height: auto; /* S'adapte au contenu */
    background-color: white;
    padding: 40px 0; /* Padding vertical uniforme */
    position: relative;
}

#titreSpec {
    width: 40%;
}

.titreSection {
    font-family: myriadProRegular;
    font-weight: bold;
    color: rgb(73,73,73);
    line-height: 1em;
    text-align: left; /* Alignement à gauche */
    font-size: 3rem; /* Taille augmentée de 2.5rem à 3rem */
    padding-left: 5%; /* Padding pour un alignement précis */
    margin-left: 0; /* Reset de la marge */
}

#leCarousel {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50vh;
}

.carousel-inner {
    height: 100%;
    width: 80%;
    margin-left: 9.5%;
}

.carousel-control.left,.carousel-control.right{
    background-image: none;
    filter: none;
}

.fleche {
    height: 80%;
}

#flecheDroite {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    -ms-filter: "FlipH";
}

.carousel-image {
    width: 50%;
    float: left;
}

.carousel-caption {
    left: 0%;
    width: 50%;
    text-align: left;
    position: relative;
    float: right;
    color: black;
    text-shadow: none;
    font-size: 2vh;
}
.carousel-caption h3 {
    font-size: 4vh;
    color: rgb(165,165,165);
}

.carImg {
    display: block;
    margin: 0 auto;
    max-height: 300px;
    height: auto;
}
/*Changer les points*/
.carousel-indicators li {
    border-radius: 0;
    border: none;
    background-color: rgb(221,221,221);
}

.carousel-indicators li.active {
    background-color: rgb(33,173,226);
}

.texteCarousel {
    font-size: 1.5em;
}

/*===Fin Spécialité===*/
/*===Début Citation===*/
#citation {
    background: none;
    height: 110vh;
}

.txtCitation {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    margin: auto;
    /*Arrière-plan gris transparent*/
    background-color: rgba(224,224,224,0.5);
}

.txtCitation p {
    font-family: myriadProBold;
    text-transform: uppercase;
    text-align: justify;
    color: rgb(3,167,223);
    font-size: 4.625em;
}

#laLigne {
    display: block;
    position: relative;
    padding: 0px;
    margin: 0px;
    height: 0;
    width: 100%;
    max-height: 0;
    font-size: 2px;
    line-height: 0;
    clear: both;
    border: none;
    border-top: 2px solid black;
    /*border-bottom: 1px solid black;*/
}

/*===Fin Citation===*/
/*===Tuiles===*/
/*Formation et Diplôme Image et Titre*/
#formation {
    background-color: white;
    margin: 0px;
    min-height: auto; /* S'adapte au contenu */
    padding: 40px 0; /* Padding vertical pour l'espacement */
}

#titreFormation {
    padding-top: 20px;
}

/*
#titre_Formation_Diplomes {
    position: absolute;
    left: 15%;
    bottom: 0px;
}
*/

.tuile {
    height: 371px;
    width: 503px;
    padding: 0px;
    cursor: pointer;
    margin: 15px;
}

.tuile div {
    font-family: myriadProRegular;
    margin: 0px;
    padding-top: 10px;
}

.tuile h4 {
    margin-left: 15px;
}

.tuile p {
    padding: 10px;
    text-align: justify;
}


/*Cache le texte des tuiles*/
.cache {
    display:none;
}
.texteTuile {
    background-color: rgb(6,167,223);
}
/*===Fin Tuiles===*/

/* Responsive pour les tuiles et carousel */
@media (max-width: 767px) {
    .tuile {
        height: auto;
        width: 100%;
        margin: 10px 0;
        padding: 15px;
    }
    
    .carousel-inner {
        width: 95%;
        margin-left: 2.5%;
    }
    
    #leCarousel {
        height: 40vh;
        position: relative;
    }
    
    #specialite {
        height: auto;
        min-height: 200px;
        padding-bottom: 20px;
    }
    
    #titreSpec {
        width: 100%;
    }
    
    .titreSection {
        text-align: left; /* Maintien de l'alignement à gauche */
        padding-left: 3%;
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tuile {
        height: auto;
        width: 100%;
        margin: 10px 0;
    }
    
    .carousel-inner {
        width: 90%;
        margin-left: 5%;
    }
    
    #leCarousel {
        height: 45vh;
    }
}

@media (min-width: 992px) {
    .tuile {
        height: 371px;
        width: 503px;
    }
    
    .carousel-inner {
        width: 80%;
        margin-left: 9.5%;
    }
    
    #leCarousel {
        height: 50vh;
    }
}
/*===Contact===*/
#contact {
    margin: 0px;
    background-color: white;
    margin-bottom: 60px; /* Marge réduite */
    min-height: auto; /* S'adapte au contenu */
    padding: 40px 0; /* Padding vertical pour l'espacement */
}

#contact h2 {
    font-family: myriadProRegular;
    text-transform: uppercase;
    text-align: left; /* Alignement à gauche */
    color: rgb(3,167,223);
    font-size: 3rem; /* Taille augmentée pour correspondre aux autres titres */
    margin: 0px;
    padding-left: 5%; /* Padding pour un alignement précis */
}


/*===Fin Contact===*/

/* Styles pour la nouvelle section contact moderne */
.contact-address {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
}

.contact-address h3 {
    color: #333;
    margin-bottom: 1rem;
    font-family: myriadProRegular;
    font-size: 1.8rem;
    font-weight: bold;
}

.contact-address p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-family: myriadProRegular;
}

.contact-email {
    text-align: center;
    padding: 1rem;
}

.contact-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background-color: #06A7DF;
    border-color: #06A7DF;
    transition: all 0.3s ease;
    font-family: myriadProRegular;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-btn:hover {
    background-color: #0596C7;
    border-color: #0596C7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-btn .glyphicon {
    margin-right: 0.5rem;
}

/* Responsive pour la section contact */
@media (max-width: 767px) {
    .contact-address h3 {
        font-size: 1.5rem;
    }
    
    .contact-address p {
        font-size: 1rem;
    }
    
    .contact-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .contact-address h3 {
        font-size: 1.6rem;
    }
    
    .contact-btn {
        font-size: 1.15rem;
        padding: 0.9rem 1.8rem;
    }
}
/*===Pied===*/
#pied {
    margin: 0px;
    padding: 0px;
    height: 275px;
    background-image: url('../img/XL_footer.png');
    width: 100%;
}

.piedLogo img{
    margin-left:auto;
    margin-right:auto;
    width: auto;
    height: 80px; /* Agrandi de 60px à 80px */
}

.pied_navigation {
    margin-left: 10%;
    margin-top: 40px; /* Ajoute un espace en haut pour décoller le logo de la section supérieure */
}

.link {
    padding: 10px;
}
/*===Fin Pied===*/

/* Responsive pour le pied de page */
@media (max-width: 767px) {
    #pied {
        height: auto;
        padding: 20px 0;
    }
    
    .pied_navigation {
        margin-left: 5%;
        margin-top: 30px; /* Marge réduite sur mobile */
        text-align: center;
    }
    
    .piedLogo img {
        height: 60px; /* Agrandi de 40px à 60px */
        margin-bottom: 20px;
    }
    
    .link {
        padding: 5px;
        margin-bottom: 10px;
    }
    
    .wrap a {
        font-size: 1.8rem; /* Mise à jour pour correspondre au menu principal */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #pied {
        height: auto;
        padding: 30px 0;
    }
    
    .pied_navigation {
        margin-left: 8%;
        margin-top: 35px; /* Marge ajustée pour les tablettes */
    }
    
    .piedLogo img {
        height: 70px; /* Agrandi de 50px à 70px */
    }
}
