* {
    box-sizing: border-box;
  }
  
  body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Pour empêcher le débordement horizontal */
  }

header {
    background-color: #ffffff;
    padding: 48px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'Lato', sans-serif;
}

body {
    padding-top: 60px;
    display: block;
}

nav {
    display: inline-block;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 20px;
}

nav ul li a:hover {
    background-color: #ddd;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
}

nav ul li a.active {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.social-icons {
    display: flex;
    gap: 25px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.social-icons img {
    width: 36px;
    height: auto;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 0.7;
}

.logo {
    position: absolute;
    top: 0;
    left: 20px;
    z-index: 2;
}

.logo img {
    max-width: 140px;
    height: auto;
    margin-top: 8px;
}

.intro {
    position: relative;
    color: rgba(255, 255, 255, 0.93);
    padding: 40px;
    text-align: center;
    min-height: 75vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-attachment: fixed;
    margin-bottom: -1px;
}

.intro h1 {
    font-size: 7em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    font-family: "Bebas Neue", serif;
}

.intro p {
    font-size: 2em;
    animation: slideIn 1s ease-in;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    font-family: "Oswald", serif;
}

.large-bold {
    font-size: 2em; /* Adjust size as needed */
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.intro.index {
    position: relative;
    overflow: hidden;
    height: 100vh;
}



/* ...existing code... */

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden; /* Assurez-vous que les images ne débordent pas */
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: carousel 6s infinite; /* Ajustez la durée totale de l'animation */
}

.carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel img:nth-child(1) {
    animation-delay: 0s;
}
.carousel img:nth-child(2) {
    animation-delay: 3s; /* Ajustez les délais pour correspondre à la durée totale */
}
.carousel img:nth-child(3) {
    animation-delay: 6s;
}
.carousel img:nth-child(4) {
    animation-delay: 9s;
}
.carousel img:nth-child(5) {
    animation-delay: 12s;
}
.carousel img:nth-child(6) {
    animation-delay: 15s;
}
.carousel img:nth-child(7) {
    animation-delay: 18s;
}
.carousel img:nth-child(8) {
    animation-delay: 21s;
}

@keyframes carousel {
    0% { opacity: 0; }
    25% { opacity: 1; }
    50% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

/* ...existing code... */

.intro.index h1,
.intro.index p {
    position: relative;
    z-index: 1;
}

.intro.ravalement {
    background-image: url('Media/gratte.jpg');
    background-size: cover;
    background-position: center;
}

.intro.isolation {
    background-image: url('Media/Isolation_par_l_exterieur-2.jpg');
    background-size: cover;
    background-position: center;
}

.intro.renovation {
    background-image: url('Media/Isolation-par-lexterieur-et-enduit-a-la-chaux-1536x1152.jpg');
    background-size: cover;
    background-position: center;
}

.intro.peinture {
    background-image: url('Media/Leroyer_1883-1024x683.jpg');
    background-size: cover;
    background-position: center;
}

.highlighted {
    color: #f31d1d;
    font-weight: bold;
}

@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background-color: rgb(255, 255, 255);
    font-family: "Ubuntu Mono", monospace;
    font-weight: 400;
    margin-top: 50px;
}

.photo-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    padding: 40px;
    margin-top: -1px;
}

@media screen and (max-width: 1280px) {
    .photo-gallery {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .photo {
        width: 100%;
        max-width: 400px;
        margin: 10px 0;
    }

    .small-img, .middle-img {
        width: 90%;
    }

    .photo h2 {
        font-size: 1.2rem;
    }

    .photo p {
        font-size: 1rem;
    }
}


.photo {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    
}

.small-img {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-left : 50px
}

.photo {
    flex: 0 0 calc(33.33% - 20px);
    margin-bottom: 20px;
    position: relative;
}

.middle-img {
    width: 90%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.photo-description {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
}

.photo h2 {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.photo{
    background-color: rgba(226, 220, 220, 0.6); /* Couleur de fond avec transparence */
    padding: 20px; /* Espacement interne */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre pour un effet de profondeur */
}
.photo p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    font-family: 'Nunito Sans', sans-serif;
    margin-top: 20px;
}

.highlight {
    color: blue;
    font-weight: bold;
}

.half-and-half {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 40px;
    background-color: #ececec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 75px;
    flex-wrap: nowrap;
}

.column {
    flex: 1;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

.text-column {
    text-align: left;
}

.photo-column {
    text-align: right;
}

.content-box {
    background-color: #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 25px;
}

.section-title {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 1.8em;
    font-family: 'Playfair Display', serif;
}

.text-content p {
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
}

.photo-column img {
    width: 60%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-left: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vertical-separator {
    width: 1px;
    height: 60%;
    background-color: #14103a;
    margin: 0 40px;
}

.see-more {
    display: block;
    margin-top: 20px;
    font-family: 'Nunito Sans', sans-serif;
    text-decoration: none;
    color: #333;
}

.see-more:hover {
    text-decoration: underline;
}

.delayed-display {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.delayed-display.show {
    opacity: 1;
}

#animated-title {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#animated-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.see-more {
    display: block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
}

.see-more:hover {
    text-decoration: underline;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-20px);}
    to {transform: translateY(0);}
}

#progress-container {
    position: fixed;
    width: 100%;
    height: 5px;
    background-color: #f3f3f3;
    z-index: 100;
    margin-top: 45px;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #ad0505;
}

.image-grid {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.grid-item {
    text-align: center;
    width: 30%;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.grid-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    margin: 10px 0;
}

.grid-item p {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.separator {
    border :none;
    height: 2px;
    background-color: #333;
    margin: 50px 0;
}

.site-footer {
    background : none;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin-left: 100px;
}

.footer-section {
    width: 45%;
    text-align: left;
}

.site-footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 10px;
    width: 300px;
}

#intervention-text {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #333;
}

.footer-separator {
    width: 1px;
    height: 100%;
    background-color: #ddd;
    margin: 0 20px;
}

.contact-info {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.contact-section h3,
.contact-section p {
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}

@media screen and (max-width: 1280px) {
    .logo img {
        max-width: 120px;
    }

    .social-icons img {
        width: 26px;
        height: auto;
        transition: opacity 0.3s;
    }

    nav ul li a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
        font-size: 16px;
    }

    .intro h1 {
        font-size: 3em;
    }

    .intro p {
        font-size: 1em;
        margin-left: 0;
    }

    .half-and-half {
        padding: 15px;
    }

    .column {
        width: 100%;
    }

    .photo-column img {
        margin-left: 0;
    }

    .vertical-separator {
        display: none;
    }

    .container > div {
        flex: 0 0 30%;
    }

     .middle-img, .photo-column img {
        width: 70%;
    }
    .small-img{
        width: 0%;
    }
}

@media screen and (max-width: 767px) {

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      
      html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .small-img, .middle-img {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    .small-img {
        width: 0%;
    }

    .middle-img {
        width: 80%;
        margin: 10px 0;
    }

    .photo-description,
    .text-content p,
    .photo h2,
    .photo p {
        font-size: 10px;
        width: 90%;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .see-more {
        font-size: 10px;
    }

    header {
        width: 100%;
        padding: 5px 0;
        font-size: 14px;    
        margin: 0;
        overflow: hidden;

    }

    .social-icons {
        margin-right: 15px;
    }

    .logo {
        top: 5px;
        left: 15px;
    }

    .logo img {
        max-width: 80px;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 5px;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        list-style-type: none;
        padding: 0;
        margin-top: 70px;
        margin-right: 15px ;
        width: 100%;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        font-size: 12px;
        padding: 8px 0;
        text-decoration: none;
        color: #333;
        width: 100%;
    }

    .social-icons img {
        width: 22px;
        height: auto;
        transition: opacity 0.3s;
        margin-bottom: 20px;
    }
    
    * {

    nav ul li a:hover {
        background-color: #f0f0f0;
    }

    .intro h1 {
        margin-top: 25px;
        width: 100%;
    }

    .intro p {
        font-size: 0.7em;
        margin: 0 auto;
        max-width: 100%;
    }

    .intro.index{
        position: relative;
        overflow: hidden;
        height: 100vh;
    }

    #progress-container{
        position: fixed;
        width: 100%;
        height: 5px;
        background-color: #f3f3f3;
        z-index: 100;
        margin-top: 5px;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .container > div {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .photo-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: -webkit-center;
    }

    .photo {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .half-and-half {
        flex-direction: column; 
        padding: 20px;
    }

    .column {
        width: 100%; 
    }

    .text-column, .photo-column {
        width: 100%; 
    }

    .photo-column img {
        width: 60%; 
        margin-left: 0; 
    }


    .site-footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
        background : none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .footer-section {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .site-footer h2 {
        font-size: 20px;
        width: 100%;
        margin-bottom: 15px;
    }

    #intervention-text {
        font-size: 12px;
        padding: 0 10px;
    }

    .contact-info {
        font-size: 12px;
    }

    .footer-separator {
        display: none;
    }

    .contact-item {
        justify-content: center;
    }
}
}
