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

/* Styles généraux */
body {
    font-family: 'Geologica', sans-serif;
    line-height: 1.6;
    background-color: #F5F5F5;
}

h2 {
    font-size: 2.5rem;
    font-weight: 500;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

/* Header et Navigation */
header {
    background-color: #ECECEC;
    color: #CE7442;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

nav .logo {
    height: 90px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
}

nav a {
    color: #CE7442;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background-color: #ECECEC;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 4rem 2rem;
    margin-bottom: 0;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #7B90BC;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-btn {
    background-color: #CE7442;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 300;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 116, 66, 0.3);
}

.rabisco {
    position: absolute;
    width: 270px;
    height: auto;
}

.rabisco-left {
    left: -30px;
    top: 10%;
}

.rabisco-right-top {
    right: -30px;
    top: 20%;
}

.rabisco-right-bottom {
    right: -30px;
    bottom: 0%;
    transform: rotate(-173deg);
}

/* Serviços Section */
.servicos-section {
    background-color: #F3CA7A;
    padding: 4rem 2rem;
}

.servicos-section h2 {
    color: #7B90BC;
    text-align: center;
    margin-bottom: 3rem;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-rows: 1fr;
}

.servico-card {
    background-color: #7B90BC;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.servico-card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    padding-bottom: 1rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.servico-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 4px;
    background-color: #F3CA7A;
}

.servico-card p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-top: 1rem;
}

/* Sobre Section */
.sobre-section {
    background-color: #F5F5F5;
    padding: 4rem 2rem;
}

.sobre-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: space-between;
}

.sobre-image {
    flex: 0.67;
}

.sobre-text {
    flex: 1;
}

.sobre-text h2 {
    color: #7B90BC;
    margin-bottom: 2rem;
}

.sobre-text p {
    color: #7B90BC;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.sobre-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    position: relative;
    background-color: #F6D1C8;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

.contact-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.contact-content h3 {
    color: #CE7442;
    margin-bottom: 1rem;
}

.rabisco-contact-left {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 270px;
    height: auto;
}

.rabisco-contact-right {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-47deg);
    width: 270px;
    height: auto;
}

/* Location Section */
.location-section {
    background-color: #F3CA7A;
    padding: 4rem 2rem;
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.location-map {
    flex: 1;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #E0E0E0;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-placeholder p {
    color: #999;
    font-size: 1.5rem;
}

.location-info {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-info h2 {
    color: #CE7442;
    margin-bottom: 2rem;
}

.location-info .address {
    color: #CE7442;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.location-btn {
    background-color: #7B90BC;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 300;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-end;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 144, 188, 0.3);
}

.rabisco-location {
    position: absolute;
    bottom: -20px;
    right: -40px;
    width: 200px;
    height: auto;
    transform: rotate(25deg);
}

/* Carousel Section */
.carousel-section {
    background-color: #F5F5F5;
    padding: 4rem 2rem;
}

.carousel-section h2 {
    color: #7B90BC;
    text-align: center;
    margin-bottom: 3rem;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(206, 116, 66, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(206, 116, 66, 1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(206, 116, 66, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
}

/* Footer */
footer {
    background-color: #CE7442;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-main {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    height: 120px;
    width: auto;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 0.8;
}

.footer-cta {
    flex: 1;
}

.footer-cta h3 {
    color: #F3CA7A;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.footer-cta p {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer-linkedin {
    text-decoration: underline;
}



.footer-linkedin:hover {
    opacity: 0.8;
}

.footer-linkedin img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-linkedin span {
    font-size: 0.95rem;
}

.footer-copyright {
    color: white;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .rabisco {
        width: 144px;
    }

    .rabisco-left {
        left: 2%;
    }

    .rabisco-right-top,
    .rabisco-right-bottom {
        right: 2%;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .sobre-container {
        flex-direction: column;
    }

    .rabisco-contact-left,
    .rabisco-contact-right {
        width: 144px;
    }

    .location-container {
        flex-direction: column;
    }

    .map-placeholder {
        min-height: 300px;
    }

    .location-btn {
        align-self: stretch;
    }

    .rabisco-location {
        width: 120px;
        right: -20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-logo img {
        height: 80px;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}