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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #FCB527;
    color: #1D1D1D;
    padding-bottom: 100px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Darumadrop One', cursive;
}

h2{
    line-height: 120%;
}

/* Bottom Navigation - Flat */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 20px;
    padding: 0.5rem;
    display: flex;
    background-color: #ffffffb3;
    backdrop-filter: blur(4px);
    /*gap: 2rem;*/

    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

.nav-item:hover {
    background-color: #FCB527;
}

.nav-item.active {
    background-color: #D64A1C;
}

.nav-icon {
    font-size: 1.8rem;
        width: 28px;
        height: 28px;
        transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    filter: brightness(0) invert(1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HOME PAGE */

/* Section Bienvenue */
.welcome-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 2rem;
    
}

.title-malle{
    position: absolute;
    display: inline-block; /* important pour le rotate */
    animation: rotateSoft 6s ease-in-out infinite;
    transform-origin: center;
}

  @keyframes rotateSoft {
    0% {
      transform: rotate(0deg);
    }
    25% {
      transform: rotate(5deg);
    }
    50% {
      transform: rotate(0deg);
    }
    75% {
      transform: rotate(-5deg);
    }
    100% {
      transform: rotate(0deg);
    }
  }
  

.logo-container img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.welcome-section h1 {
    display: none;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #1D1D1D;
}

.welcome-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 500;
}

/* Section Présentation */
.presentation-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.presentation-section h2 {
    font-size: clamp(2.3rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #1D1D1D;
    text-align: left;
}

.presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.presentation-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.presentation-text p {
    margin-bottom: 1rem;
}

.presentation-image {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #FCB527 0%, #D64A1C 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.presentation-image img{
    object-fit: cover;
    object-position: 50% 70%;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Services Preview */
.services-preview {
    margin-bottom: 3rem;
}

.services-preview h2 {
    font-size: clamp(2.3rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #1D1D1D;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-card {
    background-color: #ffffff42;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #1D1D1D;
}

/* Dernières réalisations */
.latest-realisations {
    margin-bottom: 3rem;
}

.latest-realisations h2 {
    font-size: clamp(2.3rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #1D1D1D;
    text-align: center;
}

/* Boutons */
.btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #D64A1C;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
}

.btn::after{
    content: "";
    display: flex;
    background: url(../assets/svg/arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 18px;
    height: 18px;

}

.btn:hover {
    transform: translateY(-3px);
}

.btn-center {
    display: flex;
    justify-content: center;
}

/* PAGE SERVICES */
.page-title {
    display: flex;
    justify-content: center;
    font-size: clamp(3rem, 5vw, 3rem);
    margin-bottom: 2.5rem;
    color: #1D1D1D;
    text-align: center;
}

/*
.page-title::before{
    content: "";
    display: flex;
    background: url(../assets/pictos/tornado.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 28px;
    height: 28px;
}
*/

/*
.page-title::after{
    content: "";
    display: flex;
    background: url(../assets/pictos/traits.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 28px;
    height: 28px;
}
*/

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card-full {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card-full:hover {
    transform: translateY(-5px);
}

.service-card-full .service-icon {
    font-size: 3rem;
}

.service-card-full h3 {
    font-size: 1.5rem;
    color: #1D1D1D;
    margin-bottom: 0.5rem;
}

.service-card-full p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-card-full ul {
    list-style: none;
    padding: 0;
}

.service-card-full li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.service-card-full li::before {
    display: inline-block;
    content: "";
    background: url(../assets/pictos/plus.svg);
    width: 20px;
    height: 20px;
    background-size: contain;
    margin-bottom: -3.5px;
    margin-right: 0.3rem;
}

/* PAGE RÉALISATIONS */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.realisation-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-10px);
}

.realisation-image-wrapper{
    padding: 8px;
}

.realisation-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #FCB527 0%, #D64A1C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 6px;
}

.realisation-content {
    padding: 0.5rem 1rem 1rem 1rem;
}

.realisation-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1D1D1D;
}

.realisation-description {
    font-size: 1rem;
    line-height: 1.6;
}

.realisation-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tag {
    background-color: #FCB527;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* PAGE CONTACT */
.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background-color: #ffffff42;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #1D1D1D;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: #D64A1C;
    color: white;
}

.contact-icon-big {
    font-size: 3rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin: 0;
}

.contact-card p {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    position: relative;
    margin-bottom: 100px;
}

.wrapper-modal-image{
    padding: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #D64A1C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #FCB527 0%, #D64A1C 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-size: 2.5rem;
    line-height: 115%;
    margin-bottom: 1rem;
    color: #1D1D1D;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-details {
    background-color: #FCB527;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-details h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1D1D1D;
}

.modal-details ul {
    list-style: none;
    padding-left: 0;
}

.modal-details li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.modal-details li::before {
    display: inline-block;
    content: "";
    background: url(../assets/pictos/plus.svg);
    width: 20px;
    height: 20px;
    background-size: contain;
    margin-bottom: -3.5px;
    margin-right: 0.3rem;
}

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



    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    .welcome-section{
        margin-bottom: 2rem;
    }
    
    .presentation-section {
        padding: 0rem 0;
        margin-bottom: 3rem;
    }
    

    .btn {
        width: 100%;
        background-color: #D64A1C;
        color: white;
        padding: 1rem 2.5rem;
        border: none;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        font-family: 'Quicksand', sans-serif;
    }

    .presentation-image {
        height: 500px;
    }
    .bottom-nav {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-item {
        padding: 0.5rem;
        gap: 0.2rem;
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .presentation-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .services-grid-full {
        grid-template-columns: 1fr;
    }

    .logo-container {
        width: 100%;
        height: 400px;
        font-size: 3rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}