@font-face {
    font-family: gamba;
    src: url(../font/Gambarino-Regular.ttf);
}

@font-face {
    font-family: ibm;
    src: url(../font/IBMPlexMono-Regular.ttf);
}

@font-face {
    font-family: swit;
    src: url(../font/Switzer-Variable.ttf);
}

:root {
    --blue: rgb(0, 0, 238);
    --dark-gray: rgb(38, 38, 38);
    --light-gray: #737373;
    --btn-gray: #E7E7E7;
    --white: #fff;
    --white-hover: rgb(246, 246, 246);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --radius-sm: 10px;
    --radius-md: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    font-weight: 500;
}

/* Class Utilitaire */
.btn {
    background: var(--blue);
    color: var(--white);
    padding: 10px;
    border-radius: 100vh;
    font-family: swit;
    cursor: pointer;
    margin: 1rem 0.5rem;
    transition: all ease 0.4s;
}

.space_btn {
    margin-top: 1.5rem;
}

.btn .icon {
    background: var(--white);
    color: var(--blue);
    border-radius: 100vh;
    padding: 1px;
    margin-left: 10px;
    transition: all ease-in-out 0.4s;
}

.btn:hover .icon {
    transform: translateX(15px);
    transform: rotate(45deg);
    margin-left: 15px;
}

#container {
    background: var(--white-hover);
    max-width: 1440px;
    margin: auto;
}

#container #menu {
    width: 100%;
    height: 5vh;
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: swit;
    padding: 0.5rem 1rem;
}

/* Menu */
#container #menu .logo img {
    width: 100px;
}

#container #menu .link ul,
#container #menu .region {
    display: flex;
}

#container #menu .link ul li {
    padding: 1rem;
}

#container #menu .link ul li a,
#container #menu .region p:nth-child(2) {
    color: var(--light-gray);
    transition: all ease-in 0.5s;
}

#container #menu .link ul li a:hover {
    transform: translatey(-10px);
    letter-spacing: 0.1rem;
}

/* Landing */
#container #landing {
    height: 90vh;
    width: 100%;
    background-color: #f0edf6;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b996f0' fill-opacity='0.17'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    background-attachment: fixed;
}

#container #landing h1 {
    position: absolute;
    top: 80px;
    left: 30px;
    font-family: gamba;
    font-weight: 400;
    font-size: 3rem;
    margin: 0.5rem 1rem;
    color: var(--dark-gray);
}

#container #landing h1 span {
    color: var(--light-gray);
}

#container #landing .text-box p:first-child {
    font-size: 1.25rem;
    font-family: swit;
    margin: 0.5rem 1rem;
    margin-bottom: 2.5rem;
}

#container #landing .text-box {
    position: absolute;
    bottom: 100px;
    right: 40px;
}

/* =============About */

#container #about h2 {
    text-align: center;
    font-family: swit;
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--light-gray);
}

#container #about h3 {
    text-align: center;
    font-family: gamba;
    font-size: 1.50rem;
    color: var(--dark-gray);
    font-weight: 400;
    margin: 0.5rem 0;
}

#container #about .about_content {
    height: 75vh;
    width: 80%;
    display: flex;
    margin: auto;
}

#container #about .about_content .about_img,
#container #about .about_content .about_text {
    width: 50%;
    height: 100%;
}

#container #about .about_content .about_img img {
    margin: 1rem 2rem;
    width: 75%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 10px 10px 20px;
}

#container #about .about_content .about_text {
    padding: auto 0.5rem;
}

#container #about .about_content .about_text p {
    font-family: swit;
    font-size: 1rem;
    font-weight: 400;
    width: 65%;
    padding: 0.5rem 2rem;
    margin-right: auto;
}

/* ============Projects */
.project_head,
.services_head {
    margin: var(--spacing-sm);
    padding: var(--spacing-lg);
    left: 35px;
}

.project_head h2,
.services_head h2 {
    font-family: gamba;
    font-weight: 400;
    font-size: 2.5rem;
    margin: 0 var(--spacing-sm);
    color: var(--dark-gray);
}

.project_head h3,
.services_head h3 {
    font-family: swit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-gray);
    margin: 0 var(--spacing-sm);
}

#container #projects .project_body {
    display: flex;
    width: 100%;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    gap: 2rem 2rem;
    margin: auto;
}

#container #projects .project_body .prod_card {
    position: relative;
    height: 85vh;
    width: 48%;
}

#container #projects .project_body .prod_card .prod_card_img {
    height: 90%;
    width: 100%;
}

#container #projects .project_body .prod_card .prod_card_img img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
}

#container #projects .project_body .prod_card .prod_card_text {
    height: 10%;
    width: 100%;
    font-weight: 500;
}

#container #projects .project_body .prod_card .prod_card_text h3 {
    font-family: ibm;
    font-size: 1.5rem;
    color: var(--dark-gray);
}

#container #projects .project_body .prod_card .prod_card_text h3 .icon {
    padding: 0 5px;
    font-size: 1rem;
    transform: rotate(45deg);
}

#container #projects .project_body .prod_card .prod_card_text h4 {
    font-family: swit;
    font-size: 1rem;
    color: var(--light-gray);
    text-transform: uppercase;
    padding: 5px 0;
}

/* Services */
#container #services .services_body {
    display: flex;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin: auto;
    padding: 1rem 0.5rem;
}

#container #services .services_body .design,
#container #services .services_body .framer {
    width: 55%;
}

#container #services .services_body .branding,
#container #services .services_body .seo {
    width: 43%;
}

#container #services .services_body .card {
    height: 45vh;
    background: var(--white);
    border: 0.5px solid var(--btn-gray);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
}

#container #services .services_body .card h3 {
    font-family: swit;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

#container #services .services_body .card p {
    font-family: swit;
    color: var(--light-gray);
    font-size: 1rem;
}

#container #services .services_body .card ul {
    margin: 1rem 2rem;
    color: var(--light-gray);
}

#container #services .services_body .card ul li {
    padding: 0.5rem 0.2rem;
    font-family: swit;
    font-size: 1rem;
    list-style-type: disc;
}

#container #services .services_body .card p .btn_mail {
    background: var(--btn-gray);
    border: 0.2px var(--light-gray) solid;
    color: var(--light-gray);
    border-radius: 10px;
}

#container #services .services_body .card p .btn_mail .icon {
    color: var(--light-gray);
}

#container #services .services_body .card p .btn_light {
    color: var(--blue);
    background: var(--white);
}

.services_cta,
.footer_cta {
    width: 99%;
    height: 45vh;
    background: var(--white);
    border: 0.5px solid var(--btn-gray);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    text-align: center;
}

.services_cta h3,
.footer_cta h3 {
    font-family: gamba;
    font-size: 2rem;
    color: var(--dark-gray);
}

.services_cta p,
.footer_cta p {
    font-size: 1rem;
    font-family: swit;
    color: var(--light-gray);
    padding: var(--spacing-xs) 0;
}

/* =============== Testimonials block */
/* Section principale */
.testimonials-section {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    height: 90vh;
    padding: 1.5rem 0;
}

.testimonials-section h2 {
    font-family: gamba;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.testimonials-section .subtitle {
    font-family: swit;
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

/* Container du slider */
.slider-container {
    height: 80%;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/* Cache les radio buttons */
.slider-container input[type="radio"] {
    display: none;
}

/* Wrapper des slides */
.slides-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chaque slide */
.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 0 3rem;
    padding: 1rem;
    background: white;
}

/* Image du témoignage */
.slide-image {
    flex: 0 0 400px;
    width: 500px;
    border-radius: 15px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu du témoignage */
.slide-content {
    flex: 1;
    text-align: left;
    padding: 2rem;
}

.slide-content blockquote {
    font-family: gamba;
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.slide-content .author {
    font-family: swit;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.slide-content .position {
    font-family: ibm;
    font-size: 1rem;
    color: var(--light-gray);
}

/* Navigation avec flèches */
.navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.nav-arrow {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #5b7cff;
    transform: scale(1.1);
}

.nav-arrow:hover svg {
    fill: white;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: #5b7cff;
    transition: fill 0.3s ease;
}

/* Logique de défilement avec les radio buttons */
#slide1:checked~.slides-wrapper .slides {
    transform: translateX(0%);
}

#slide2:checked~.slides-wrapper .slides {
    transform: translateX(-100%);
}

#slide3:checked~.slides-wrapper .slides {
    transform: translateX(-200%);
}

/* Style actif pour les flèches */
#slide1:checked~.navigation label[for="slide3"],
#slide1:checked~.navigation label[for="slide2"] {
    display: flex;
}

#slide2:checked~.navigation label[for="slide1"],
#slide2:checked~.navigation label[for="slide3"] {
    display: flex;
}

#slide3:checked~.navigation label[for="slide2"],
#slide3:checked~.navigation label[for="slide1"] {
    display: flex;
}

/* AOS Fallback - Assure la visibilité si JS échoue */
[data-aos].aos-animate,
body.js-disabled [data-aos] {
    opacity: 1 !important;
    transform: translateZ(0) !important;
}

/* ========================================
   MODAL GALLERY STYLES - VERSION PC
   ======================================== */

.modal-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.modal-gallery.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--light-gray);
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-family: gamba;
    font-weight: 400;
}

.close-btn {
    background: none;
    border: none;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    color: #ff6b35;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 500px;
    border-radius: 5px;
}

/* Curseur de clic sur les cartes de projet */
.prod_card {
    cursor: pointer;
}

/* ========= footer */
#container #footer {
    background: var(--white);
    margin: 1.5rem 0;
}

#container #footer .footer_cta {
    height: 25vh;
    border: none;
    border-radius: none;
}

#container #footer .block {
    margin: 2rem 1rem;
}

#container #footer .block .address {
    width: 45%;
}

#container #footer .block .address h3 {
    color: var(--dark-gray);
    font-family: swit;
    font-weight: 400;
    font-size: 2rem;
}

#container #footer .block .address h2 {
    color: var(--dark-gray);
    font-family: swit;
    font-weight: 400;
    font-size: 1.5rem;
}

#container #footer .block .address p {
    font-family: swit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-gray);
    margin-top: 2rem;
}

#container #footer .block .address p .icon {
    color: teal;
}

#container #footer .block .address p span {
    color: orange;
}

#container #footer .block .link {
    width: 52%;
    justify-content: space-around;
}

#container #footer .block,
#container #footer .block .link {
    display: flex;
}

#container #footer .block .link .link_index h3,
#container #footer .block .link .link_social h3 {
    font-size: 1.25rem;
    font-family: swit;
    padding-bottom: 0.5rem;
}

#container #footer .block .link .link_index ul li,
#container #footer .block .link .link_social ul li {
    font-size: 1rem;
    font-family: swit;
    padding: 0.125rem 0;
    color: var(--light-gray);
}

/* Responsive */
@media (max-width: 968px) {
    .slide {
        flex-direction: column;
        text-align: center;
    }

    .slide-image {
        flex: 0 0 300px;
        height: 300px;
        width: 100%;
    }

    .slide-content {
        text-align: center;
    }

    .slide-content blockquote {
        font-size: 1.25rem;
    }

    .testimonials-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .slider-container {
        padding: 0 20px;
    }

    .slide {
        padding: 1rem;
    }

    .slide-image {
        height: 250px;
    }

    .testimonials-section h2 {
        font-size: 2rem;
    }
}