
#section-1 {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* All children get the same height */
    position: relative;
    margin: 0rem 0rem;
    padding-left: 7%;
    /* padding-right: 2%; */
    padding-bottom: 0rem;
    padding-top: calc(6rem);
    background-color: var(--background-white);
    
}

.content-row {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
    align-items: stretch; /* All children get the same height */
    position: relative;
    margin: 2% 0rem;
}

/* Logo image — takes up full height of the row */
#logo_title {
    display:none;
    height: auto;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    padding-bottom: 1rem;
    align-self: flex-start;
}

/* Wrapper for text content — stacks title, sub_title, description horizontally */
.text-column {
    display: flex;
    flex-direction: column;
    justify-content: top;
    gap: 5%;
    flex: 1;
}
.image-container {
    width: 50%;            /* Keeps your original width */
    padding-left: 2rem;
    padding-top: 1rem;
    overflow:visible;      /* CRITICAL: Ensures image corners don't spill out */
    flex-shrink: 0;        /* Prevents it from shrinking in flex layout */
    margin-left: 0%;      /* Your original overlap logic */
}
#title_image {
    border-radius: 50px;
    width: 100%;
    object-fit: contain;
    box-shadow: 0 -0px 20px rgba(33,46,65,.18);
    object-position: top;
}

/* Title */
.title {
    text-align: left;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bolder;
    color: var(--text-blue-dark);
    display: flex;
    align-items: center;
}

/* Sub-title */
.subtitle {
    text-align: left;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
    color: var(--blue-archi-light);
    display: flex;
    align-items: center;
}

/* Description */
.description {
    font-size: clamp(1.1rem, 1.4vw, 1.8rem);
    color: var(--blue-archi-dark);
    text-align: left;
    display: flex;
    align-items: center;
    width: 80%;
}

    

.dark-blue {
    color: var(--blue-archi-dark);
}

.description span {
    align-self: flex-start;
}

.title-separator {
    border: none;
    border-top: 2px solid var(--blue-archi-light);
    margin: 0rem 0rem;
    margin-right: 80%;
}






.rive-overlay-text {
    padding-top: 3rem;
    padding-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.25rem, 1.6vw, 2rem);
    font-weight: bold;
    color: var(--blue-archi-light);
}

.subtitle-2 {
    font-size: clamp(1rem, 1.2vw, 1.3rem);
}

.archi-step {
    font-size: clamp(1rem, 1vw + 0.4rem, 1.2rem);
}

.rive-sticky {
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F6FAFF;
    z-index: 1;
}

#canvas-div {
    min-height: 0;
    width: 100%;
    aspect-ratio: auto;
    max-height: auto;
    max-width: 100%;
    background-color: #ffffff;

}

#rive-canvas1 {
    width: 100%;
    height: 100%;
    display: block;
}

#canvas-track {
    position: sticky;
    top: 0;
    z-index: 1;
}

#en-savoir-plus {
    text-align: center;
    font-weight: bold;
    background-color: #ffffff;
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    padding-top: 1rem;
    padding-bottom: 1rem;
}



.use-case #buttons {
    margin: 2rem 0rem;
    display:flex;
    justify-content: center;
}

.use-case .btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:1rem;
    /* margin-top:1rem; */

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:10rem;
    height:3rem;

    font-size: clamp(0.9rem, 0.9vw, 1rem);

    color:var(--blue-archi-dark);
    text-decoration:none;

    border:2px solid var(--blue-archi-dark);

    border-radius:10px;


    transition:.3s;
}

.use-case #btn1 {
    margin-left: 1rem;
    margin-right: 0.5rem;
}

.use-case #btn2 {
    margin-left: 0.5rem;
    margin-right: 1rem;
    color: white;
    width:14rem;
    border:2px solid var(--blue-archi-light);
    background-color: var(--blue-archi-light);
}

.use-case .btn:hover{
    cursor: pointer;
    background:var(--blue-archi-light);
    border:2px solid var(--blue-archi-light);
    color:white;
}

.use-case #btn2:hover{
    cursor: pointer;
    background:var(--blue-archi-dark);
    border:2px solid var(--blue-archi-dark);
    color:white;
}




/* ============================= */
/* Desktop-only tightened layout */
/* ============================= */



@media (max-width: 1400px) {

}

/* ============================= */
/* Tablet / small laptop         */
/* ============================= */
@media (max-width: 1024px) {
    #section-1 {
        padding-top: 5rem;
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding-bottom: 2rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    #title_image {
        border-radius: 50px;
        width: 100%;
        box-shadow: 0 -0px 20px rgba(206, 208, 212, 0.18);
        object-position:center;
    }
    .image-container {
        width: 100%;            /* Keeps your original width */
        padding-top: 1rem;
        padding-left: 0rem;
        overflow:visible;      /* CRITICAL: Ensures image corners don't spill out */
        display: flex;
        justify-content: center;
        align-items: center;

    }

    /* Stack logo + text vertically instead of side-by-side */

    #logo_title {
        display:flex;
        padding-bottom: 2rem;
        align-self: center;
    }

    .text-column {
        gap: 1.8rem;
    }

    .title {
        text-align: center;
        justify-content: center;        
    }

    .title-separator {
        margin-right: 40%;
        margin-left: 40%;
    }

    .subtitle {
        text-align: center;
        justify-content: center;
    }

    /* Description no longer a narrow 27% column — full width under the title */
    .description {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    #title_image{
        width: 40rem;
        max-height:30rem;
        align-self: center;
        padding-top: 2%;
        padding-right: 0%;
        margin: 0%
    }
    .description span {
        align-self: center;
    }
    .rive-overlay-text {
        padding: 3rem 1rem 2rem 1rem;
    }
    

}

/* ============================= */
/* Mobile (phones, landscape too)*/
/* ============================= */
@media (max-width: 768px) {
     
    .text-column {
        gap: 1.2rem;
    }


    #title_image{
        width: 20rem;
        max-height:15rem;
    }

    .card {
        margin: 0rem 0rem;
    }
    
  


}

/* ============================= */
/* Small phones                  */
/* ============================= */
@media (max-width: 480px) {
   #section-1 {
        padding-top: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    /* Stack logo + text vertically instead of side-by-side */

    #logo_title {
        display:flex;
        max-height: 5rem;
        padding-bottom: 2rem;
        align-self: center;
    }

    .text-column {
        gap: 1.2rem;
    }

    .title {
        text-align: center;
        justify-content: center;
    }

    .title-separator {
        border: none;
        border-top: 2px solid var(--blue-archi-light);
        margin-right: 40%;
        margin-left: 40%;

    }

    .subtitle {
        text-align: center;
        justify-content: center;
    }

    /* Description no longer a narrow 27% column — full width under the title */
    .description {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    #title_image{
        width: 20rem;
        max-height:15rem;
        align-self: center;
        padding-top: 2%;
        padding-right: 0%;
        margin: 0%
    }

    .description span {
        align-self: center;
    }
    #canvas-div {
        height: 70vh; /* tune to taste */
    }

    


    .archi-img-wrap {
        height: 150px;
    }


    .archi-step {

        width: 32px;
        height: 32px;
       
    }

    #div-en-savoir-plus {
        padding-top: 1rem;
    }


    

   

}
