/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; ;
}

body {
    font-family: Avenir, Arial, sans-serif;
    color: #00305b;
    padding-top: 80px; /* Ajustez cette valeur en fonction de la hauteur de votre menu */
}

/* Header */
header {
    position: fixed; /* Rend le menu fixe */
    top: 0; /* Le place en haut de la page */
    left: 0; /* Aligné à gauche */
    width: 100%; /* Occupe toute la largeur */
    background-color: rgba(0, 48, 91, 1); /* Fond semi-transparent pour lisibilité */
    z-index: 3000; /* Au-dessus des autres éléments */
    padding: 15px 0; /* Espacement interne pour le confort */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Petite ombre pour un effet visuel */
    transition: background-color 0.3s ease; /* Animation douce au défilement */
}

header .logo h1 {
    color: white; /* Texte du logo en blanc */
    margin-left: 20px; /* Espacement à gauche du logo */
}
.logo img{
    width:100px;
    margin-left: -60px;
}

nav ul {
    list-style: none;
    display: flex;
    margin-right: -50px;
    font-weight: lighter;
}

nav ul li {
    margin-left: 20px;
    margin-top: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none !important;
}

/* Parallax Background for Hero */
#hero {
    background: url('../images/background-image.png') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    display: flex; margin-top: -20px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
}

/* Parallax Background for Hero */
#hero_1 {
    background: url('../images/publication.jpg') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    display: flex; margin-top: -20px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
}

.blue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background-color: rgba(0, 48, 91, 0.4);
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 20px;
}

#hero_{}

.parallax-text {
    position: relative; /* Required to move the text */
}
/* Style de transition pour les effets de glissement */
.parallax-active {
    transition: transform 1.5s ease-out;
}
.hero-image {
    will-change: transform; /* Prépare le navigateur à la transformation pour éviter les sauts */
}

.hero-image {
    transform: translateZ(0); /* Active l'accélération matérielle */
}

#cabinet {
    transform: translateY(0); /* Par défaut */
    transition: transform 0.5s ease-out;
}

#davocat {
    transform: translateY(0);
    transition: transform 0.7s ease-out;
}

#slogan {
    transform: translateY(0);
    transition: transform 0.9s ease-out;
}

/* Text Parallax Effect - Optional: add smooth scrolling */
html {
    scroll-behavior: smooth;
}

.hero-title {
    font-size: 2.5rem;
    margin-left:30%;
    text-transform: uppercase;
    color: white;
    line-height: 1; /* Control the spacing between the two lines */
    z-index: 2;
}

.hero-title strong {
    font-weight: bold;
    display: block;
    margin-bottom: -35px;
}

.hero-title .thin-text {
    font-weight:lighter; /* Lighter weight for "D'AVOCATS" */
    margin-bottom: -35px;
}

.hero-title .text{
    font-weight:lighter; /* Lighter weight for "D'AVOCATS" */
    font-size: 1.2rem;
    text-transform:none;
}

#services, #equipe, #contact {
    position: relative; /* ou absolute selon le besoin */
    z-index: 500; /* Assurez-vous qu'elles sont au-dessus des autres éléments */
}

/* Services Section */
#services {
    height: auto;
    background-color: #f0f0f0;
    text-align: center;
    padding: 0;
    box-shadow: 10px 0 15px rgba(0, 0, 0, 0.9);
}
.services-container {
    display: flex;
    justify-content: space-between; /* Assure un espace entre les blocs */
    align-items: flex-start; /* Aligne les éléments au début verticalement */
    position: relative;
    height:auto;
    top: 0;
}

.service-title {
    flex: 0 0 35%; /* Le bloc prend 40% de la largeur */
    background-color: rgba(0, 48, 91, 0.1);
    top: 0;
    position: relative;
    text-transform: uppercase;
    font-size: 1.6rem;
    text-align: left;
    height:100%;
}
.service-title h2{
  margin-left:35%; margin-top:100px
}

.contact-title {
    flex: 0 0 35%; /* Le bloc prend 40% de la largeur */
    background-color: rgba(0, 48, 91, 0.1);
    top: 0;
    position: relative;
    height:700px;
    text-transform: uppercase;
    font-size: 1.6rem;
    text-align: left;
}
.service-title .hh1{
    font-weight: bold;
}

.service-title .hh2{
    font-weight: 600;
}

.service-title .hh3{
  font-weight: 100;
}

.contact-title .hh2{
  font-weight: lighter;
}

.service-details {
    flex: 0 0 65%; /* Le bloc prend 60% de la largeur */
    display: flex;
    flex-direction: row;
    gap: 20px; /* Espacement entre les services */
}

/* Ajouter du style aux services */
.service h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}
.service-details #myImage{
    width:100%
}
.texte-title h2{
    padding-left:20px;
    width:100%
}
.texte-title{
    padding-left:20px;
    width:60%
}
.service p {
    font-size: 1em;
    line-height: 1.5;
}
.service {
    margin: 20px 0;
}

/* Équipe Section */
#nous {
    padding: 0px;
    text-align: center;
    background-color: #00305b;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0, 0, 0, 1);
}

#nous .hh2{
    font-size: 2.5rem;
    font-weight: lighter;
    text-transform: uppercase;
}

#nous p{
    font-size: 1.4rem;
    line-height: 37px;
    font-weight: lighter;
    padding: 30px 30px 0 30px;
}
.nous-container{
    display: flex;
    justify-content: space-between; /* Assure un espace entre les blocs */
    align-items: flex-start; /* Aligne les éléments au début verticalement */
    position: relative;
    top: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 1);
}
.nous-img{
    flex: 0 0 35%; /* Le bloc prend 40% de la largeur */
    background-color: rgba(0, 48, 91, 0.1);
    top: 0;
    position: relative;
    height:500px;
}
.nous-img img{
    height:500px;
    margin-left: 0px;
    width:100%;
}
.image-container img {
    width: 150px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.1);
}

/* Formulaires */
.bctc{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left:-20px;
    margin-top: 100px;
}

.adrs{
  position: relative;
  top: 100px;
  margin-left:20px
}

.bdrt{
    margin-left: 0;
    width: 40%
}
.bgch{
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#contact #nous{
    padding: 0;
    z-index: 3000;
}

#nous-detail{
    display: none;
}

#nous-detail .img{
    width:60%;
}

#imgpar {
    height: 70vh; /* La section prend toute la hauteur de l'écran */
    background-image: url('../images/black_white.jpg'); /* L'image de fond */
    background-attachment: fixed; /* Effet parallaxe */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Overlay semi-transparent */
#imgpar .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 48, 91, 0.7); /* Cache semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
}
#imgpar .logo {
    max-width: 350px; /* Ajustez la taille selon vos besoins */
    height: auto;
}
#retour {
    pointer-events: auto !important;
    cursor: pointer !important;
    margin-bottom:20px;
}

.texte-title button {
    margin-top: 10px; 
    margin-left: 17px; 
    padding: 10px 20px; 
    background-color: #00305b; 
    color: white; 
    border: none; 
    cursor: pointer; /* Assurez-vous que cette ligne est présente */
    border-radius: 4px; 
    width: 86%;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    top: 0;
    
    box-shadow: 0 0 15px rgba(0, 0, 0, 1);
}

.contact-form {
    flex: 0 0 60%; /* La partie droite prendra 60% de la largeur */
}

.forme {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.forme label {
    margin-bottom: 5px;
}

.forme input, .forme textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /*margin-left: -10px;*/
}

.service-details {
    display: flex;
    flex-direction: column;
    z-index:9000; 
    text-align:left; 
    padding:0; 
    gap: 20px; /* Space between rows */

}

.service-row {
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
}

.service-block {
    display: flex;
    width: 30%; /* Each block takes up 30% of the row */
    padding: 5px;
    align-items: center;
}

.bullet {
    width: 10px;
    height: 10px;
    background-color: red;
    margin-right: 10px;
    border-radius: 2px; /* Square-shaped */
    position: relative;
    margin-top: -55px;
}

.text h3 {
    font-size: 15px;
    margin: 0;
    margin-bottom: 5px;
    font-weight: lighter;
    text-transform: uppercase;
    text-align: left;
    line-height: 35px;
}

.text p {
    font-size: 14px;
    margin: 0;
    color: #777;
    text-align: left;
}

.forme button {
    margin-top: 10px;
    margin-left: 17px;
    padding: 10px 20px;
    background-color: #00305b;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    width: 86%;
}

textarea {
    height:235px;
    margin-left: -50px;
}

.forme button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #00305b;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 12px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    opacity: 0;
    transform : translateX(-100%); animation: slideIn 1.5s ease-out forwards; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); }
}
/* Responsive adjustments for header */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
    }

    header .logo h1, .logo img {
        margin: 0 auto;
        text-align: center;
    }

    nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }
}
/* Responsive hero adjustments */
@media (max-width: 768px) {
    .blue-overlay {
        width: 100%;
        justify-content: center;
    }
    .hero-title{
        line-height: 40px;
    }
    .hero-title {
        margin-left: 0;
        text-align: center;
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }
    
    #detail-intro{
        width:100%;
    }
    #retour {
        pointer-events: auto !important;
        cursor: pointer !important;
        margin-bottom:20px;
    }
    .service-title, .service-details {
        flex: 0 0 100%;
        background-color: rgba(0, 48, 91, 0);
        margin-left: 0px;
    }
    .service-title h2{
      margin-left:-170px; margin-top:100px
    }
    .service-row{
        display: flex;
        justify-content: space-between;
        padding: 0 25px;
        flex-direction: column;
    }
    .service-block {
        display: flex;
        width: 100%;
        padding: 5px;
        align-items: center;
    }
    #nous-detail{
        display: none;
    }
    .service-details #myImage{
        width:100%
    }
    .texte-title{
        padding-left:20px;
        width:100%
    }
    .texte-title h2{
        padding-left:20px;
        width:100%
    }
    .texte-title button{
        margin-top: 10px; 
        margin-left: 17px; 
        padding: 10px 20px; 
        background-color: #00305b; 
        color: white; 
        border: none; 
        cursor: pointer; 
        border-radius: 4px; 
        width: 86%;
    }
    

#nous-detail .img{
    width:100%;
}
}

/* Responsive team adjustments */
@media (max-width: 768px) {
    #nous{margin-top: 700px;}
    .nous-container {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    .nous-img {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px){
    .contact-container {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
        position: relative;
        flex-direction: column;
    }
    .contact-title{flex: 0 0 35%;
        background-color: rgba(0, 48, 91, 0);
        top: 0;
        position: relative;
        height: 700px;
        text-transform: uppercase;
        font-size: 1.6rem;
        text-align: left;
    }

    .adrs {
        position: relative;
        top: 100px;
        margin-left: 80px;
    }

    .bctc {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        margin-left: 72px;
        margin-top: 100px;
    }

    .bdrt {
        margin-left: 70px;
        width: 40%;
    }
/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer {
        font-size: 10px;
    }
}

/* Responsive Hero adjustments */
@media (max-width: 768px) {
    #hero h1{
        display: none;
    }
}

/* Responsive nous adjustments */
@media (max-width: 768px) {
    #nous {
        margin-top: 0;
        position: relative;
    }

}

/* Responsive imgpar adjustments */
@media (max-width: 768px) {
    #imgpar {
        height: 50vh;
        background-image: url(../images/black_white.jpg);
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
        z-index: 1;
        top: 0;
    }
}

/* Responsive imgpar adjustments */
@media (max-width: 768px) {
   
}

/* AOS Animations */ [data-aos] { opacity: 0; transition-property: opacity, transform; }

[data-aos].aos-animate { opacity: 1; }

[data-aos="fade-up"] { transform: translateY(50px); }

[data-aos="fade-right"] { transform: translateX(-50px); }

[data-aos="fade-left"] { transform: translateX(50px); }
