/* ====================================
   FOOTER STYLES - Modern Flexbox/Grid
   ==================================== */

footer {
    background-color: #AFBAC0;
    position: relative;
    margin-top: 50px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 485px;
}

/* Main footer container with two columns */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*min-height: 365px;*/
    flex: 1;
    position: relative;
    width: 100%;
}

/* Left side - Map */
.footer-map {
    position: relative;
    /*height: 365px;*/
    background-color: #AFBAC0;
    overflow: hidden;
    grid-column: 1;
}

#map {
    width: 100%;
    height: 100%;
}

/* Right side - Contact form */
.footer-contact {
    position: relative;
    /*height: 365px;*/
    background-color: #AFBAC0;
    padding: 20px 20px 20px 30px;
    display: flex;
    flex-direction: column;
    /*overflow-y: auto;*/
    /*overflow-x: hidden;*/
    grid-column: 2;
    box-sizing: border-box;
}

/* Diagonal decorative element */
.footer-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -110px;
    width: 110px;
    /*height: 365px;*/
    background-image: url(images/diagonale_contact.png);
    background-position: top center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 99;
}

/* Title */
.footer-contact h1 {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 0;
    margin: 0 0 15px 0;
    background-color: transparent;
    color: #000;
    line-height: 1.2;
}

.footer-contact h1 .bleu {
    color: #4972FA;
}

.footer-contact h1 .blanc {
    color: #FFF;
}

/* Form */
#contact_form {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

/* Form inputs container */
.form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Input group */
.input-form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.input-form-group .input {
    flex: 1;
    position: relative;
    display: flex;
}

.input-form-group input {
    width: 100%;
    height: 30px;
    padding: 0 8px;
    border: none;
    background-color: #FFF;
    color: #000;
    font-size: 14px;
    box-sizing: border-box;
}

.input-form-group input::placeholder {
    color: #999;
}

.input-form-group input:focus {
    outline: none;
    box-shadow: inset 0 0 3px rgba(73, 114, 250, 0.3);
}

.input-form-group .material-icons {
    /*font-size: 18px;*/
    /*color: #4972FA;*/
    flex-shrink: 0;
}

/* Textarea group */
.textarea-form-group {
    display: flex;
    gap: 10px;
    margin: 0;
    flex: 1;
    min-height: 84px;
}

.textarea-form-group .textarea {
    flex: 1;
    position: relative;
    display: flex;
}

.textarea-form-group textarea {
    width: 100%;
    padding: 8px;
    border: none;
    background-color: #FFF;
    color: #000;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.textarea-form-group textarea::placeholder {
    color: #999;
}

.textarea-form-group textarea:focus {
    outline: none;
    box-shadow: inset 0 0 3px rgba(73, 114, 250, 0.3);
}

.textarea-form-group .material-icons {
    /*font-size: 18px;*/
    /*color: #4972FA;*/
    align-self: flex-start;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Form footer with captcha and submit */
.form-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    /*padding-top: 15px;*/
}

.recaptcha-container {
    /*flex: 1;*/
    display: flex;
    align-items: center;
}

/* Adjust captcha scale */
.recaptcha-container > div {
    transform: scale(0.85);
    transform-origin: left bottom;
}

/* Submit button */
#submit_contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    height: 35px;
    padding: 0;
    border: none;
    background-color: #4972FA;
    color: #FFF;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    margin-right: 35px;
    transition: background-color 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

#submit_contact:hover {
    background-color: #3859d9;
}

#submit_contact:active {
    background-color: #2f4ab8;
}

#submit_contact span {
    font-size: 12px;
    font-weight: 600;
}

#submit_contact .material-icons {
    font-size: 18px;
    position: relative;
    top: -5px;
}

/* Contact info at bottom */
.infos_contact {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    flex-wrap: wrap;
}

.infos_contact img {
    width: 240px;
    height: 70px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.infos_contact .adresse {
    flex: 1;
    font-size: 14px;
    line-height: 18px;
    color: #FFF;
    min-width: 150px;
}

.infos_contact .adresse a {
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
}

.infos_contact .adresse a:hover {
    text-decoration: underline;
}

/* Error state */
.form-group.error input,
.form-group.error textarea {
    border: 1px solid #d32f2f !important;
    background-color: #ffebee;
}

.form-group.error .material-icons {
    color: #d32f2f !important;
}

/* Partners section */
.partenaires {
    position: relative;
    width: 100%;
    background-color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.partenaires-content {
    width: 100%;
    max-width: 1400px;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.partenaire-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
}

.partenaire-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partenaire-item a:hover {
    transform: scale(1.05);
}

.partenaire-item img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Footer bottom bar */
.bande_noire {
    position: relative;
    width: 100%;
    background-color: #333;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 12px;
    color: #FFF;
    flex-shrink: 0;
    min-height: 30px;
}

.bande_noire .container {
    width: 100%;
    max-width: 100%;
}

.bande-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.bande-left,
.bande-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.bande-right {
    justify-content: flex-end;
}

.bande_noire a {
    color: #FFF;
    text-decoration: none;
}

.bande_noire a:hover {
    text-decoration: underline;
}

.bande_noire .bull {
    color: #666;
    margin: 0 5px;
}

/* Clear float helper */
.clear {
    clear: both;
    display: block;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .footer-map {
        height: 300px;
        border-bottom: 2px solid #999;
        grid-column: 1;
        grid-row: 1;
    }

    .footer-contact {
        height: auto;
        min-height: 350px;
        padding: 20px;
        grid-column: 1;
        grid-row: 2;
    }

    .form-inputs {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .recaptcha-container {
        width: 100%;
    }

    .recaptcha-container > div {
        transform: scale(0.75);
        transform-origin: left top;
    }

    #submit_contact {
        width: 100%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .footer-map {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .footer-contact {
        padding: 15px;
        height: auto;
        min-height: 300px;
    }

    .form-inputs {
        grid-template-columns: 1fr;
    }

    .input-form-group input {
        height: 35px;
        font-size: 16px;
    }

    .textarea-form-group {
        min-height: 100px;
    }

    .textarea-form-group textarea {
        font-size: 16px;
    }

    .form-footer {
        flex-direction: column;
        gap: 10px;
    }

    .recaptcha-container {
        width: 100%;
        justify-content: center;
    }

    .recaptcha-container > div {
        transform: scale(0.7);
        transform-origin: center bottom;
    }

    #submit_contact {
        width: 100%;
    }

    .infos_contact {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
    }

    .infos_contact img {
        width: 100px;
        flex-shrink: 0;
    }

    .infos_contact .adresse {
        flex: none;
        text-align: center;
    }

    .partenaires {
        height: auto;
    }

    .partenaires-content {
        flex-direction: row;
        gap: 10px;
    }

    .partenaire-item {
        min-width: 120px;
        max-width: 140px;
        height: 80px;
    }

    .partenaires img {
        max-width: 100px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .footer-contact {
        padding: 10px;
    }

    .footer-contact h1 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .input-form-group input {
        height: 32px;
        font-size: 14px;
    }

    .textarea-form-group {
        min-height: 80px;
    }

    .recaptcha-container > div {
        transform: scale(0.6);
        transform-origin: left bottom;
    }

    #submit_contact {
        height: 32px;
        font-size: 11px;
    }

    .infos_contact {
        display: none !important;
    }

    .partenaires {
        display: none !important;
    }

    .bande_noire {
        height: auto;
        padding: 10px 5px;
        text-align: center;
        flex-direction: column;
    }

    .bande_noire .container {
        width: 100%;
    }

    .bande-content {
        flex-direction: column;
        gap: 5px;
    }

    .bande-left,
    .bande-right {
        flex-direction: column;
        justify-content: center;
        flex: none;
    }

    .bande-right {
        justify-content: center;
    }
}




