@import "fonts.css";
@import "variables.css";

._font-brother-1816 {
    font-family: "brother-1816", sans-serif;
    font-weight: 300;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    font-family: var(--font-body-family);
    font-weight: bold;
    font-style: normal;
    font-size: 14px;
    color: rgb(var(--pantone-primary-color));
}

a,
a:focus {
    text-decoration: none;
    color: inherit;
}

img {
    width: auto;
    max-width: 100%;
    object-fit: cover;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading-family);
    font-optical-sizing: auto;
    text-transform: uppercase;
    font-style: normal;
    /* font-size: 3.75rem; */
    color: inherit;
}

/* REUSABLE CLASSES */
.container {
    width: 100%;
    padding-top: 100px;
    margin-right: auto;
    margin-left: auto;
}

.btn {
    border: 0;
    background: transparent;
    padding: 15px 30px;
    border-radius: 4px;
    border: 0;
    transition: all .3s ease;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
}

.font-primary {
    font-family: "FinalSix_Medium", sans-serif;
}

.font-primary-thin {
    font-family: "FinalSix_Thin", sans-serif;
}

.font-secondary-light-italic {
    font-family: "bilbao-lightitalic", sans-serif;
}

.text-pantone {
    color: rgb(var(--pantone-primary-color));
}

.bg-pantone {
    background-color: rgb(var(--pantone-primary-color));
}

/* LOADER SECTION */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    padding: 0 30px;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Form Loader */
.f_loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.f_loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #48A23F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* HEADER SECTION */

header.scrolled {
    color: #707070;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* header.scrolled svg,
header.is-menuDisplayed svg {
    fill: #707070 !important;
} */

.mobil__menu {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: .93rem;
    
    button.btn__menu {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        width: 24px;
        height: 24px;
      
        &:after,
        &:before {
            content: '';
            display: block;
            height: 0;
            border-bottom: 2px solid currentColor;
            width: 16px;
            transition: all ease-out 0.3s;
        }
      
        i {
            display: block;
            text-indent: 100%;
            overflow: hidden;
            white-space: nowrap;
            height: 2px;
            background-color: currentColor;
            width: 16px;
            transition: all ease-out 0.1s;
        }
    }
}

.is-menuDisplayed .btn__menu {
    &:after {
        transform: rotate(-45deg);
        transform-origin: center;
        position: absolute;
        top: 50%;
    }
    
    &:before {
        transform: rotate(45deg);
        transform-origin: center;
        position: absolute;
        top: 50%
    }
    
    i {
        opacity: 0;
    }
}

/* CARROUSEL SECTION */

/* PRESENTATION SECTION */

.column__left,
.column__right {
    display: flex;
    align-items: end;
}

.column__left {
    justify-content: start;
}

.column__right {
    justify-content: end;
}

.s3-text td {
    vertical-align: top;
}

/* Custom list */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3fr 2fr */
}

.custom-list li {
    position: relative;
    display: flex;
    align-items: start;
    padding-left: 22px;
}

.custom-list li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid #48A23F;
    position: absolute;
    left: 0;
    top: 8px;
}

.custom-list li::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #48A23F;
    position: absolute;
    left: 2px;
    top: 10px;
}

#presentation-s4,
#presentation-s6 {
    margin-top: 40px;
    background-color: #F0F0F0;
}

.triangle__dor .icones {
    margin-right: 30px;
}

/* Caracteristik Section */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: .5px solid #707070;
    font-family: "brother-1816", sans-serif;
    margin-top: 40px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    padding: 50px 45px;
    border: .5px solid #707070;
    text-transform: uppercase;
}

.grid-wrapper ul {
    text-align: left;
    list-style: square;
    padding-left: 20px;
}

.grid-wrapper h3 {
    color: #000000;
}

.la__coursive {
    position: relative;
    padding-top: 30px;
    border-right: 30px solid #ffffff;
    border-bottom: 30px solid #ffffff;
}

.la__coursive .container {
    padding-top: 0;
}

.la__coursive-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 490px;
    margin-right: -30px;
    margin-top: 30px;
}

.features {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 60px;
}

.feature {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

/* EQUIPEMENT TECHNIQUE */
.accordeon-wrapper {
    display: flex;
    flex-direction: column;
}

.accordeon {
    border: 1px solid #48A23F;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordeon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: #48A23F;
    padding: 5px 15px;
    border-radius: 26px;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.accordeon-header h3 {
    color: #ffffff;
    font-weight: 300;
    text-transform: uppercase;
}

.accordeon-cards {
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    transition: max-height 0.5s ease-out, visibility 0.3s;
}

.accordeon.active .accordeon-cards {
    max-height: 100%;
    visibility: visible;
    transition: max-height 0.5s ease-in, visibility 0.3s;
}

.accordeon.active .accordeon-header-icon {
    transform: rotate(90deg);
}

.accordeon-cards.general,
.accordeon-cards.general .card {
    display: flex;
    gap: 20px;
}

.accordeon-cards.general .card {
    align-items: center;
}

.accordeon-cards.general > div {
    flex: 1;
    padding: 30px 20px;
}

.accordeon-cards.general > div:nth-child(2) {
    border-left: 1px solid #707070;
    border-right: 1px solid #707070;
}

.card {
    display: flex;
    align-items: center;
}

.accordeon-cards thead th,
.accordeon-cards tbody td:not(:first-child) {
    text-align: left;
    padding: 20px 0;
    vertical-align: top;
    max-width: 280px;
}

.accordeon-cards th,
.accordeon-cards tr:not(:last-child) td {
    border-bottom: 1px solid #707070;
}

.accordeon svg {
    flex: 0 0 35px !important;
}

.accordeon-cards-icones {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 20px;
}

.accordeon.active {
    border: 1px solid #707070;
}

/* A PROPOS DE PFO */
.aboutPfo {
    margin-top: 40px;
    background-color: #F0F0F0;
}

.aboutPfo .grid-container {
    gap: 0;
}

.contact {
    min-height: 400px;
    padding-bottom: 40px;
}

.contact__text {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

.contact__text a {
    font-size: 20px;
}

/* MODAL SECTION */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    min-width: 300px;
}
.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.modal.success {
    border-top: 5px solid #48A23F;
}
.modal.error {
    border-top: 5px solid #FF3B3B;
}
.close-btn {
    color: #ffffff;
    cursor: pointer;
    background-color: #48A23F;
    text-transform: uppercase;
}

/* MENU MOBILE */
@media (max-width: 576px) {
    .navbar__menu {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        height: 200px !important;
        color: #707070;
        background-color: #fff;
        border-top: 1px solid #707070; 
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-130%);
        z-index: 9999;
        transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
    }

    .is-menuDisplayed {
        color: #707070;
        background-color: #ffffff;
    }

    .is-menuDisplayed .navbar__menu {
        transform: translateY(0%);
    }
}

/************ 📱 RESPONSIVE ************/

/* Petits écrans */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    .d-sm-block {
        display: block !important;
    }
    .text-nowrap {
        text-wrap: nowrap;
    }
}
@media (max-width: 576px) {
    .navbar__div ul {
        display: none;
    }
    .d-sm-none {
        display: none;
    }
    .w-sm-100 {
        width: 100%;
    }
    .w-sm-200px {
        max-width: 200px;
    }
    .icones {
        flex-wrap: wrap;
    }
    .icones svg {
        flex: 0 0 35px;
    }
    .triangle__dor .icones {
        margin-right: 15px;
    }
    .custom-list.grid {
        grid-template-columns: 1fr;
    }
    .grid-wrapper {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .accordeon-cards.general {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .accordeon-cards.general > div:nth-child(2) {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #707070;
        border-bottom: 1px solid #707070;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .accordeon-cards.general .card {
        flex-wrap: nowrap !important;
    }
    .accordeon-cards-icones {
        flex-direction: column;
        align-items: start;
        gap: 5px;
    }
}

/* Écrans moyens */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    .d-md-block {
        display: block !important;
    }
    .d-md-flex {
        display: flex !important;
    }
    .d-md-none {
        display: none !important;
    }
}

/* Écrans larges */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
@media (max-width: 992px) {
    .features {
        flex-wrap: wrap;
        gap: 10px;
    }
    .aboutPfo .grid-container {
        grid-template-columns: 1fr;
    }
    .aboutPfo .column__right img {
        width: 100%;
    }
}

/* Très grands écrans */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Écrans XXL (facultatif, comme dans Bootstrap 5) */
@media (min-width: 1400px) {
    .container {
        max-width: 1060px; /* 1320px */
    }
}

/* ------------------MAX-WIDTH------------------ */

/* Très grands écrans */
@media (max-width: 1200px) {
    .grid-container {
        gap: 100px;
    }
    .presentation__illust {
        width: 485px;
    }
}

/* Écran moyen (tablette) */
@media (max-width: 1024px) {
    .grid-container {
        gap: 50px;
    }
    .presentation__illust {
        width: 410px;
    }
}

/* Écran plus petit (mobile) */
@media (max-width: 768px) {
    .grid-container {
        gap: 50px;
    }
    .presentation__illust {
        position: relative;
    }
    .la__coursive-image img {
        position: relative;
        width: 100%;
        margin-top: 0;
        margin-right: 0;
    }
    .la__coursive {
        border: 0
    }
    .accordeon-cards.general .card {
        flex-wrap: wrap;
        gap: 5px;
    }
    .presentation__text-div > .d-flex {
        gap: 10px;
    }
    .carrousel__div {
        background: url(../medias/bg/loader.webp) center / cover no-repeat !important;
    }
    .header:not(.scrolled) .btn__prm {
        background-color: #ffffff !important;
        color: #48A23F !important;
    }
}

/* Très petit écran (téléphone) */
@media (max-width: 580px) {
    .grid-container {
        gap: 20px;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 454px) {
    .accordeon-cards-icones {
        align-items: center;
        gap: 30px;
        margin: 0 0 25px;
    }
    .accordeon-cards-icones h4 {
        transform: rotate(-90deg);
        width: min-content;
    }
}
