﻿/* =========================================

   Agency Page Styles (agence.html)

   ========================================= */



.agency-header {

    margin-top: clamp(80px, 15vh, 120px);

    margin-bottom: clamp(1rem, 5vh, 2rem);

    position: relative;

    z-index: 1;

}







.header-intro {

    display: flex;

    justify-content: flex-end;

}



.intro-text {

    text-align: right;

    max-width: clamp(300px, 40vw, 400px);

    font-size: var(--fs-body);

    line-height: 1.6;

}



/* About Section (Qui sommes nous) */

.agency-about {

    padding: clamp(2rem, 8vh, 4rem) 0;

}



@media (min-width: 769px) {

    .about-grid {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 30px 60px;

        align-items: stretch;

    }



    .about-title {

        grid-column: 1;

        grid-row: 1;

    }



    .about-text {

        grid-column: 1;

        grid-row: 2;

    }



    .about-images {

        grid-column: 2;

        grid-row: 2;

        display: grid;

        grid-template-columns: 1fr 1fr;

        grid-template-rows: auto 1fr;

        gap: clamp(10px, 2vw, 20px);

        margin-top: 10px;

        align-self: stretch;

        /* Fine-tuned alignment with text block */

    }



    .agency-about .section-title {

        text-align: left;

    }

}



.about-text .text-body {

    font-size: var(--fs-body);

    line-height: 1.6;

    color: #333;

    margin-bottom: clamp(1rem, 3vh, 1.5rem);

    text-align: justify;

}



.img-box {

    border-radius: 20px;

    overflow: hidden;

    background-color: #eee;

}



.img-box.small {

    height: 200px;

}



.img-box.wide {

    grid-column: span 2;

    height: 250px;

}



@media (min-width: 769px) {

    .img-box.wide {

        height: 100%;

        min-height: 250px;

    }

}



.img-box img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



.img-placeholder {

    width: 100%;

    height: 100%;

    object-fit: cover;

    background-color: #ccc;

    display: block;

}



/* History Section */

.agency-history {

    background-color: #f5f5f5;

    padding: clamp(3rem, 10vh, 6rem) 0;

    margin-top: clamp(2rem, 8vh, 4rem);

    width: 100%;

}



.history-content {

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

}



.history-content p {

    font-size: 16px;

    line-height: 1.6;

    margin-bottom: 20px;

    text-align: justify;

}



.history-content p:last-child {

    margin-bottom: 0;

}



/* Mission & Vision Section */

.agency-mission-vision {

    background-color: var(--bg-white);

}



.section-title.centered {
    text-align: center;
    margin-bottom: clamp(2rem, 8vh, 4rem);
}



.mission-vision-grid {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 80px;

    align-items: center;

}



.mission-image {

    border-radius: 40px;

    overflow: hidden;

    height: 500px;

}



.mission-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.mission-vision-content {

    display: flex;

    flex-direction: column;

    gap: 40px;

}



.mission-list {

    list-style: none;

    padding: 0;

    margin: 15px 0;

}



.mission-list li {

    position: relative;

    padding-left: 20px;

    margin-bottom: 10px;

    font-size: 16px;

    line-height: 1.6;

    color: var(--text-black);

    text-align: justify;

}



.mission-list li::before {

    content: "•";

    position: absolute;

    left: 0;

    color: var(--primary-blue);

    font-weight: bold;

}





/* Values Section */

.agency-values {

    background-color: var(--bg-light);

    width: 100%;

}



.values-list {

    display: flex;

    flex-direction: column;

}



.value-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2rem, 6vh, 4rem) 0;
    border-bottom: 1px solid #ddd;
    gap: clamp(2rem, 5vw, 100px);
}



.value-item:last-child {

    border-bottom: none;

}



.value-content {

    flex: 1;

}



.value-title {

    font-size: 28px;

    font-weight: 700;

    color: var(--text-black);

    margin-bottom: 20px;

}



.value-text {

    font-size: 16px;

    line-height: 1.6;

    color: var(--text-dark-gray);

    max-width: 450px;

    text-align: justify;

}



.value-image {

    width: 400px;

    height: 250px;

    border-radius: 30px;

    overflow: hidden;

    flex-shrink: 0;

}



.value-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.img-placeholder.dark {

    background-color: #000;

    width: 100%;

    height: 100%;

}



/* Expertise Section */

.agency-expertise {

    background-color: var(--bg-white);

    width: 100%;

}



.expertise-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    max-width: 800px;

    margin: 0 auto;

}



.expertise-list {

    list-style: none;

    padding: 0;

}



.expertise-list li {

    font-size: 24px;

    font-weight: 500;

    margin-bottom: 15px;

    position: relative;

    padding-left: 25px;

}



.expertise-list li::before {

    content: "•";

    position: absolute;

    left: 0;

    color: var(--text-black);

}



/* Team Section */

.agency-team {

    background-color: var(--bg-white);

    text-align: center;

    width: 100%;

}



.centered-text {

    max-width: 800px;

    margin: 0 auto 60px;

    text-align: center;

    font-size: 16px;

    line-height: 1.6;

}



.team-grid {

    display: flex;

    flex-direction: column;

    gap: 30px;

}



.team-row {

    display: flex;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;

}



.team-card {

    text-align: center;

    background: #fff;

    padding: 15px;

    border-radius: 40px;

    border: 1px solid #000;

    width: 1000px;

}



.member-photo {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
    background-size: contain;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.team-card:hover .member-photo img {
    transform: scale(1.08);
    /* More subtle and premium zoom */
}



.member-role {

    font-size: 14px;

    color: #666;

    margin-bottom: 5px;

}



.member-name {

    font-size: 18px;

    font-weight: 700;

}



/* Responsive Adjustments for Agency Page */

@media (max-width: 1024px) {

    .container {

        padding: 0 30px;

    }



    .about-grid {

        gap: 40px;

    }



    .mission-vision-grid {

        gap: 40px;

    }



    .value-item {

        gap: 50px;

    }



    .team-card {

        width: calc(50% - 20px);

    }

}



@media (max-width: 768px) {

    .container {

        width: 100% !important;

        max-width: 100% !important;

        padding: 0 30px !important;

        margin: 0 auto !important;

    }



    .agency-header {

        margin-top: 100px;

        margin-bottom: 30px;

        width: 100%;

    }



    .header-intro {

        justify-content: center;

        width: 100%;

    }



    .intro-text {

        text-align: center;

        max-width: 100%;

    }



    .agency-about {

        padding: 40px 0;

    }



    .about-grid {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        /* Stretch children to fill container width */

        gap: 20px;

        width: 100%;

        margin: 0;

        padding: 0;

    }



    .about-text,

    .about-images {

        width: 100%;

        padding: 0;

        /* Rely on container padding for consistent margins */

        box-sizing: border-box;

    }



    .about-title {

        order: 1;

        text-align: center;

        margin-bottom: 20px;

        font-size: 28px;

    }



    .about-images {

        order: 2;

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 15px;

        margin-bottom: 20px;

    }



    .about-text {

        order: 3;

    }



    .about-text .text-body {

        text-align: justify;

        margin-bottom: 20px;

        line-height: 1.6;

        width: 100%;

    }



    .img-box.small {

        height: 150px;

    }



    .img-box.wide {

        height: 180px;

    }



    .agency-history {

        padding: 40px 0;

        margin-top: 30px;

    }



    .history-content {

        padding: 0 10px;

    }



    .history-content p {

        font-size: 14px;

        text-align: justify;

    }



    .agency-mission-vision {

        padding: 40px 0;

    }



    .mission-vision-grid {

        grid-template-columns: 1fr;

        gap: 30px;

    }



    .mission-image {

        height: 250px;

        order: 1;

        border-radius: 20px;

    }



    .mission-vision-content {

        order: 2;

        gap: 30px;

        text-align: justify;

        align-items: center;

    }



    .mission-vision-content p {

        text-align: justify;

    }



    .mission-list {

        text-align: left;

        /* Keep list items left-aligned for readability */

        display: inline-block;

        /* But center the list block itself */

        margin: 0 auto;

    }



    .agency-values {

        padding: 40px 0;

    }



    .value-item {

        flex-direction: column;

        padding: 30px 0;

        gap: 20px;

        text-align: center;

    }



    .value-text {

        max-width: 100%;

        margin: 0 auto;

    }



    .value-image {

        width: 100%;

        height: 180px;

        border-radius: 20px;

    }



    .agency-team {

        padding: 40px 0;

    }



    .centered-text {

        margin-bottom: 30px;

        font-size: 14px;

    }



    .team-grid {

        gap: 20px;

    }



    .team-row {

        gap: 20px;

    }



    .team-card {

        width: 100%;

        max-width: 320px;

        padding: 10px;

        border-radius: 25px;

    }

}

/* New Team Layout Styles */
.team-row.row-1 .team-card {
    width: 400px;
}

.team-row.row-2 .team-card {
    width: 350px;
}

.team-row.row-4 .team-card {
    width: 220px;
}

.team-row {
    margin-bottom: 30px;
}

.team-card {
    width: auto;
    min-width: 220px;
}